|
@@ -5,12 +5,9 @@ import com.baomidou.mybatisplus.core.toolkit.StringUtils;
|
|
import com.huimv.eartag2.admin.service.BasePigpenService;
|
|
import com.huimv.eartag2.admin.service.BasePigpenService;
|
|
import com.huimv.eartag2.common.utils.Result;
|
|
import com.huimv.eartag2.common.utils.Result;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
-import org.springframework.web.bind.annotation.RequestBody;
|
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
-
|
|
|
|
-import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
|
|
+import javax.servlet.http.HttpServletRequest;
|
|
import java.util.Map;
|
|
import java.util.Map;
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -156,5 +153,16 @@ public class BasePigpenController {
|
|
//
|
|
//
|
|
return basePigpenService.editUnit(id,parentId,unitName,stageCode,Integer.parseInt(sort),type);
|
|
return basePigpenService.editUnit(id,parentId,unitName,stageCode,Integer.parseInt(sort),type);
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ @PostMapping("/listBuildings")
|
|
|
|
+ public Result listBuildings (HttpServletRequest request){
|
|
|
|
+ return basePigpenService.listBuildings(request);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @PostMapping("/listUnitByBuilding")
|
|
|
|
+ public Result listUnitByBuilding(HttpServletRequest request,@RequestBody Map<String,String> paramsMap){
|
|
|
|
+ return basePigpenService.listUnitByBuilding(request,paramsMap);
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|