|
@@ -2,6 +2,7 @@ package com.huimv.eartag2.manage2.controller;
|
|
|
|
|
|
|
|
|
import com.huimv.eartag2.common.utils.Result;
|
|
|
+import com.huimv.eartag2.common.utils.ResultCode;
|
|
|
import com.huimv.eartag2.manage2.service.BaseFarmerService;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
@@ -46,6 +47,11 @@ public class BaseFarmerController {
|
|
|
public Result listByFarmCode(@RequestBody Map<String, Object> paramsMap) throws ParseException {
|
|
|
return baseFarmerService.list(paramsMap);
|
|
|
}
|
|
|
+ @PostMapping("/listAll")
|
|
|
+ public Result listAll() {
|
|
|
+ return new Result(ResultCode.SUCCESS, baseFarmerService.list());
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
// @PostMapping("/getLastAdoptByFarmCode")
|
|
|
// public Result getLastAdoptByFarmCode(@RequestBody Map<String, Object> paramsMap) throws ParseException {
|