瀏覽代碼

添加首页工作看板设置

523096025 4 年之前
父節點
當前提交
3ade60e289
共有 50 個文件被更改,包括 2183 次插入0 次删除
  1. 52 0
      huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/controller/MAnimalHeatWarningController.java
  2. 52 0
      huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/controller/MPlanImmunityController.java
  3. 52 0
      huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/controller/MPurchasePlanController.java
  4. 52 0
      huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/controller/MSowAblactationController.java
  5. 52 0
      huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/controller/MSowAnimalHeatController.java
  6. 52 0
      huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/controller/MSowNonpregnantController.java
  7. 52 0
      huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/controller/MSowOestrusController.java
  8. 52 0
      huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/controller/MSowPredeliveryController.java
  9. 50 0
      huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/controller/MTransferChildcareController.java
  10. 52 0
      huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/controller/MTransferFattenController.java
  11. 29 0
      huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/domain/MAnimalHeatWarningEntity.java
  12. 32 0
      huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/domain/MPlanImmunityEntity.java
  13. 32 0
      huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/domain/MPurchasePlanEntity.java
  14. 29 0
      huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/domain/MSowAblactationEntity.java
  15. 35 0
      huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/domain/MSowAnimalHeatEntity.java
  16. 29 0
      huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/domain/MSowNonpregnantEntity.java
  17. 32 0
      huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/domain/MSowOestrusEntity.java
  18. 29 0
      huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/domain/MSowPredeliveryEntity.java
  19. 38 0
      huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/domain/MTransferChildcareEntity.java
  20. 29 0
      huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/domain/MTransferFattenEntity.java
  21. 9 0
      huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/repo/MAnimalHeatWarningEntityRepo.java
  22. 14 0
      huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/repo/MPlanImmunityEntityRepo.java
  23. 12 0
      huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/repo/MPurchasePlanEntityRepo.java
  24. 12 0
      huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/repo/MSowAblactationEntityRepo.java
  25. 19 0
      huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/repo/MSowAnimalHeatEntityRepo.java
  26. 12 0
      huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/repo/MSowNonpregnantEntityRepo.java
  27. 12 0
      huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/repo/MSowOestrusEntityRepo.java
  28. 12 0
      huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/repo/MSowPredeliveryEntityRepo.java
  29. 13 0
      huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/repo/MTransferChildcareEntityRepo.java
  30. 12 0
      huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/repo/MTransferFattenEntityRepo.java
  31. 27 0
      huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/service/MAnimalHeatWarningService.java
  32. 27 0
      huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/service/MPlanImmunityService.java
  33. 27 0
      huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/service/MPurchasePlanService.java
  34. 27 0
      huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/service/MSowAblactationService.java
  35. 26 0
      huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/service/MSowAnimalHeatService.java
  36. 26 0
      huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/service/MSowNonpreganService.java
  37. 26 0
      huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/service/MSowOestrusService.java
  38. 26 0
      huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/service/MSowPredeliveryService.java
  39. 25 0
      huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/service/MTransferChildcareService.java
  40. 26 0
      huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/service/MTransferFattentService.java
  41. 95 0
      huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/service/impl/MAnimalHeatWarningServiceImpl.java
  42. 94 0
      huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/service/impl/MPlanImmunityServiceImpl.java
  43. 95 0
      huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/service/impl/MPurchasePlanServiceImpl.java
  44. 94 0
      huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/service/impl/MSowAblactationServiceImpl.java
  45. 113 0
      huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/service/impl/MSowAnimalHeatServiceImpl.java
  46. 93 0
      huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/service/impl/MSowNonpreganServiceImpl.java
  47. 95 0
      huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/service/impl/MSowOestrusServiceImpl.java
  48. 94 0
      huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/service/impl/MSowPredeliveryServiceImpl.java
  49. 94 0
      huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/service/impl/MTransferChildcareServiceImpl.java
  50. 94 0
      huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/service/impl/MTransferFattentServiceImpl.java

+ 52 - 0
huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/controller/MAnimalHeatWarningController.java

@@ -0,0 +1,52 @@
+package com.huimv.production.controller;
+
+import com.huimv.production.domain.MAnimalHeatWarningEntity;
+import com.huimv.production.domain.MTransferFattenEntity;
+import com.huimv.production.result.Result;
+import com.huimv.production.service.MAnimalHeatWarningService;
+import com.huimv.production.service.MTransferFattentService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.CrossOrigin;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+/**
+ * @Project : huimv.shiwan
+ * @Package : com.huimv.production.controller
+ * @Description : TODO
+ * @Author : yuxuexuan
+ * @Create : 2021/3/9 0009 17:44
+ **/
+@RestController
+@CrossOrigin
+@RequestMapping("/animalHeatWarning")
+public class MAnimalHeatWarningController {
+
+    @Autowired
+    private MAnimalHeatWarningService childcareService;
+
+    @RequestMapping("/add")
+    public Result add(MAnimalHeatWarningEntity childcareEntity){
+        return childcareService.add(childcareEntity);
+    }
+
+    @RequestMapping("/remove")
+    public Result add(Integer[] ids){
+        return childcareService.remove(ids);
+    }
+
+    @RequestMapping("/update")
+    public Result update(MAnimalHeatWarningEntity childcareEntity){
+        return childcareService.update(childcareEntity);
+    }
+
+    @RequestMapping("/findAll")
+    public Result findAll(){
+        return childcareService.findAll();
+    }
+
+    @RequestMapping("/findAllBy")
+    public Result findAllBy(){
+        return childcareService.findAllBy();
+    }
+}

+ 52 - 0
huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/controller/MPlanImmunityController.java

@@ -0,0 +1,52 @@
+package com.huimv.production.controller;
+
+import com.huimv.production.domain.MPlanImmunityEntity;
+import com.huimv.production.domain.MTransferFattenEntity;
+import com.huimv.production.result.Result;
+import com.huimv.production.service.MPlanImmunityService;
+import com.huimv.production.service.MTransferFattentService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.CrossOrigin;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+/**
+ * @Project : huimv.shiwan
+ * @Package : com.huimv.production.controller
+ * @Description : TODO
+ * @Author : yuxuexuan
+ * @Create : 2021/3/9 0009 17:44
+ **/
+@RestController
+@CrossOrigin
+@RequestMapping("/planImmunity")
+public class MPlanImmunityController {
+
+    @Autowired
+    private MPlanImmunityService childcareService;
+
+    @RequestMapping("/add")
+    public Result add(MPlanImmunityEntity childcareEntity){
+        return childcareService.add(childcareEntity);
+    }
+
+    @RequestMapping("/remove")
+    public Result add(Integer[] ids){
+        return childcareService.remove(ids);
+    }
+
+    @RequestMapping("/update")
+    public Result update(MPlanImmunityEntity childcareEntity){
+        return childcareService.update(childcareEntity);
+    }
+
+    @RequestMapping("/findAll")
+    public Result findAll(){
+        return childcareService.findAll();
+    }
+
+    @RequestMapping("/findAllBy")
+    public Result findAllBy(){
+        return childcareService.findAllBy();
+    }
+}

+ 52 - 0
huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/controller/MPurchasePlanController.java

@@ -0,0 +1,52 @@
+package com.huimv.production.controller;
+
+import com.huimv.production.domain.MPurchasePlanEntity;
+import com.huimv.production.domain.MTransferFattenEntity;
+import com.huimv.production.result.Result;
+import com.huimv.production.service.MPurchasePlanService;
+import com.huimv.production.service.MTransferFattentService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.CrossOrigin;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+/**
+ * @Project : huimv.shiwan
+ * @Package : com.huimv.production.controller
+ * @Description : TODO
+ * @Author : yuxuexuan
+ * @Create : 2021/3/9 0009 17:44
+ **/
+@RestController
+@CrossOrigin
+@RequestMapping("/purchasePlan")
+public class MPurchasePlanController {
+
+    @Autowired
+    private MPurchasePlanService childcareService;
+
+    @RequestMapping("/add")
+    public Result add(MPurchasePlanEntity childcareEntity){
+        return childcareService.add(childcareEntity);
+    }
+
+    @RequestMapping("/remove")
+    public Result add(Integer[] ids){
+        return childcareService.remove(ids);
+    }
+
+    @RequestMapping("/update")
+    public Result update(MPurchasePlanEntity childcareEntity){
+        return childcareService.update(childcareEntity);
+    }
+
+    @RequestMapping("/findAll")
+    public Result findAll(){
+        return childcareService.findAll();
+    }
+
+    @RequestMapping("/findAllBy")
+    public Result findAllBy(){
+        return childcareService.findAllBy();
+    }
+}

+ 52 - 0
huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/controller/MSowAblactationController.java

@@ -0,0 +1,52 @@
+package com.huimv.production.controller;
+
+import com.huimv.production.domain.MSowAblactationEntity;
+import com.huimv.production.domain.MTransferFattenEntity;
+import com.huimv.production.result.Result;
+import com.huimv.production.service.MSowAblactationService;
+import com.huimv.production.service.MTransferFattentService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.CrossOrigin;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+/**
+ * @Project : huimv.shiwan
+ * @Package : com.huimv.production.controller
+ * @Description : TODO
+ * @Author : yuxuexuan
+ * @Create : 2021/3/9 0009 17:44
+ **/
+@RestController
+@CrossOrigin
+@RequestMapping("/sowAblactation")
+public class MSowAblactationController {
+
+    @Autowired
+    private MSowAblactationService childcareService;
+
+    @RequestMapping("/add")
+    public Result add(MSowAblactationEntity childcareEntity){
+        return childcareService.add(childcareEntity);
+    }
+
+    @RequestMapping("/remove")
+    public Result add(Integer[] ids){
+        return childcareService.remove(ids);
+    }
+
+    @RequestMapping("/update")
+    public Result update(MSowAblactationEntity childcareEntity){
+        return childcareService.update(childcareEntity);
+    }
+
+    @RequestMapping("/findAll")
+    public Result findAll(){
+        return childcareService.findAll();
+    }
+
+    @RequestMapping("/findAllBy")
+    public Result findAllBy(){
+        return childcareService.findAllBy();
+    }
+}

+ 52 - 0
huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/controller/MSowAnimalHeatController.java

@@ -0,0 +1,52 @@
+package com.huimv.production.controller;
+
+import com.huimv.production.domain.MSowAnimalHeatEntity;
+import com.huimv.production.domain.MTransferFattenEntity;
+import com.huimv.production.result.Result;
+import com.huimv.production.service.MSowAnimalHeatService;
+import com.huimv.production.service.MTransferFattentService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.CrossOrigin;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+/**
+ * @Project : huimv.shiwan
+ * @Package : com.huimv.production.controller
+ * @Description : TODO
+ * @Author : yuxuexuan
+ * @Create : 2021/3/9 0009 17:44
+ **/
+@RestController
+@CrossOrigin
+@RequestMapping("/sowAnimalHeat")
+public class MSowAnimalHeatController {
+
+    @Autowired
+    private MSowAnimalHeatService childcareService;
+
+    @RequestMapping("/add")
+    public Result add(MSowAnimalHeatEntity childcareEntity){
+        return childcareService.add(childcareEntity);
+    }
+
+    @RequestMapping("/remove")
+    public Result add(Integer[] ids){
+        return childcareService.remove(ids);
+    }
+
+    @RequestMapping("/update")
+    public Result update(MSowAnimalHeatEntity childcareEntity){
+        return childcareService.update(childcareEntity);
+    }
+
+    @RequestMapping("/findAll")
+    public Result findAll(){
+        return childcareService.findAll();
+    }
+
+    @RequestMapping("/findAllById")
+    public Result findAllById( Integer locationId){
+        return childcareService.findAllById(locationId);
+    }
+}

+ 52 - 0
huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/controller/MSowNonpregnantController.java

@@ -0,0 +1,52 @@
+package com.huimv.production.controller;
+
+import com.huimv.production.domain.MSowNonpregnantEntity;
+import com.huimv.production.domain.MTransferChildcareEntity;
+import com.huimv.production.result.Result;
+import com.huimv.production.service.MSowNonpreganService;
+import com.huimv.production.service.MTransferChildcareService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.CrossOrigin;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+/**
+ * @Project : huimv.shiwan
+ * @Package : com.huimv.production.controller
+ * @Description : TODO
+ * @Author : yuxuexuan
+ * @Create : 2021/3/9 0009 17:44
+ **/
+@RestController
+@CrossOrigin
+@RequestMapping("/sowNonpregnant")
+public class MSowNonpregnantController {
+
+    @Autowired
+    private MSowNonpreganService childcareService;
+
+    @RequestMapping("/add")
+    public Result add(MSowNonpregnantEntity childcareEntity){
+        return childcareService.add(childcareEntity);
+    }
+
+    @RequestMapping("/remove")
+    public Result add(Integer[] ids){
+        return childcareService.remove(ids);
+    }
+
+    @RequestMapping("/update")
+    public Result update(MSowNonpregnantEntity childcareEntity){
+        return childcareService.update(childcareEntity);
+    }
+
+    @RequestMapping("/findAll")
+    public Result findAll(){
+        return childcareService.findAll();
+    }
+
+    @RequestMapping("/findAllBy")
+    public Result findAllBy(){
+        return childcareService.findAllBy();
+    }
+}

+ 52 - 0
huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/controller/MSowOestrusController.java

@@ -0,0 +1,52 @@
+package com.huimv.production.controller;
+
+import com.huimv.production.domain.MSowOestrusEntity;
+import com.huimv.production.domain.MTransferChildcareEntity;
+import com.huimv.production.result.Result;
+import com.huimv.production.service.MSowOestrusService;
+import com.huimv.production.service.MTransferChildcareService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.CrossOrigin;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+/**
+ * @Project : huimv.shiwan
+ * @Package : com.huimv.production.controller
+ * @Description : TODO
+ * @Author : yuxuexuan
+ * @Create : 2021/3/9 0009 17:44
+ **/
+@RestController
+@CrossOrigin
+@RequestMapping("/sowOestrus")
+public class MSowOestrusController {
+
+    @Autowired
+    private MSowOestrusService childcareService;
+
+    @RequestMapping("/add")
+    public Result add(MSowOestrusEntity childcareEntity){
+        return childcareService.add(childcareEntity);
+    }
+
+    @RequestMapping("/remove")
+    public Result add(Integer[] ids){
+        return childcareService.remove(ids);
+    }
+
+    @RequestMapping("/update")
+    public Result update(MSowOestrusEntity childcareEntity){
+        return childcareService.update(childcareEntity);
+    }
+
+    @RequestMapping("/findAll")
+    public Result findAll(){
+        return childcareService.findAll();
+    }
+
+    @RequestMapping("/findAllBy")
+    public Result findAllBy(){
+        return childcareService.findAllBy();
+    }
+}

+ 52 - 0
huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/controller/MSowPredeliveryController.java

@@ -0,0 +1,52 @@
+package com.huimv.production.controller;
+
+import com.huimv.production.domain.MSowPredeliveryEntity;
+import com.huimv.production.domain.MTransferFattenEntity;
+import com.huimv.production.result.Result;
+import com.huimv.production.service.MSowPredeliveryService;
+import com.huimv.production.service.MTransferFattentService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.CrossOrigin;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+/**
+ * @Project : huimv.shiwan
+ * @Package : com.huimv.production.controller
+ * @Description : TODO
+ * @Author : yuxuexuan
+ * @Create : 2021/3/9 0009 17:44
+ **/
+@RestController
+@CrossOrigin
+@RequestMapping("/sowPredelivery")
+public class MSowPredeliveryController {
+
+    @Autowired
+    private MSowPredeliveryService childcareService;
+
+    @RequestMapping("/add")
+    public Result add(MSowPredeliveryEntity childcareEntity){
+        return childcareService.add(childcareEntity);
+    }
+
+    @RequestMapping("/remove")
+    public Result add(Integer[] ids){
+        return childcareService.remove(ids);
+    }
+
+    @RequestMapping("/update")
+    public Result update(MSowPredeliveryEntity childcareEntity){
+        return childcareService.update(childcareEntity);
+    }
+
+    @RequestMapping("/findAll")
+    public Result findAll(){
+        return childcareService.findAll();
+    }
+
+    @RequestMapping("/findAllBy")
+    public Result findAllBy(){
+        return childcareService.findAllBy();
+    }
+}

+ 50 - 0
huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/controller/MTransferChildcareController.java

@@ -0,0 +1,50 @@
+package com.huimv.production.controller;
+
+import com.huimv.production.domain.MTransferChildcareEntity;
+import com.huimv.production.result.Result;
+import com.huimv.production.service.MTransferChildcareService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.CrossOrigin;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+/**
+ * @Project : huimv.shiwan
+ * @Package : com.huimv.production.controller
+ * @Description : TODO
+ * @Author : yuxuexuan
+ * @Create : 2021/3/9 0009 17:44
+ **/
+@RestController
+@CrossOrigin
+@RequestMapping("/transferChildcare")
+public class MTransferChildcareController {
+
+    @Autowired
+    private MTransferChildcareService childcareService;
+
+    @RequestMapping("/add")
+    public Result add(MTransferChildcareEntity childcareEntity){
+        return childcareService.add(childcareEntity);
+    }
+
+    @RequestMapping("/remove")
+    public Result add(Integer[] ids){
+        return childcareService.remove(ids);
+    }
+
+    @RequestMapping("/update")
+    public Result update(MTransferChildcareEntity childcareEntity){
+        return childcareService.update(childcareEntity);
+    }
+
+    @RequestMapping("/findAll")
+    public Result findAll(){
+        return childcareService.findAll();
+    }
+
+    @RequestMapping("/findAllBy")
+    public Result findAllBy(){
+        return childcareService.findAllBy();
+    }
+}

+ 52 - 0
huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/controller/MTransferFattenController.java

@@ -0,0 +1,52 @@
+package com.huimv.production.controller;
+
+import com.huimv.production.domain.MTransferChildcareEntity;
+import com.huimv.production.domain.MTransferFattenEntity;
+import com.huimv.production.result.Result;
+import com.huimv.production.service.MTransferChildcareService;
+import com.huimv.production.service.MTransferFattentService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.CrossOrigin;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+/**
+ * @Project : huimv.shiwan
+ * @Package : com.huimv.production.controller
+ * @Description : TODO
+ * @Author : yuxuexuan
+ * @Create : 2021/3/9 0009 17:44
+ **/
+@RestController
+@CrossOrigin
+@RequestMapping("/transferFatten")
+public class MTransferFattenController {
+
+    @Autowired
+    private MTransferFattentService childcareService;
+
+    @RequestMapping("/add")
+    public Result add(MTransferFattenEntity childcareEntity){
+        return childcareService.add(childcareEntity);
+    }
+
+    @RequestMapping("/remove")
+    public Result add(Integer[] ids){
+        return childcareService.remove(ids);
+    }
+
+    @RequestMapping("/update")
+    public Result update(MTransferFattenEntity childcareEntity){
+        return childcareService.update(childcareEntity);
+    }
+
+    @RequestMapping("/findAll")
+    public Result findAll(){
+        return childcareService.findAll();
+    }
+
+    @RequestMapping("/findAllBy")
+    public Result findAllBy(){
+        return childcareService.findAllBy();
+    }
+}

+ 29 - 0
huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/domain/MAnimalHeatWarningEntity.java

@@ -0,0 +1,29 @@
+package com.huimv.production.domain;
+
+import lombok.Data;
+
+import javax.persistence.*;
+import java.io.Serializable;
+
+@Entity
+@Data
+@Table(name = "m_animal_heat_warning")
+public class MAnimalHeatWarningEntity implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    @Id
+    @GeneratedValue(strategy = GenerationType.IDENTITY)
+    @Column(name = "id", nullable = false)
+    private Integer id;
+
+    @Column(name = "code")
+    private String code;
+
+    @Column(name = "location")
+    private String location;
+
+    @Column(name = "heat")
+    private Double heat;
+
+}

+ 32 - 0
huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/domain/MPlanImmunityEntity.java

@@ -0,0 +1,32 @@
+package com.huimv.production.domain;
+
+import lombok.Data;
+
+import javax.persistence.*;
+import java.io.Serializable;
+
+@Entity
+@Table(name = "m_plan_immunity")
+@Data
+public class MPlanImmunityEntity implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    @Id
+    @GeneratedValue(strategy = GenerationType.IDENTITY)
+    @Column(name = "id", nullable = false)
+    private Integer id;
+
+    @Column(name = "location")
+    private String location;
+
+    @Column(name = "vaccine")
+    private String vaccine;
+
+    @Column(name = "quantity")
+    private Integer quantity;
+
+    @Column(name = "state")
+    private Integer state;
+
+}

+ 32 - 0
huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/domain/MPurchasePlanEntity.java

@@ -0,0 +1,32 @@
+package com.huimv.production.domain;
+
+import lombok.Data;
+
+import javax.persistence.*;
+import java.io.Serializable;
+
+@Entity
+@Data
+@Table(name = "m_purchase_plan")
+public class MPurchasePlanEntity implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    @Id
+    @GeneratedValue(strategy = GenerationType.IDENTITY)
+    @Column(name = "id", nullable = false)
+    private Integer id;
+
+    @Column(name = "location")
+    private String location;
+
+    @Column(name = "quantity")
+    private Integer quantity;
+
+    @Column(name = "end_date")
+    private String endDate;
+
+    @Column(name = "state")
+    private Integer state;
+
+}

+ 29 - 0
huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/domain/MSowAblactationEntity.java

@@ -0,0 +1,29 @@
+package com.huimv.production.domain;
+
+import lombok.Data;
+
+import javax.persistence.*;
+import java.io.Serializable;
+
+@Entity
+@Data
+@Table(name = "m_sow_ablactation")
+public class MSowAblactationEntity implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    @Id
+    @GeneratedValue(strategy = GenerationType.IDENTITY)
+    @Column(name = "id", nullable = false)
+    private Integer id;
+
+    @Column(name = "location")
+    private String location;
+
+    @Column(name = "quantity")
+    private Integer quantity;
+
+    @Column(name = "state")
+    private Integer state;
+
+}

+ 35 - 0
huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/domain/MSowAnimalHeatEntity.java

@@ -0,0 +1,35 @@
+package com.huimv.production.domain;
+
+import lombok.Data;
+
+import javax.persistence.*;
+import java.io.Serializable;
+
+@Entity
+@Table(name = "m_sow_animal_heat")
+@Data
+public class MSowAnimalHeatEntity implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    @Id
+    @GeneratedValue(strategy = GenerationType.IDENTITY)
+    @Column(name = "id", nullable = false)
+    private Integer id;
+
+    @Column(name = "location_id")
+    private Integer locationId;
+
+    @Column(name = "measure_datetime")
+    private String measureDatetime;
+
+    @Column(name = "measure_date")
+    private String measureDate;
+
+    @Column(name = "measure_time")
+    private String measureTime;
+
+    @Column(name = "heat")
+    private Float heat;
+
+}

+ 29 - 0
huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/domain/MSowNonpregnantEntity.java

@@ -0,0 +1,29 @@
+package com.huimv.production.domain;
+
+import lombok.Data;
+
+import javax.persistence.*;
+import java.io.Serializable;
+
+@Entity
+@Table(name = "m_sow_nonpregnant")
+@Data
+public class MSowNonpregnantEntity implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    @Id
+    @GeneratedValue(strategy = GenerationType.IDENTITY)
+    @Column(name = "id", nullable = false)
+    private Integer id;
+
+    @Column(name = "location")
+    private String location;
+
+    @Column(name = "times")
+    private Integer times;
+
+    @Column(name = "state")
+    private Integer state;
+
+}

+ 32 - 0
huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/domain/MSowOestrusEntity.java

@@ -0,0 +1,32 @@
+package com.huimv.production.domain;
+
+import lombok.Data;
+
+import javax.persistence.*;
+import java.io.Serializable;
+
+@Entity
+@Data
+@Table(name = "m_sow_oestrus")
+public class MSowOestrusEntity implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    @Id
+    @GeneratedValue(strategy = GenerationType.IDENTITY)
+    @Column(name = "id", nullable = false)
+    private Integer id;
+
+    @Column(name = "location")
+    private String location;
+
+    /**
+     * 已发情(0:未发情 1:已发情)
+     */
+    @Column(name = "oestrus_state")
+    private Integer oestrusState;
+
+    @Column(name = "state")
+    private Integer state;
+
+}

+ 29 - 0
huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/domain/MSowPredeliveryEntity.java

@@ -0,0 +1,29 @@
+package com.huimv.production.domain;
+
+import lombok.Data;
+
+import javax.persistence.*;
+import java.io.Serializable;
+
+@Entity
+@Data
+@Table(name = "m_sow_predelivery")
+public class MSowPredeliveryEntity implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    @Id
+    @GeneratedValue(strategy = GenerationType.IDENTITY)
+    @Column(name = "id", nullable = false)
+    private Integer id;
+
+    @Column(name = "location")
+    private String location;
+
+    @Column(name = "days")
+    private Integer days;
+
+    @Column(name = "state")
+    private Integer state;
+
+}

+ 38 - 0
huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/domain/MTransferChildcareEntity.java

@@ -0,0 +1,38 @@
+package com.huimv.production.domain;
+
+import lombok.Data;
+
+import javax.persistence.*;
+import java.io.Serializable;
+
+@Entity
+@Table(name = "m_transfer_childcare")
+@Data
+public class MTransferChildcareEntity implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    @Id
+    @GeneratedValue(strategy = GenerationType.IDENTITY)
+    @Column(name = "id", nullable = false)
+    private Integer id;
+
+    /**
+     * 位置
+     */
+    @Column(name = "location")
+    private String location;
+
+    /**
+     * 数量
+     */
+    @Column(name = "quantity")
+    private Integer quantity;
+
+    /**
+     * 状态(0:未确认 1:已确认)
+     */
+    @Column(name = "state")
+    private Integer state;
+
+}

+ 29 - 0
huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/domain/MTransferFattenEntity.java

@@ -0,0 +1,29 @@
+package com.huimv.production.domain;
+
+import lombok.Data;
+
+import javax.persistence.*;
+import java.io.Serializable;
+
+@Entity
+@Table(name = "m_transfer_fatten")
+@Data
+public class MTransferFattenEntity implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    @Id
+    @GeneratedValue(strategy = GenerationType.IDENTITY)
+    @Column(name = "id", nullable = false)
+    private Integer id;
+
+    @Column(name = "location")
+    private String location;
+
+    @Column(name = "quantity")
+    private Integer quantity;
+
+    @Column(name = "state")
+    private Integer state;
+
+}

+ 9 - 0
huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/repo/MAnimalHeatWarningEntityRepo.java

@@ -0,0 +1,9 @@
+package com.huimv.production.repo;
+
+import com.huimv.production.domain.MAnimalHeatWarningEntity;
+import org.springframework.data.jpa.repository.JpaRepository;
+import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
+
+public interface MAnimalHeatWarningEntityRepo extends JpaRepository<MAnimalHeatWarningEntity, Integer>, JpaSpecificationExecutor<MAnimalHeatWarningEntity> {
+
+}

+ 14 - 0
huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/repo/MPlanImmunityEntityRepo.java

@@ -0,0 +1,14 @@
+package com.huimv.production.repo;
+
+import com.huimv.production.domain.MPlanImmunityEntity;
+import org.springframework.data.jpa.repository.JpaRepository;
+import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
+
+import java.util.List;
+
+public interface MPlanImmunityEntityRepo extends JpaRepository<MPlanImmunityEntity, Integer>, JpaSpecificationExecutor<MPlanImmunityEntity> {
+
+
+    List findAllByState(Integer state);
+
+}

+ 12 - 0
huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/repo/MPurchasePlanEntityRepo.java

@@ -0,0 +1,12 @@
+package com.huimv.production.repo;
+
+import com.huimv.production.domain.MPurchasePlanEntity;
+import org.springframework.data.jpa.repository.JpaRepository;
+import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
+
+import java.util.List;
+
+public interface MPurchasePlanEntityRepo extends JpaRepository<MPurchasePlanEntity, Integer>, JpaSpecificationExecutor<MPurchasePlanEntity> {
+
+    List<MPurchasePlanEntity> findAllByState(int i);
+}

+ 12 - 0
huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/repo/MSowAblactationEntityRepo.java

@@ -0,0 +1,12 @@
+package com.huimv.production.repo;
+
+import com.huimv.production.domain.MSowAblactationEntity;
+import org.springframework.data.jpa.repository.JpaRepository;
+import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
+
+import java.util.List;
+
+public interface MSowAblactationEntityRepo extends JpaRepository<MSowAblactationEntity, Integer>, JpaSpecificationExecutor<MSowAblactationEntity> {
+
+    List<MSowAblactationEntity> findAllByState(int i);
+}

+ 19 - 0
huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/repo/MSowAnimalHeatEntityRepo.java

@@ -0,0 +1,19 @@
+package com.huimv.production.repo;
+
+import com.huimv.production.domain.MSowAnimalHeatEntity;
+import org.springframework.data.jpa.repository.JpaRepository;
+import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
+import org.springframework.data.jpa.repository.Query;
+
+import java.util.List;
+import java.util.Map;
+
+public interface MSowAnimalHeatEntityRepo extends JpaRepository<MSowAnimalHeatEntity, Integer>, JpaSpecificationExecutor<MSowAnimalHeatEntity> {
+
+
+    List findAllByLocationId(Integer locationId);
+
+
+    @Query(nativeQuery = true,value = "SELECT AVG(heat), measure_time FROM `m_sow_animal_heat` GROUP BY measure_time")
+    List<List> findAllBy();
+}

+ 12 - 0
huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/repo/MSowNonpregnantEntityRepo.java

@@ -0,0 +1,12 @@
+package com.huimv.production.repo;
+
+import com.huimv.production.domain.MSowNonpregnantEntity;
+import org.springframework.data.jpa.repository.JpaRepository;
+import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
+
+import java.util.List;
+
+public interface MSowNonpregnantEntityRepo extends JpaRepository<MSowNonpregnantEntity, Integer>, JpaSpecificationExecutor<MSowNonpregnantEntity> {
+
+    List<MSowNonpregnantEntity> findAllByState(int i);
+}

+ 12 - 0
huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/repo/MSowOestrusEntityRepo.java

@@ -0,0 +1,12 @@
+package com.huimv.production.repo;
+
+import com.huimv.production.domain.MSowOestrusEntity;
+import org.springframework.data.jpa.repository.JpaRepository;
+import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
+
+import java.util.List;
+
+public interface MSowOestrusEntityRepo extends JpaRepository<MSowOestrusEntity, Integer>, JpaSpecificationExecutor<MSowOestrusEntity> {
+
+    List<MSowOestrusEntity> findAllByState(int i);
+}

+ 12 - 0
huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/repo/MSowPredeliveryEntityRepo.java

@@ -0,0 +1,12 @@
+package com.huimv.production.repo;
+
+import com.huimv.production.domain.MSowPredeliveryEntity;
+import org.springframework.data.jpa.repository.JpaRepository;
+import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
+
+import java.util.List;
+
+public interface MSowPredeliveryEntityRepo extends JpaRepository<MSowPredeliveryEntity, Integer>, JpaSpecificationExecutor<MSowPredeliveryEntity> {
+
+    List<MSowPredeliveryEntity> findAllByState(int i);
+}

+ 13 - 0
huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/repo/MTransferChildcareEntityRepo.java

@@ -0,0 +1,13 @@
+package com.huimv.production.repo;
+
+import com.huimv.production.domain.MPlanImmunityEntity;
+import com.huimv.production.domain.MTransferChildcareEntity;
+import org.springframework.data.jpa.repository.JpaRepository;
+import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
+
+import java.util.List;
+
+public interface MTransferChildcareEntityRepo extends JpaRepository<MTransferChildcareEntity, Integer>, JpaSpecificationExecutor<MTransferChildcareEntity> {
+
+    List<MTransferChildcareEntity> findAllByState(int i);
+}

+ 12 - 0
huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/repo/MTransferFattenEntityRepo.java

@@ -0,0 +1,12 @@
+package com.huimv.production.repo;
+
+import com.huimv.production.domain.MTransferFattenEntity;
+import org.springframework.data.jpa.repository.JpaRepository;
+import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
+
+import java.util.List;
+
+public interface MTransferFattenEntityRepo extends JpaRepository<MTransferFattenEntity, Integer>, JpaSpecificationExecutor<MTransferFattenEntity> {
+
+    List<MTransferFattenEntity> findAllByState(int i);
+}

+ 27 - 0
huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/service/MAnimalHeatWarningService.java

@@ -0,0 +1,27 @@
+package com.huimv.production.service;
+
+import com.huimv.production.domain.MAnimalHeatWarningEntity;
+import com.huimv.production.domain.MTransferFattenEntity;
+import com.huimv.production.repo.MAnimalHeatWarningEntityRepo;
+import com.huimv.production.result.Result;
+
+/**
+ * @Project : huimv.shiwan
+ * @Package : com.huimv.production.service
+ * @Description : TODO
+ * @Author : yuxuexuan
+ * @Create : 2021/3/9 0009 17:43
+ **/
+public interface MAnimalHeatWarningService {
+
+
+    Result add(MAnimalHeatWarningEntity fattenEntity);
+
+    Result remove(Integer[] ids);
+
+    Result update(MAnimalHeatWarningEntity fattenEntity);
+
+    Result findAll();
+
+    Result findAllBy();
+}

+ 27 - 0
huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/service/MPlanImmunityService.java

@@ -0,0 +1,27 @@
+package com.huimv.production.service;
+
+import com.huimv.production.domain.MPlanImmunityEntity;
+import com.huimv.production.domain.MTransferFattenEntity;
+import com.huimv.production.repo.MPlanImmunityEntityRepo;
+import com.huimv.production.result.Result;
+
+/**
+ * @Project : huimv.shiwan
+ * @Package : com.huimv.production.service
+ * @Description : TODO
+ * @Author : yuxuexuan
+ * @Create : 2021/3/9 0009 17:43
+ **/
+public interface MPlanImmunityService {
+
+
+    Result add(MPlanImmunityEntity fattenEntity);
+
+    Result remove(Integer[] ids);
+
+    Result update(MPlanImmunityEntity fattenEntity);
+
+    Result findAll();
+
+    Result findAllBy();
+}

+ 27 - 0
huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/service/MPurchasePlanService.java

@@ -0,0 +1,27 @@
+package com.huimv.production.service;
+
+import com.huimv.production.domain.MPurchasePlanEntity;
+import com.huimv.production.domain.MTransferFattenEntity;
+import com.huimv.production.repo.MPurchasePlanEntityRepo;
+import com.huimv.production.result.Result;
+
+/**
+ * @Project : huimv.shiwan
+ * @Package : com.huimv.production.service
+ * @Description : TODO
+ * @Author : yuxuexuan
+ * @Create : 2021/3/9 0009 17:43
+ **/
+public interface MPurchasePlanService {
+
+
+    Result add(MPurchasePlanEntity fattenEntity);
+
+    Result remove(Integer[] ids);
+
+    Result update(MPurchasePlanEntity fattenEntity);
+
+    Result findAll();
+
+    Result findAllBy();
+}

+ 27 - 0
huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/service/MSowAblactationService.java

@@ -0,0 +1,27 @@
+package com.huimv.production.service;
+
+import com.huimv.production.domain.MSowAblactationEntity;
+import com.huimv.production.domain.MTransferFattenEntity;
+import com.huimv.production.repo.MSowAblactationEntityRepo;
+import com.huimv.production.result.Result;
+
+/**
+ * @Project : huimv.shiwan
+ * @Package : com.huimv.production.service
+ * @Description : TODO
+ * @Author : yuxuexuan
+ * @Create : 2021/3/9 0009 17:43
+ **/
+public interface MSowAblactationService {
+
+
+    Result add(MSowAblactationEntity fattenEntity);
+
+    Result remove(Integer[] ids);
+
+    Result update(MSowAblactationEntity fattenEntity);
+
+    Result findAll();
+
+    Result findAllBy();
+}

+ 26 - 0
huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/service/MSowAnimalHeatService.java

@@ -0,0 +1,26 @@
+package com.huimv.production.service;
+
+import com.huimv.production.domain.MSowAnimalHeatEntity;
+import com.huimv.production.domain.MTransferFattenEntity;
+import com.huimv.production.result.Result;
+
+/**
+ * @Project : huimv.shiwan
+ * @Package : com.huimv.production.service
+ * @Description : TODO
+ * @Author : yuxuexuan
+ * @Create : 2021/3/9 0009 17:43
+ **/
+public interface MSowAnimalHeatService {
+
+
+    Result add(MSowAnimalHeatEntity fattenEntity);
+
+    Result remove(Integer[] ids);
+
+    Result update(MSowAnimalHeatEntity fattenEntity);
+
+    Result findAll();
+
+    Result findAllById(Integer locationId);
+}

+ 26 - 0
huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/service/MSowNonpreganService.java

@@ -0,0 +1,26 @@
+package com.huimv.production.service;
+
+import com.huimv.production.domain.MSowNonpregnantEntity;
+import com.huimv.production.domain.MTransferChildcareEntity;
+import com.huimv.production.result.Result;
+
+/**
+ * @Project : huimv.shiwan
+ * @Package : com.huimv.production.service
+ * @Description : TODO
+ * @Author : yuxuexuan
+ * @Create : 2021/3/9 0009 17:43
+ **/
+public interface MSowNonpreganService {
+
+
+    Result add(MSowNonpregnantEntity mSowNonpregnantEntity);
+
+    Result remove(Integer[] ids);
+
+    Result update(MSowNonpregnantEntity mSowNonpregnantEntity);
+
+    Result findAll();
+
+    Result findAllBy();
+}

+ 26 - 0
huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/service/MSowOestrusService.java

@@ -0,0 +1,26 @@
+package com.huimv.production.service;
+
+import com.huimv.production.domain.MSowOestrusEntity;
+import com.huimv.production.domain.MTransferChildcareEntity;
+import com.huimv.production.result.Result;
+
+/**
+ * @Project : huimv.shiwan
+ * @Package : com.huimv.production.service
+ * @Description : TODO
+ * @Author : yuxuexuan
+ * @Create : 2021/3/9 0009 17:43
+ **/
+public interface MSowOestrusService {
+
+
+    Result add(MSowOestrusEntity sowOestrusEntity);
+
+    Result remove(Integer[] ids);
+
+    Result update(MSowOestrusEntity sowOestrusEntity);
+
+    Result findAll();
+
+    Result findAllBy();
+}

+ 26 - 0
huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/service/MSowPredeliveryService.java

@@ -0,0 +1,26 @@
+package com.huimv.production.service;
+
+import com.huimv.production.domain.MSowPredeliveryEntity;
+import com.huimv.production.domain.MTransferFattenEntity;
+import com.huimv.production.result.Result;
+
+/**
+ * @Project : huimv.shiwan
+ * @Package : com.huimv.production.service
+ * @Description : TODO
+ * @Author : yuxuexuan
+ * @Create : 2021/3/9 0009 17:43
+ **/
+public interface MSowPredeliveryService {
+
+
+    Result add(MSowPredeliveryEntity fattenEntity);
+
+    Result remove(Integer[] ids);
+
+    Result update(MSowPredeliveryEntity fattenEntity);
+
+    Result findAll();
+
+    Result findAllBy();
+}

+ 25 - 0
huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/service/MTransferChildcareService.java

@@ -0,0 +1,25 @@
+package com.huimv.production.service;
+
+import com.huimv.production.domain.MTransferChildcareEntity;
+import com.huimv.production.result.Result;
+
+/**
+ * @Project : huimv.shiwan
+ * @Package : com.huimv.production.service
+ * @Description : TODO
+ * @Author : yuxuexuan
+ * @Create : 2021/3/9 0009 17:43
+ **/
+public interface MTransferChildcareService {
+
+
+    Result add(MTransferChildcareEntity childcareEntity);
+
+    Result remove(Integer[] ids);
+
+    Result update(MTransferChildcareEntity childcareEntity);
+
+    Result findAll();
+
+    Result findAllBy();
+}

+ 26 - 0
huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/service/MTransferFattentService.java

@@ -0,0 +1,26 @@
+package com.huimv.production.service;
+
+import com.huimv.production.domain.MTransferChildcareEntity;
+import com.huimv.production.domain.MTransferFattenEntity;
+import com.huimv.production.result.Result;
+
+/**
+ * @Project : huimv.shiwan
+ * @Package : com.huimv.production.service
+ * @Description : TODO
+ * @Author : yuxuexuan
+ * @Create : 2021/3/9 0009 17:43
+ **/
+public interface MTransferFattentService {
+
+
+    Result add(MTransferFattenEntity fattenEntity);
+
+    Result remove(Integer[] ids);
+
+    Result update(MTransferFattenEntity fattenEntity);
+
+    Result findAll();
+
+    Result findAllBy();
+}

+ 95 - 0
huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/service/impl/MAnimalHeatWarningServiceImpl.java

@@ -0,0 +1,95 @@
+package com.huimv.production.service.impl;
+
+import com.huimv.production.domain.MAnimalHeatWarningEntity;
+import com.huimv.production.domain.MSowPredeliveryEntity;
+import com.huimv.production.repo.MAnimalHeatWarningEntityRepo;
+import com.huimv.production.repo.MAnimalHeatWarningEntityRepo;
+import com.huimv.production.result.Result;
+import com.huimv.production.service.MAnimalHeatWarningService;
+import com.huimv.production.service.MTransferFattentService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * @Project : huimv.shiwan
+ * @Package : com.huimv.production.service.impl
+ * @Description : TODO
+ * @Author : yuxuexuan
+ * @Create : 2021/3/9 0009 17:43
+ **/
+@Service
+public class MAnimalHeatWarningServiceImpl implements MAnimalHeatWarningService {
+    @Autowired
+    private MAnimalHeatWarningEntityRepo fattenEntityRepo;
+
+    @Override
+    public Result add(MAnimalHeatWarningEntity childcareEntity) {
+        if (childcareEntity == null){
+            return new Result(10002,"请输入参数");
+        }
+        try {
+            fattenEntityRepo.save(childcareEntity);
+            return new Result(10000,"添加成功");
+        }catch (Exception e){
+            return new Result(10001,"添加失败");
+        }
+    }
+
+    @Override
+    public Result remove(Integer[] ids) {
+        if (ids == null || ids.length==0){
+            return new Result(10002,"请选择要删除的数据");
+        }
+        try {
+            for (Integer id : ids) {
+                fattenEntityRepo.deleteById(id);
+            }
+
+            return new Result(10000,"删除成功");
+        }catch (Exception e){
+            return new Result(10001,"删除失败");
+        }
+    }
+
+    @Override
+    public Result update(MAnimalHeatWarningEntity childcareEntity) {
+        if (childcareEntity == null){
+            return new Result(10002,"请选择要修改的值");
+        }
+        try {
+            fattenEntityRepo.save(childcareEntity);
+            return new Result(10000,"修改成功");
+        }catch (Exception e){
+            return new Result(10001,"修改失败");
+        }
+    }
+
+    @Override
+    public Result findAll() {
+        try {
+            List<MAnimalHeatWarningEntity> all = fattenEntityRepo.findAll();
+            return new Result(10000,"查询成功",all);
+        }catch (Exception e){
+            return new Result(10001,"查询失败",null);
+        }
+    }
+
+    @Override
+    public Result findAllBy() {
+
+        try {
+            List<MAnimalHeatWarningEntity> all = fattenEntityRepo.findAll();
+            Map map = new HashMap();
+            map.put("data",all);
+            map.put("size",all.size());
+            return new Result(10000,"查询成功",map);
+        }catch (Exception e){
+            return new Result(10001,"查询失败",null);
+        }
+    }
+    
+}

+ 94 - 0
huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/service/impl/MPlanImmunityServiceImpl.java

@@ -0,0 +1,94 @@
+package com.huimv.production.service.impl;
+
+import com.huimv.production.domain.MPlanImmunityEntity;
+import com.huimv.production.repo.MPlanImmunityEntityRepo;
+import com.huimv.production.repo.MPlanImmunityEntityRepo;
+import com.huimv.production.result.Result;
+import com.huimv.production.service.MPlanImmunityService;
+import com.huimv.production.service.MTransferFattentService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * @Project : huimv.shiwan
+ * @Package : com.huimv.production.service.impl
+ * @Description : TODO
+ * @Author : yuxuexuan
+ * @Create : 2021/3/9 0009 17:43
+ **/
+@Service
+public class MPlanImmunityServiceImpl implements MPlanImmunityService {
+    @Autowired
+    private MPlanImmunityEntityRepo fattenEntityRepo;
+
+    @Override
+    public Result add(MPlanImmunityEntity childcareEntity) {
+        if (childcareEntity == null){
+            return new Result(10002,"请输入参数");
+        }
+        try {
+            fattenEntityRepo.save(childcareEntity);
+            return new Result(10000,"添加成功");
+        }catch (Exception e){
+            return new Result(10001,"添加失败");
+        }
+    }
+
+    @Override
+    public Result remove(Integer[] ids) {
+        if (ids == null || ids.length==0){
+            return new Result(10002,"请选择要删除的数据");
+        }
+        try {
+            for (Integer id : ids) {
+                fattenEntityRepo.deleteById(id);
+            }
+
+            return new Result(10000,"删除成功");
+        }catch (Exception e){
+            return new Result(10001,"删除失败");
+        }
+    }
+
+    @Override
+    public Result update(MPlanImmunityEntity childcareEntity) {
+        if (childcareEntity == null){
+            return new Result(10002,"请选择要修改的值");
+        }
+        try {
+            fattenEntityRepo.save(childcareEntity);
+            return new Result(10000,"修改成功");
+        }catch (Exception e){
+            return new Result(10001,"修改失败");
+        }
+    }
+
+    @Override
+    public Result findAll() {
+        try {
+            List<MPlanImmunityEntity> all = fattenEntityRepo.findAll();
+            return new Result(10000,"查询成功",all);
+        }catch (Exception e){
+            return new Result(10001,"查询失败",null);
+        }
+    }
+
+    @Override
+    public Result findAllBy() {
+
+        try {
+            List<MPlanImmunityEntity> all = fattenEntityRepo.findAllByState(0);
+            Map map = new HashMap();
+            map.put("data",all);
+            map.put("size",all.size());
+            return new Result(10000,"查询成功",map);
+        }catch (Exception e){
+            return new Result(10001,"查询失败",null);
+        }
+    }
+
+}

+ 95 - 0
huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/service/impl/MPurchasePlanServiceImpl.java

@@ -0,0 +1,95 @@
+package com.huimv.production.service.impl;
+
+import com.huimv.production.domain.MPlanImmunityEntity;
+import com.huimv.production.domain.MPurchasePlanEntity;
+import com.huimv.production.repo.MPurchasePlanEntityRepo;
+import com.huimv.production.repo.MPurchasePlanEntityRepo;
+import com.huimv.production.result.Result;
+import com.huimv.production.service.MPurchasePlanService;
+import com.huimv.production.service.MTransferFattentService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * @Project : huimv.shiwan
+ * @Package : com.huimv.production.service.impl
+ * @Description : TODO
+ * @Author : yuxuexuan
+ * @Create : 2021/3/9 0009 17:43
+ **/
+@Service
+public class MPurchasePlanServiceImpl implements MPurchasePlanService {
+    @Autowired
+    private MPurchasePlanEntityRepo fattenEntityRepo;
+
+    @Override
+    public Result add(MPurchasePlanEntity childcareEntity) {
+        if (childcareEntity == null){
+            return new Result(10002,"请输入参数");
+        }
+        try {
+            fattenEntityRepo.save(childcareEntity);
+            return new Result(10000,"添加成功");
+        }catch (Exception e){
+            return new Result(10001,"添加失败");
+        }
+    }
+
+    @Override
+    public Result remove(Integer[] ids) {
+        if (ids == null || ids.length==0){
+            return new Result(10002,"请选择要删除的数据");
+        }
+        try {
+            for (Integer id : ids) {
+                fattenEntityRepo.deleteById(id);
+            }
+
+            return new Result(10000,"删除成功");
+        }catch (Exception e){
+            return new Result(10001,"删除失败");
+        }
+    }
+
+    @Override
+    public Result update(MPurchasePlanEntity childcareEntity) {
+        if (childcareEntity == null){
+            return new Result(10002,"请选择要修改的值");
+        }
+        try {
+            fattenEntityRepo.save(childcareEntity);
+            return new Result(10000,"修改成功");
+        }catch (Exception e){
+            return new Result(10001,"修改失败");
+        }
+    }
+
+    @Override
+    public Result findAll() {
+        try {
+            List<MPurchasePlanEntity> all = fattenEntityRepo.findAll();
+            return new Result(10000,"查询成功",all);
+        }catch (Exception e){
+            return new Result(10001,"查询失败",null);
+        }
+    }
+
+    @Override
+    public Result findAllBy() {
+
+        try {
+            List<MPurchasePlanEntity> all = fattenEntityRepo.findAllByState(0);
+            Map map = new HashMap();
+            map.put("data",all);
+            map.put("size",all.size());
+            return new Result(10000,"查询成功",map);
+        }catch (Exception e){
+            return new Result(10001,"查询失败",null);
+        }
+    }
+    
+}

+ 94 - 0
huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/service/impl/MSowAblactationServiceImpl.java

@@ -0,0 +1,94 @@
+package com.huimv.production.service.impl;
+
+import com.huimv.production.domain.MSowAblactationEntity;
+import com.huimv.production.domain.MTransferFattenEntity;
+import com.huimv.production.repo.MSowAblactationEntityRepo;
+import com.huimv.production.repo.MSowAblactationEntityRepo;
+import com.huimv.production.result.Result;
+import com.huimv.production.service.MSowAblactationService;
+import com.huimv.production.service.MTransferFattentService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * @Project : huimv.shiwan
+ * @Package : com.huimv.production.service.impl
+ * @Description : TODO
+ * @Author : yuxuexuan
+ * @Create : 2021/3/9 0009 17:43
+ **/
+@Service
+public class MSowAblactationServiceImpl implements MSowAblactationService {
+    @Autowired
+    private MSowAblactationEntityRepo fattenEntityRepo;
+
+    @Override
+    public Result add(MSowAblactationEntity childcareEntity) {
+        if (childcareEntity == null){
+            return new Result(10002,"请输入参数");
+        }
+        try {
+            fattenEntityRepo.save(childcareEntity);
+            return new Result(10000,"添加成功");
+        }catch (Exception e){
+            return new Result(10001,"添加失败");
+        }
+    }
+
+    @Override
+    public Result remove(Integer[] ids) {
+        if (ids == null || ids.length==0){
+            return new Result(10002,"请选择要删除的数据");
+        }
+        try {
+            for (Integer id : ids) {
+                fattenEntityRepo.deleteById(id);
+            }
+
+            return new Result(10000,"删除成功");
+        }catch (Exception e){
+            return new Result(10001,"删除失败");
+        }
+    }
+
+    @Override
+    public Result update(MSowAblactationEntity childcareEntity) {
+        if (childcareEntity == null){
+            return new Result(10002,"请选择要修改的值");
+        }
+        try {
+            fattenEntityRepo.save(childcareEntity);
+            return new Result(10000,"修改成功");
+        }catch (Exception e){
+            return new Result(10001,"修改失败");
+        }
+    }
+
+    @Override
+    public Result findAll() {
+        try {
+            List<MSowAblactationEntity> all = fattenEntityRepo.findAll();
+            return new Result(10000,"查询成功",all);
+        }catch (Exception e){
+            return new Result(10001,"查询失败",null);
+        }
+    }
+    @Override
+    public Result findAllBy() {
+
+        try {
+            List<MSowAblactationEntity> all = fattenEntityRepo.findAllByState(0);
+            Map map = new HashMap();
+            map.put("data",all);
+            map.put("size",all.size());
+            return new Result(10000,"查询成功",map);
+        }catch (Exception e){
+            return new Result(10001,"查询失败",null);
+        }
+    }
+    
+}

+ 113 - 0
huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/service/impl/MSowAnimalHeatServiceImpl.java

@@ -0,0 +1,113 @@
+package com.huimv.production.service.impl;
+
+import com.huimv.production.domain.MSowAnimalHeatEntity;
+import com.huimv.production.repo.MSowAnimalHeatEntityRepo;
+import com.huimv.production.repo.MSowAnimalHeatEntityRepo;
+import com.huimv.production.result.Result;
+import com.huimv.production.service.MSowAnimalHeatService;
+import com.huimv.production.service.MTransferFattentService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * @Project : huimv.shiwan
+ * @Package : com.huimv.production.service.impl
+ * @Description : TODO
+ * @Author : yuxuexuan
+ * @Create : 2021/3/9 0009 17:43
+ **/
+@Service
+public class MSowAnimalHeatServiceImpl implements MSowAnimalHeatService {
+    @Autowired
+    private MSowAnimalHeatEntityRepo fattenEntityRepo;
+
+    @Override
+    public Result add(MSowAnimalHeatEntity childcareEntity) {
+        if (childcareEntity == null){
+            return new Result(10002,"请输入参数");
+        }
+        try {
+            String measureDatetime = childcareEntity.getMeasureDatetime();
+            //2021-03-03 00:00:00
+           childcareEntity.setMeasureDate(measureDatetime.substring(0,10));
+           childcareEntity.setMeasureTime(measureDatetime.substring(11));
+            fattenEntityRepo.save(childcareEntity);
+            return new Result(10000,"添加成功");
+        }catch (Exception e){
+            return new Result(10001,"添加失败");
+        }
+    }
+
+    @Override
+    public Result remove(Integer[] ids) {
+        if (ids == null || ids.length==0){
+            return new Result(10002,"请选择要删除的数据");
+        }
+        try {
+            for (Integer id : ids) {
+                fattenEntityRepo.deleteById(id);
+            }
+
+            return new Result(10000,"删除成功");
+        }catch (Exception e){
+            return new Result(10001,"删除失败");
+        }
+    }
+
+    @Override
+    public Result update(MSowAnimalHeatEntity childcareEntity) {
+        if (childcareEntity == null){
+            return new Result(10002,"请选择要修改的值");
+        }
+        try {
+            fattenEntityRepo.save(childcareEntity);
+            return new Result(10000,"修改成功");
+        }catch (Exception e){
+            return new Result(10001,"修改失败");
+        }
+    }
+
+    @Override
+    public Result findAll() {
+        try {
+            List<MSowAnimalHeatEntity> all = fattenEntityRepo.findAll();
+            return new Result(10000,"查询成功",all);
+        }catch (Exception e){
+            return new Result(10001,"查询失败",null);
+        }
+    }
+
+    @Override
+    public Result findAllById(Integer locationId) {
+
+        List list = new ArrayList();
+
+        List<MSowAnimalHeatEntity> allByLocationId = fattenEntityRepo.findAllByLocationId(locationId);
+        for (MSowAnimalHeatEntity o : allByLocationId) {
+            Map map = new HashMap();
+            map.put("heat",o.getHeat());
+            map.put("time",o.getMeasureTime());
+            list.add(map);
+        }
+
+        List list2 = new ArrayList();
+        List<List> allBy = fattenEntityRepo.findAllBy();
+        for (List list1 : allBy) {
+            Map map = new HashMap();
+            map.put("heat",list1.get(0));
+            map.put("time",list1.get(1));
+            list2.add(map);
+        }
+
+        Map map = new HashMap();
+        map.put("groupHeat",list);
+        map.put("unitHeat",list2);
+        return new Result(10000,"查询成功",map);
+    }
+
+}

+ 93 - 0
huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/service/impl/MSowNonpreganServiceImpl.java

@@ -0,0 +1,93 @@
+package com.huimv.production.service.impl;
+
+import com.huimv.production.domain.MSowNonpregnantEntity;
+import com.huimv.production.domain.MTransferFattenEntity;
+import com.huimv.production.repo.MSowNonpregnantEntityRepo;
+import com.huimv.production.result.Result;
+import com.huimv.production.service.MSowNonpreganService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * @Project : huimv.shiwan
+ * @Package : com.huimv.production.service.impl
+ * @Description : TODO
+ * @Author : yuxuexuan
+ * @Create : 2021/3/9 0009 17:43
+ **/
+@Service
+public class MSowNonpreganServiceImpl implements MSowNonpreganService {
+    @Autowired
+    private MSowNonpregnantEntityRepo nonpregnantEntityRepo;
+
+    @Override
+    public Result add(MSowNonpregnantEntity mSowNonpregnantEntity) {
+        if (mSowNonpregnantEntity == null){
+            return new Result(10002,"请输入参数");
+        }
+        try {
+            nonpregnantEntityRepo.save(mSowNonpregnantEntity);
+            return new Result(10000,"添加成功");
+        }catch (Exception e){
+            return new Result(10001,"添加失败");
+        }
+    }
+
+    @Override
+    public Result remove(Integer[] ids) {
+        if (ids == null || ids.length==0){
+            return new Result(10002,"请选择要删除的数据");
+        }
+        try {
+            for (Integer id : ids) {
+                nonpregnantEntityRepo.deleteById(id);
+            }
+
+            return new Result(10000,"删除成功");
+        }catch (Exception e){
+            return new Result(10001,"删除失败");
+        }
+    }
+
+    @Override
+    public Result update(MSowNonpregnantEntity mSowNonpregnantEntity) {
+        if (mSowNonpregnantEntity == null){
+            return new Result(10002,"请选择要修改的值");
+        }
+        try {
+            nonpregnantEntityRepo.save(mSowNonpregnantEntity);
+            return new Result(10000,"修改成功");
+        }catch (Exception e){
+            return new Result(10001,"修改失败");
+        }
+    }
+
+    @Override
+    public Result findAll() {
+        try {
+            List<MSowNonpregnantEntity> all = nonpregnantEntityRepo.findAll();
+            return new Result(10000,"查询成功",all);
+        }catch (Exception e){
+            return new Result(10001,"查询失败",null);
+        }
+    }
+
+    @Override
+    public Result findAllBy() {
+
+        try {
+            List<MSowNonpregnantEntity> all = nonpregnantEntityRepo.findAllByState(0);
+            Map map = new HashMap();
+            map.put("data",all);
+            map.put("size",all.size());
+            return new Result(10000,"查询成功",map);
+        }catch (Exception e){
+            return new Result(10001,"查询失败",null);
+        }
+    }
+    
+}

+ 95 - 0
huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/service/impl/MSowOestrusServiceImpl.java

@@ -0,0 +1,95 @@
+package com.huimv.production.service.impl;
+
+import com.huimv.production.domain.MSowOestrusEntity;
+import com.huimv.production.domain.MTransferFattenEntity;
+import com.huimv.production.repo.MSowOestrusEntityRepo;
+import com.huimv.production.result.Result;
+import com.huimv.production.service.MSowOestrusService;
+import com.huimv.production.service.MTransferChildcareService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * @Project : huimv.shiwan
+ * @Package : com.huimv.production.service.impl
+ * @Description : TODO
+ * @Author : yuxuexuan
+ * @Create : 2021/3/9 0009 17:43
+ **/
+@Service
+public class MSowOestrusServiceImpl implements MSowOestrusService {
+    @Autowired
+    private MSowOestrusEntityRepo mSowOestrusEntityRepo;
+
+    @Override
+    public Result add(MSowOestrusEntity childcareEntity) {
+        if (childcareEntity == null){
+            return new Result(10002,"请输入参数");
+        }
+        try {
+            mSowOestrusEntityRepo.save(childcareEntity);
+            return new Result(10000,"添加成功");
+        }catch (Exception e){
+            return new Result(10001,"添加失败");
+        }
+    }
+
+    @Override
+    public Result remove(Integer[] ids) {
+        if (ids == null || ids.length==0){
+            return new Result(10002,"请选择要删除的数据");
+        }
+        try {
+            for (Integer id : ids) {
+                mSowOestrusEntityRepo.deleteById(id);
+            }
+
+            return new Result(10000,"删除成功");
+        }catch (Exception e){
+            return new Result(10001,"删除失败");
+        }
+    }
+
+    @Override
+    public Result update(MSowOestrusEntity childcareEntity) {
+        if (childcareEntity == null){
+            return new Result(10002,"请选择要修改的值");
+        }
+        try {
+            mSowOestrusEntityRepo.save(childcareEntity);
+            return new Result(10000,"修改成功");
+        }catch (Exception e){
+            return new Result(10001,"修改失败");
+        }
+    }
+
+    @Override
+    public Result findAll() {
+        try {
+            List<MSowOestrusEntity> all = mSowOestrusEntityRepo.findAll();
+            return new Result(10000,"查询成功",all);
+        }catch (Exception e){
+            return new Result(10001,"查询失败",null);
+        }
+    }
+
+    @Override
+    public Result findAllBy() {
+
+        try {
+            List<MSowOestrusEntity> all = mSowOestrusEntityRepo.findAllByState(0);
+            Map map = new HashMap();
+            map.put("data",all);
+            map.put("size",all.size());
+            return new Result(10000,"查询成功",map);
+        }catch (Exception e){
+            return new Result(10001,"查询失败",null);
+        }
+    }
+
+
+}

+ 94 - 0
huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/service/impl/MSowPredeliveryServiceImpl.java

@@ -0,0 +1,94 @@
+package com.huimv.production.service.impl;
+
+import com.huimv.production.domain.MSowPredeliveryEntity;
+import com.huimv.production.domain.MTransferFattenEntity;
+import com.huimv.production.repo.MSowPredeliveryEntityRepo;
+import com.huimv.production.repo.MSowPredeliveryEntityRepo;
+import com.huimv.production.result.Result;
+import com.huimv.production.service.MSowPredeliveryService;
+import com.huimv.production.service.MTransferFattentService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * @Project : huimv.shiwan
+ * @Package : com.huimv.production.service.impl
+ * @Description : TODO
+ * @Author : yuxuexuan
+ * @Create : 2021/3/9 0009 17:43
+ **/
+@Service
+public class MSowPredeliveryServiceImpl implements MSowPredeliveryService {
+    @Autowired
+    private MSowPredeliveryEntityRepo fattenEntityRepo;
+
+    @Override
+    public Result add(MSowPredeliveryEntity childcareEntity) {
+        if (childcareEntity == null){
+            return new Result(10002,"请输入参数");
+        }
+        try {
+            fattenEntityRepo.save(childcareEntity);
+            return new Result(10000,"添加成功");
+        }catch (Exception e){
+            return new Result(10001,"添加失败");
+        }
+    }
+
+    @Override
+    public Result remove(Integer[] ids) {
+        if (ids == null || ids.length==0){
+            return new Result(10002,"请选择要删除的数据");
+        }
+        try {
+            for (Integer id : ids) {
+                fattenEntityRepo.deleteById(id);
+            }
+
+            return new Result(10000,"删除成功");
+        }catch (Exception e){
+            return new Result(10001,"删除失败");
+        }
+    }
+
+    @Override
+    public Result update(MSowPredeliveryEntity childcareEntity) {
+        if (childcareEntity == null){
+            return new Result(10002,"请选择要修改的值");
+        }
+        try {
+            fattenEntityRepo.save(childcareEntity);
+            return new Result(10000,"修改成功");
+        }catch (Exception e){
+            return new Result(10001,"修改失败");
+        }
+    }
+
+    @Override
+    public Result findAll() {
+        try {
+            List<MSowPredeliveryEntity> all = fattenEntityRepo.findAll();
+            return new Result(10000,"查询成功",all);
+        }catch (Exception e){
+            return new Result(10001,"查询失败",null);
+        }
+    }
+
+    @Override
+    public Result findAllBy() {
+
+        try {
+            List<MSowPredeliveryEntity> all = fattenEntityRepo.findAllByState(0);
+            Map map = new HashMap();
+            map.put("data",all);
+            map.put("size",all.size());
+            return new Result(10000,"查询成功",map);
+        }catch (Exception e){
+            return new Result(10001,"查询失败",null);
+        }
+    }
+}

+ 94 - 0
huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/service/impl/MTransferChildcareServiceImpl.java

@@ -0,0 +1,94 @@
+package com.huimv.production.service.impl;
+
+import com.huimv.production.domain.MPlanImmunityEntity;
+import com.huimv.production.domain.MTransferChildcareEntity;
+import com.huimv.production.repo.MTransferChildcareEntityRepo;
+import com.huimv.production.result.Result;
+import com.huimv.production.service.MTransferChildcareService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import java.util.Date;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * @Project : huimv.shiwan
+ * @Package : com.huimv.production.service.impl
+ * @Description : TODO
+ * @Author : yuxuexuan
+ * @Create : 2021/3/9 0009 17:43
+ **/
+@Service
+public class MTransferChildcareServiceImpl implements MTransferChildcareService {
+    @Autowired
+    private MTransferChildcareEntityRepo childcareEntityRepo;
+
+    @Override
+    public Result add(MTransferChildcareEntity childcareEntity) {
+        if (childcareEntity == null){
+            return new Result(10002,"请输入参数");
+        }
+        try {
+            childcareEntityRepo.save(childcareEntity);
+            return new Result(10000,"添加成功");
+        }catch (Exception e){
+            return new Result(10001,"添加失败");
+        }
+    }
+
+    @Override
+    public Result remove(Integer[] ids) {
+        if (ids == null || ids.length==0){
+            return new Result(10002,"请选择要删除的数据");
+        }
+        try {
+            for (Integer id : ids) {
+                childcareEntityRepo.deleteById(id);
+            }
+
+            return new Result(10000,"删除成功");
+        }catch (Exception e){
+            return new Result(10001,"删除失败");
+        }
+    }
+
+    @Override
+    public Result update(MTransferChildcareEntity childcareEntity) {
+        if (childcareEntity == null){
+            return new Result(10002,"请选择要修改的值");
+        }
+        try {
+            childcareEntityRepo.save(childcareEntity);
+            return new Result(10000,"修改成功");
+        }catch (Exception e){
+            return new Result(10001,"修改失败");
+        }
+    }
+
+    @Override
+    public Result findAll() {
+        try {
+            List<MTransferChildcareEntity> all = childcareEntityRepo.findAll();
+            return new Result(10000,"查询成功",all);
+        }catch (Exception e){
+            return new Result(10001,"查询失败",null);
+        }
+    }
+
+    @Override
+    public Result findAllBy() {
+
+        try {
+            List<MTransferChildcareEntity> all = childcareEntityRepo.findAllByState(0);
+            Map map = new HashMap();
+            map.put("data",all);
+            map.put("size",all.size());
+            return new Result(10000,"查询成功",map);
+        }catch (Exception e){
+            return new Result(10001,"查询失败",null);
+        }
+    }
+    
+}

+ 94 - 0
huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/service/impl/MTransferFattentServiceImpl.java

@@ -0,0 +1,94 @@
+package com.huimv.production.service.impl;
+
+import com.huimv.production.domain.MPlanImmunityEntity;
+import com.huimv.production.domain.MTransferFattenEntity;
+import com.huimv.production.repo.MTransferFattenEntityRepo;
+import com.huimv.production.result.Result;
+import com.huimv.production.service.MTransferChildcareService;
+import com.huimv.production.service.MTransferFattentService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * @Project : huimv.shiwan
+ * @Package : com.huimv.production.service.impl
+ * @Description : TODO
+ * @Author : yuxuexuan
+ * @Create : 2021/3/9 0009 17:43
+ **/
+@Service
+public class MTransferFattentServiceImpl implements MTransferFattentService {
+    @Autowired
+    private MTransferFattenEntityRepo fattenEntityRepo;
+
+    @Override
+    public Result add(MTransferFattenEntity childcareEntity) {
+        if (childcareEntity == null){
+            return new Result(10002,"请输入参数");
+        }
+        try {
+            fattenEntityRepo.save(childcareEntity);
+            return new Result(10000,"添加成功");
+        }catch (Exception e){
+            return new Result(10001,"添加失败");
+        }
+    }
+
+    @Override
+    public Result remove(Integer[] ids) {
+        if (ids == null || ids.length==0){
+            return new Result(10002,"请选择要删除的数据");
+        }
+        try {
+            for (Integer id : ids) {
+                fattenEntityRepo.deleteById(id);
+            }
+
+            return new Result(10000,"删除成功");
+        }catch (Exception e){
+            return new Result(10001,"删除失败");
+        }
+    }
+
+    @Override
+    public Result update(MTransferFattenEntity childcareEntity) {
+        if (childcareEntity == null){
+            return new Result(10002,"请选择要修改的值");
+        }
+        try {
+            fattenEntityRepo.save(childcareEntity);
+            return new Result(10000,"修改成功");
+        }catch (Exception e){
+            return new Result(10001,"修改失败");
+        }
+    }
+
+    @Override
+    public Result findAll() {
+        try {
+            List<MTransferFattenEntity> all = fattenEntityRepo.findAll();
+            return new Result(10000,"查询成功",all);
+        }catch (Exception e){
+            return new Result(10001,"查询失败",null);
+        }
+    }
+
+    @Override
+    public Result findAllBy() {
+
+        try {
+            List<MTransferFattenEntity> all = fattenEntityRepo.findAllByState(0);
+            Map map = new HashMap();
+            map.put("data",all);
+            map.put("size",all.size());
+            return new Result(10000,"查询成功",map);
+        }catch (Exception e){
+            return new Result(10001,"查询失败",null);
+        }
+    }
+    
+}