Просмотр исходного кода

添加首页工作看板设置

523096025 4 лет назад
Родитель
Сommit
0a19117002
46 измененных файлов с 1865 добавлено и 2 удалено
  1. 46 0
      huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/controller/BLaborRoomStateController.java
  2. 47 0
      huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/controller/MChildbirthProgressController.java
  3. 47 0
      huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/controller/MFeedDetailController.java
  4. 47 0
      huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/controller/MLaborRomStateController.java
  5. 46 0
      huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/controller/MLaborRoomController.java
  6. 47 0
      huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/controller/MPigletHealthCountController.java
  7. 47 0
      huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/controller/MSowChildbirthRecordController.java
  8. 47 0
      huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/controller/MSowController.java
  9. 47 0
      huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/controller/MSowCopulationController.java
  10. 25 0
      huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/domain/BLaborRoomStateEntity.java
  11. 35 0
      huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/domain/MChildbirthProgressEntity.java
  12. 35 0
      huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/domain/MFeedDetailEntity.java
  13. 29 0
      huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/domain/MLaborRomStateEntity.java
  14. 32 0
      huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/domain/MLaborRoomEntity.java
  15. 38 0
      huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/domain/MPigletHealthCountEntity.java
  16. 140 0
      huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/domain/MSowChildbirthRecordEntity.java
  17. 45 0
      huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/domain/MSowCopulationEntity.java
  18. 62 0
      huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/domain/MSowEntity.java
  19. 9 0
      huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/repo/BLaborRoomEntityRepo.java
  20. 9 0
      huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/repo/MChildbirthProgressEntityRepo.java
  21. 9 0
      huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/repo/MFeedDetailEntityRepo.java
  22. 9 0
      huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/repo/MLaborRomStateEntityRepo.java
  23. 9 0
      huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/repo/MLaborRoomStateEntityRepo.java
  24. 9 0
      huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/repo/MPigletHealthCountEntityRepo.java
  25. 9 0
      huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/repo/MSowChildbirthRecordEntityRepo.java
  26. 9 0
      huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/repo/MSowCopulationEntityRepo.java
  27. 9 0
      huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/repo/MSowEntityRepo.java
  28. 25 0
      huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/service/BLaborRoomStateService.java
  29. 25 0
      huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/service/MChildbirthProgressService.java
  30. 25 0
      huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/service/MFeedDetailService.java
  31. 25 0
      huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/service/MLaborRomStateService.java
  32. 24 0
      huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/service/MLaborRoomService.java
  33. 25 0
      huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/service/MPigletHealthCountService.java
  34. 25 0
      huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/service/MSowChildbirthRecordService.java
  35. 24 0
      huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/service/MSowCopulationService.java
  36. 25 0
      huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/service/MSowService.java
  37. 76 0
      huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/service/impl/BLaborRoomStateServiceImpl.java
  38. 78 0
      huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/service/impl/MChildbirthProgressServiceImpl.java
  39. 78 0
      huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/service/impl/MFeedDetailServiceImpl.java
  40. 80 0
      huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/service/impl/MLaborRomServiceImpl.java
  41. 76 0
      huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/service/impl/MLaborRoomServiceImpl.java
  42. 78 0
      huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/service/impl/MPigletHealthCountServiceImpl.java
  43. 2 2
      huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/service/impl/MSowAnimalHeatServiceImpl.java
  44. 77 0
      huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/service/impl/MSowChildbitrhRecordServiceImpl.java
  45. 76 0
      huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/service/impl/MSowCopulationServiceImpl.java
  46. 78 0
      huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/service/impl/MSowServiceImpl.java

+ 46 - 0
huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/controller/BLaborRoomStateController.java

@@ -0,0 +1,46 @@
+package com.huimv.production.controller;
+
+import com.huimv.production.domain.BLaborRoomStateEntity;
+import com.huimv.production.result.Result;
+import com.huimv.production.service.BLaborRoomStateService;
+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("/laborRoomState")
+public class BLaborRoomStateController {
+
+    @Autowired
+    private BLaborRoomStateService childcareService;
+
+    @RequestMapping("/add")
+    public Result add(BLaborRoomStateEntity childcareEntity){
+        return childcareService.add(childcareEntity);
+    }
+
+    @RequestMapping("/remove")
+    public Result add(Integer[] ids){
+        return childcareService.remove(ids);
+    }
+
+    @RequestMapping("/update")
+    public Result update(BLaborRoomStateEntity childcareEntity){
+        return childcareService.update(childcareEntity);
+    }
+
+    @RequestMapping("/findAll")
+    public Result findAll(){
+        return childcareService.findAll();
+    }
+
+}

+ 47 - 0
huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/controller/MChildbirthProgressController.java

@@ -0,0 +1,47 @@
+package com.huimv.production.controller;
+
+import com.huimv.production.domain.MChildbirthProgressEntity;
+import com.huimv.production.result.Result;
+import com.huimv.production.service.MChildbirthProgressService;
+import com.huimv.production.service.MSowService;
+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("/childbirthProgress")
+public class MChildbirthProgressController {
+
+    @Autowired
+    private MChildbirthProgressService childcareService;
+
+    @RequestMapping("/add")
+    public Result add(MChildbirthProgressEntity childcareEntity){
+        return childcareService.add(childcareEntity);
+    }
+
+    @RequestMapping("/remove")
+    public Result add(Integer[] ids){
+        return childcareService.remove(ids);
+    }
+
+    @RequestMapping("/update")
+    public Result update(MChildbirthProgressEntity childcareEntity){
+        return childcareService.update(childcareEntity);
+    }
+
+    @RequestMapping("/findAll")
+    public Result findAll(){
+        return childcareService.findAll();
+    }
+
+}

+ 47 - 0
huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/controller/MFeedDetailController.java

@@ -0,0 +1,47 @@
+package com.huimv.production.controller;
+
+import com.huimv.production.domain.MFeedDetailEntity;
+import com.huimv.production.result.Result;
+import com.huimv.production.service.MFeedDetailService;
+import com.huimv.production.service.MSowService;
+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("/feedDetail")
+public class MFeedDetailController {
+
+    @Autowired
+    private MFeedDetailService childcareService;
+
+    @RequestMapping("/add")
+    public Result add(MFeedDetailEntity childcareEntity){
+        return childcareService.add(childcareEntity);
+    }
+
+    @RequestMapping("/remove")
+    public Result add(Integer[] ids){
+        return childcareService.remove(ids);
+    }
+
+    @RequestMapping("/update")
+    public Result update(MFeedDetailEntity childcareEntity){
+        return childcareService.update(childcareEntity);
+    }
+
+    @RequestMapping("/findAll")
+    public Result findAll(){
+        return childcareService.findAll();
+    }
+
+}

+ 47 - 0
huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/controller/MLaborRomStateController.java

@@ -0,0 +1,47 @@
+package com.huimv.production.controller;
+
+import com.huimv.production.domain.MLaborRomStateEntity;
+import com.huimv.production.result.Result;
+import com.huimv.production.service.MLaborRomStateService;
+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("/laborRomState")
+public class MLaborRomStateController {
+
+    @Autowired
+    private MLaborRomStateService childcareService;
+
+    @RequestMapping("/add")
+    public Result add(MLaborRomStateEntity childcareEntity){
+        return childcareService.add(childcareEntity);
+    }
+
+    @RequestMapping("/remove")
+    public Result add(Integer[] ids){
+        return childcareService.remove(ids);
+    }
+
+    @RequestMapping("/update")
+    public Result update(MLaborRomStateEntity childcareEntity){
+        return childcareService.update(childcareEntity);
+    }
+
+    @RequestMapping("/findAll")
+    public Result findAll(){
+        return childcareService.findAll();
+    }
+
+}

+ 46 - 0
huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/controller/MLaborRoomController.java

@@ -0,0 +1,46 @@
+package com.huimv.production.controller;
+
+import com.huimv.production.domain.MLaborRoomEntity;
+import com.huimv.production.result.Result;
+import com.huimv.production.service.MLaborRoomService;
+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("/laborRoom")
+public class MLaborRoomController {
+
+    @Autowired
+    private MLaborRoomService childcareService;
+
+    @RequestMapping("/add")
+    public Result add(MLaborRoomEntity childcareEntity){
+        return childcareService.add(childcareEntity);
+    }
+
+    @RequestMapping("/remove")
+    public Result add(Integer[] ids){
+        return childcareService.remove(ids);
+    }
+
+    @RequestMapping("/update")
+    public Result update(MLaborRoomEntity childcareEntity){
+        return childcareService.update(childcareEntity);
+    }
+
+    @RequestMapping("/findAll")
+    public Result findAll(){
+        return childcareService.findAll();
+    }
+
+}

+ 47 - 0
huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/controller/MPigletHealthCountController.java

@@ -0,0 +1,47 @@
+package com.huimv.production.controller;
+
+import com.huimv.production.domain.MPigletHealthCountEntity;
+import com.huimv.production.result.Result;
+import com.huimv.production.service.MPigletHealthCountService;
+import com.huimv.production.service.MSowService;
+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("/pigletHealthCount")
+public class MPigletHealthCountController {
+
+    @Autowired
+    private MPigletHealthCountService childcareService;
+
+    @RequestMapping("/add")
+    public Result add(MPigletHealthCountEntity childcareEntity){
+        return childcareService.add(childcareEntity);
+    }
+
+    @RequestMapping("/remove")
+    public Result add(Integer[] ids){
+        return childcareService.remove(ids);
+    }
+
+    @RequestMapping("/update")
+    public Result update(MPigletHealthCountEntity childcareEntity){
+        return childcareService.update(childcareEntity);
+    }
+
+    @RequestMapping("/findAll")
+    public Result findAll(){
+        return childcareService.findAll();
+    }
+
+}

+ 47 - 0
huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/controller/MSowChildbirthRecordController.java

@@ -0,0 +1,47 @@
+package com.huimv.production.controller;
+
+import com.huimv.production.domain.MSowChildbirthRecordEntity;
+import com.huimv.production.result.Result;
+import com.huimv.production.service.MSowChildbirthRecordService;
+import com.huimv.production.service.MSowService;
+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("/sowChildbirthRecord")
+public class MSowChildbirthRecordController {
+
+    @Autowired
+    private MSowChildbirthRecordService childcareService;
+
+    @RequestMapping("/add")
+    public Result add(MSowChildbirthRecordEntity childcareEntity){
+        return childcareService.add(childcareEntity);
+    }
+
+    @RequestMapping("/remove")
+    public Result add(Integer[] ids){
+        return childcareService.remove(ids);
+    }
+
+    @RequestMapping("/update")
+    public Result update(MSowChildbirthRecordEntity childcareEntity){
+        return childcareService.update(childcareEntity);
+    }
+
+    @RequestMapping("/findAll")
+    public Result findAll(){
+        return childcareService.findAll();
+    }
+
+}

+ 47 - 0
huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/controller/MSowController.java

@@ -0,0 +1,47 @@
+package com.huimv.production.controller;
+
+import com.huimv.production.domain.MSowEntity;
+import com.huimv.production.result.Result;
+import com.huimv.production.service.MLaborRomStateService;
+import com.huimv.production.service.MSowService;
+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("/sow")
+public class MSowController {
+
+    @Autowired
+    private MSowService childcareService;
+
+    @RequestMapping("/add")
+    public Result add(MSowEntity childcareEntity){
+        return childcareService.add(childcareEntity);
+    }
+
+    @RequestMapping("/remove")
+    public Result add(Integer[] ids){
+        return childcareService.remove(ids);
+    }
+
+    @RequestMapping("/update")
+    public Result update(MSowEntity childcareEntity){
+        return childcareService.update(childcareEntity);
+    }
+
+    @RequestMapping("/findAll")
+    public Result findAll(){
+        return childcareService.findAll();
+    }
+
+}

+ 47 - 0
huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/controller/MSowCopulationController.java

@@ -0,0 +1,47 @@
+package com.huimv.production.controller;
+
+import com.huimv.production.domain.MSowCopulationEntity;
+import com.huimv.production.result.Result;
+import com.huimv.production.service.MSowCopulationService;
+import com.huimv.production.service.MSowService;
+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("/sowCopulation")
+public class MSowCopulationController {
+
+    @Autowired
+    private MSowCopulationService childcareService;
+
+    @RequestMapping("/add")
+    public Result add(MSowCopulationEntity childcareEntity){
+        return childcareService.add(childcareEntity);
+    }
+
+    @RequestMapping("/remove")
+    public Result add(Integer[] ids){
+        return childcareService.remove(ids);
+    }
+
+    @RequestMapping("/update")
+    public Result update(MSowCopulationEntity childcareEntity){
+        return childcareService.update(childcareEntity);
+    }
+
+    @RequestMapping("/findAll")
+    public Result findAll(){
+        return childcareService.findAll();
+    }
+
+}

+ 25 - 0
huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/domain/BLaborRoomStateEntity.java

@@ -0,0 +1,25 @@
+package com.huimv.production.domain;
+
+import lombok.Data;
+
+import javax.persistence.Column;
+import javax.persistence.Entity;
+import javax.persistence.Id;
+import javax.persistence.Table;
+import java.io.Serializable;
+
+@Entity
+@Table(name = "b_labor_room_state")
+@Data
+public class BLaborRoomStateEntity implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    @Id
+    @Column(name = "id", nullable = false)
+    private Integer id;
+
+    @Column(name = "state_name")
+    private String stateName;
+
+}

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

@@ -0,0 +1,35 @@
+package com.huimv.production.domain;
+
+import com.fasterxml.jackson.annotation.JsonFormat;
+import lombok.Data;
+
+import javax.persistence.*;
+import java.io.Serializable;
+import java.util.Date;
+
+@Entity
+@Data
+@Table(name = "m_childbirth_progress")
+public class MChildbirthProgressEntity implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    @Id
+    @GeneratedValue(strategy = GenerationType.IDENTITY)
+    @Column(name = "id", nullable = false)
+    private Integer id;
+
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
+    @Column(name = "birth_date")
+    private Date birthDate;
+
+    @Column(name = "total")
+    private Integer total;
+
+    @Column(name = "birth_code")
+    private String birthCode;
+
+    @Column(name = "sow_id")
+    private Integer sowId;
+
+}

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

@@ -0,0 +1,35 @@
+package com.huimv.production.domain;
+
+import com.fasterxml.jackson.annotation.JsonFormat;
+import lombok.Data;
+
+import javax.persistence.*;
+import java.io.Serializable;
+import java.sql.Date;
+
+@Entity
+@Data
+@Table(name = "m_feed_detail")
+public class MFeedDetailEntity implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    @Id
+    @GeneratedValue(strategy = GenerationType.IDENTITY)
+    @Column(name = "id", nullable = false)
+    private Integer id;
+
+    @Column(name = "feed_date")
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
+    private Date feedDate;
+
+    @Column(name = "quantity")
+    private Float quantity;
+
+    @Column(name = "birth_code")
+    private String birthCode;
+
+    @Column(name = "sow_id")
+    private Integer sowId;
+
+}

+ 29 - 0
huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/domain/MLaborRomStateEntity.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_labor_rom_state")
+public class MLaborRomStateEntity implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    @Id
+    @GeneratedValue(strategy = GenerationType.IDENTITY)
+    @Column(name = "id", nullable = false)
+    private Integer id;
+
+    @Column(name = "room_state_id")
+    private Integer roomStateId;
+
+    @Column(name = "room_state_name")
+    private String roomStateName;
+
+    @Column(name = "radio")
+    private Float radio;
+
+}

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

@@ -0,0 +1,32 @@
+package com.huimv.production.domain;
+
+import lombok.Data;
+
+import javax.persistence.*;
+import java.io.Serializable;
+
+@Entity
+@Table(name = "m_labor_room")
+@Data
+public class MLaborRoomEntity implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    @Id
+    @GeneratedValue(strategy = GenerationType.IDENTITY)
+    @Column(name = "id", nullable = false)
+    private Integer id;
+
+    @Column(name = "room_code")
+    private String roomCode;
+
+    @Column(name = "room_state_id")
+    private Integer roomStateId;
+
+    @Column(name = "room_state_name")
+    private String roomStateName;
+
+    @Column(name = "sow_code")
+    private String sowCode;
+
+}

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

@@ -0,0 +1,38 @@
+package com.huimv.production.domain;
+
+import lombok.Data;
+
+import javax.persistence.*;
+import java.io.Serializable;
+
+@Entity
+@Data
+@Table(name = "m_piglet_health_count")
+public class MPigletHealthCountEntity implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    @Id
+    @GeneratedValue(strategy = GenerationType.IDENTITY)
+    @Column(name = "id", nullable = false)
+    private Integer id;
+
+    @Column(name = "health_state_id")
+    private Integer healthStateId;
+
+    @Column(name = "health_state_name")
+    private String healthStateName;
+
+    @Column(name = "quantity")
+    private Integer quantity;
+
+    @Column(name = "birth_code")
+    private String birthCode;
+
+    @Column(name = "sow_id")
+    private Integer sowId;
+
+    @Column(name = "room_code")
+    private String roomCode;
+
+}

+ 140 - 0
huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/domain/MSowChildbirthRecordEntity.java

@@ -0,0 +1,140 @@
+package com.huimv.production.domain;
+
+import com.fasterxml.jackson.annotation.JsonFormat;
+import lombok.Data;
+
+import javax.persistence.*;
+import java.io.Serializable;
+import java.util.Date;
+
+@Entity
+@Table(name = "m_sow_childbirth_record")
+@Data
+public class MSowChildbirthRecordEntity implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    @Id
+    @GeneratedValue(strategy = GenerationType.IDENTITY)
+    @Column(name = "id", nullable = false)
+    private Integer id;
+
+    /**
+     * 产房编号
+     */
+    @Column(name = "room_code")
+    private String roomCode;
+
+    /**
+     * 产房状态(待产:1、生产中:2、哺乳:3、断奶:4、空闲:0)
+     */
+    @Column(name = "labor_room_state")
+    private Integer laborRoomState;
+
+    /**
+     * 生产批次
+     */
+    @Column(name = "birth_code")
+    private String birthCode;
+
+    /**
+     * 母猪编号
+     */
+    @Column(name = "sow_code")
+    private String sowCode;
+
+    /**
+     * 生产时年龄
+     */
+    @Column(name = "age")
+    private String age;
+
+    /**
+     * 生产状态(1:正常 2:异常)
+     */
+    @Column(name = "birth_state")
+    private Integer birthState;
+
+    /**
+     * 怀孕时间
+     */
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
+    @Column(name = "conception_date")
+    private Date conceptionDate;
+
+    /**
+     * 上床时间
+     */
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
+    @Column(name = "into_room_date")
+    private Date intoRoomDate;
+
+    /**
+     * 生产时间(生产第一头时间)
+     */
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
+    @Column(name = "first_date")
+    private Date firstDate;
+
+    /**
+     * 产完时间
+     */
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
+    @Column(name = "finish_date")
+    private Date finishDate;
+
+    /**
+     * 产仔数
+     */
+    @Column(name = "quantity")
+    private Integer quantity;
+
+    /**
+     * 胎均重量
+     */
+    @Column(name = "average_weight")
+    private Float averageWeight;
+
+    /**
+     * 断奶成功率
+     */
+    @Column(name = "radio")
+    private Float radio;
+
+    /**
+     * 第几胎
+     */
+    @Column(name = "birth_no")
+    private Integer birthNo;
+
+    /**
+     * 仔猪日龄
+     */
+    @Column(name = "days")
+    private Integer days;
+
+    /**
+     * 保温箱温度
+     */
+    @Column(name = "incubator_heat")
+    private Float incubatorHeat;
+
+    /**
+     * 总产仔数
+     */
+    @Column(name = "total")
+    private Integer total;
+
+    /**
+     * 公仔猪数量
+     */
+    @Column(name = "boar_piglet_total")
+    private Integer boarPigletTotal;
+
+    /**
+     * 母仔猪数量
+     */
+    @Column(name = "sow_piglet_total")
+    private Integer sowPigletTotal;
+
+}

+ 45 - 0
huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/domain/MSowCopulationEntity.java

@@ -0,0 +1,45 @@
+package com.huimv.production.domain;
+
+import com.fasterxml.jackson.annotation.JsonFormat;
+import lombok.Data;
+
+import javax.persistence.*;
+import java.io.Serializable;
+import java.sql.Date;
+
+@Entity
+@Table(name = "m_sow_copulation")
+@Data
+public class MSowCopulationEntity implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    @Id
+    @GeneratedValue(strategy = GenerationType.IDENTITY)
+    @Column(name = "id", nullable = false)
+    private Integer id;
+
+    @Column(name = "sow_code")
+    private String sowCode;
+
+    @Column(name = "copulation_date")
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
+    private Date copulationDate;
+
+    @Column(name = "boar_code")
+    private String boarCode;
+
+    @Column(name = "score")
+    private Integer score;
+
+    @Column(name = "due_date")
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
+    private Date dueDate;
+
+    @Column(name = "interval")
+    private Integer interval;
+
+    @Column(name = "birth_no")
+    private Integer birthNo;
+
+}

+ 62 - 0
huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/domain/MSowEntity.java

@@ -0,0 +1,62 @@
+package com.huimv.production.domain;
+
+import com.fasterxml.jackson.annotation.JsonFormat;
+import lombok.Data;
+
+import javax.persistence.*;
+import java.io.Serializable;
+import java.util.Date;
+
+@Entity
+@Data
+@Table(name = "m_sow")
+public class MSowEntity implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    @Id
+    @GeneratedValue(strategy = GenerationType.IDENTITY)
+    @Column(name = "id", nullable = false)
+    private Integer id;
+
+    @Column(name = "sow_code")
+    private String sowCode;
+
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
+    @Column(name = "birth_date", nullable = false)
+    private Date birthDate;
+
+    @Column(name = "childbirth_times")
+    private Integer childbirthTimes;
+
+    @Column(name = "piglet_average")
+    private Integer pigletAverage;
+
+    @Column(name = "breed")
+    private String breed;
+
+    @Column(name = "pigpen")
+    private String pigpen;
+
+    @Column(name = "state_id")
+    private Integer stateId;
+
+    @Column(name = "state_name")
+    private String stateName;
+
+    @Column(name = "days_age")
+    private Integer daysAge;
+
+    @Column(name = "piglet_ablactation")
+    private Integer pigletAblactation;
+
+    @Column(name = "father_id")
+    private Integer fatherId;
+
+    @Column(name = "mother_id")
+    private Integer motherId;
+
+    @Column(name = "piglet_total")
+    private Integer pigletTotal;
+
+}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

@@ -0,0 +1,25 @@
+package com.huimv.production.service;
+
+import com.huimv.production.domain.BLaborRoomStateEntity;
+import com.huimv.production.domain.MSowEntity;
+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 BLaborRoomStateService {
+
+
+    Result add(BLaborRoomStateEntity fattenEntity);
+
+    Result remove(Integer[] ids);
+
+    Result update(BLaborRoomStateEntity fattenEntity);
+
+    Result findAll();
+
+}

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

@@ -0,0 +1,25 @@
+package com.huimv.production.service;
+
+import com.huimv.production.domain.MChildbirthProgressEntity;
+import com.huimv.production.domain.MSowEntity;
+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 MChildbirthProgressService {
+
+
+    Result add(MChildbirthProgressEntity fattenEntity);
+
+    Result remove(Integer[] ids);
+
+    Result update(MChildbirthProgressEntity fattenEntity);
+
+    Result findAll();
+
+}

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

@@ -0,0 +1,25 @@
+package com.huimv.production.service;
+
+import com.huimv.production.domain.MFeedDetailEntity;
+import com.huimv.production.domain.MSowEntity;
+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 MFeedDetailService {
+
+
+    Result add(MFeedDetailEntity fattenEntity);
+
+    Result remove(Integer[] ids);
+
+    Result update(MFeedDetailEntity fattenEntity);
+
+    Result findAll();
+
+}

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

@@ -0,0 +1,25 @@
+package com.huimv.production.service;
+
+import com.huimv.production.domain.MLaborRomStateEntity;
+import com.huimv.production.domain.MSowAnimalHeatEntity;
+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 MLaborRomStateService {
+
+
+    Result add(MLaborRomStateEntity fattenEntity);
+
+    Result remove(Integer[] ids);
+
+    Result update(MLaborRomStateEntity fattenEntity);
+
+    Result findAll();
+
+}

+ 24 - 0
huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/service/MLaborRoomService.java

@@ -0,0 +1,24 @@
+package com.huimv.production.service;
+
+import com.huimv.production.domain.MLaborRoomEntity;
+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 MLaborRoomService {
+
+
+    Result add(MLaborRoomEntity fattenEntity);
+
+    Result remove(Integer[] ids);
+
+    Result update(MLaborRoomEntity fattenEntity);
+
+    Result findAll();
+
+}

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

@@ -0,0 +1,25 @@
+package com.huimv.production.service;
+
+import com.huimv.production.domain.MPigletHealthCountEntity;
+import com.huimv.production.domain.MSowEntity;
+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 MPigletHealthCountService {
+
+
+    Result add(MPigletHealthCountEntity fattenEntity);
+
+    Result remove(Integer[] ids);
+
+    Result update(MPigletHealthCountEntity fattenEntity);
+
+    Result findAll();
+
+}

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

@@ -0,0 +1,25 @@
+package com.huimv.production.service;
+
+import com.huimv.production.domain.MSowChildbirthRecordEntity;
+import com.huimv.production.domain.MSowEntity;
+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 MSowChildbirthRecordService {
+
+
+    Result add(MSowChildbirthRecordEntity fattenEntity);
+
+    Result remove(Integer[] ids);
+
+    Result update(MSowChildbirthRecordEntity fattenEntity);
+
+    Result findAll();
+
+}

+ 24 - 0
huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/service/MSowCopulationService.java

@@ -0,0 +1,24 @@
+package com.huimv.production.service;
+
+import com.huimv.production.domain.MSowCopulationEntity;
+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 MSowCopulationService {
+
+
+    Result add(MSowCopulationEntity fattenEntity);
+
+    Result remove(Integer[] ids);
+
+    Result update(MSowCopulationEntity fattenEntity);
+
+    Result findAll();
+
+}

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

@@ -0,0 +1,25 @@
+package com.huimv.production.service;
+
+import com.huimv.production.domain.MLaborRomStateEntity;
+import com.huimv.production.domain.MSowEntity;
+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 MSowService {
+
+
+    Result add(MSowEntity fattenEntity);
+
+    Result remove(Integer[] ids);
+
+    Result update(MSowEntity fattenEntity);
+
+    Result findAll();
+
+}

+ 76 - 0
huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/service/impl/BLaborRoomStateServiceImpl.java

@@ -0,0 +1,76 @@
+package com.huimv.production.service.impl;
+
+import com.huimv.production.domain.BLaborRoomStateEntity;
+import com.huimv.production.repo.MLaborRoomStateEntityRepo;
+import com.huimv.production.result.Result;
+import com.huimv.production.service.BLaborRoomStateService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import java.util.List;
+
+/**
+ * @Project : huimv.shiwan
+ * @Package : com.huimv.production.service.impl
+ * @Description : TODO
+ * @Author : yuxuexuan
+ * @Create : 2021/3/9 0009 17:43
+ **/
+@Service
+public class BLaborRoomStateServiceImpl implements BLaborRoomStateService {
+    @Autowired
+    private MLaborRoomStateEntityRepo childcareEntityRepo;
+
+    @Override
+    public Result add(BLaborRoomStateEntity 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(BLaborRoomStateEntity 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<BLaborRoomStateEntity> all = childcareEntityRepo.findAll();
+            return new Result(10000,"查询成功",all);
+        }catch (Exception e){
+            return new Result(10001,"查询失败",null);
+        }
+    }
+    
+}

+ 78 - 0
huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/service/impl/MChildbirthProgressServiceImpl.java

@@ -0,0 +1,78 @@
+package com.huimv.production.service.impl;
+
+import com.huimv.production.domain.MChildbirthProgressEntity;
+import com.huimv.production.repo.MChildbirthProgressEntityRepo;
+import com.huimv.production.repo.MChildbirthProgressEntityRepo;
+import com.huimv.production.result.Result;
+import com.huimv.production.service.MChildbirthProgressService;
+import com.huimv.production.service.MSowService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import java.util.List;
+
+/**
+ * @Project : huimv.shiwan
+ * @Package : com.huimv.production.service.impl
+ * @Description : TODO
+ * @Author : yuxuexuan
+ * @Create : 2021/3/9 0009 17:43
+ **/
+@Service
+public class MChildbirthProgressServiceImpl implements MChildbirthProgressService {
+    @Autowired
+    private MChildbirthProgressEntityRepo childcareEntityRepo;
+
+    @Override
+    public Result add(MChildbirthProgressEntity 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(MChildbirthProgressEntity 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<MChildbirthProgressEntity> all = childcareEntityRepo.findAll();
+            return new Result(10000,"查询成功",all);
+        }catch (Exception e){
+            return new Result(10001,"查询失败",null);
+        }
+    }
+    
+}

+ 78 - 0
huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/service/impl/MFeedDetailServiceImpl.java

@@ -0,0 +1,78 @@
+package com.huimv.production.service.impl;
+
+import com.huimv.production.domain.MFeedDetailEntity;
+import com.huimv.production.repo.MFeedDetailEntityRepo;
+import com.huimv.production.repo.MFeedDetailEntityRepo;
+import com.huimv.production.result.Result;
+import com.huimv.production.service.MFeedDetailService;
+import com.huimv.production.service.MSowService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import java.util.List;
+
+/**
+ * @Project : huimv.shiwan
+ * @Package : com.huimv.production.service.impl
+ * @Description : TODO
+ * @Author : yuxuexuan
+ * @Create : 2021/3/9 0009 17:43
+ **/
+@Service
+public class MFeedDetailServiceImpl implements MFeedDetailService {
+    @Autowired
+    private MFeedDetailEntityRepo childcareEntityRepo;
+
+    @Override
+    public Result add(MFeedDetailEntity 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(MFeedDetailEntity 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<MFeedDetailEntity> all = childcareEntityRepo.findAll();
+            return new Result(10000,"查询成功",all);
+        }catch (Exception e){
+            return new Result(10001,"查询失败",null);
+        }
+    }
+    
+}

+ 80 - 0
huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/service/impl/MLaborRomServiceImpl.java

@@ -0,0 +1,80 @@
+package com.huimv.production.service.impl;
+
+import com.huimv.production.domain.MLaborRomStateEntity;
+import com.huimv.production.repo.MLaborRomStateEntityRepo;
+import com.huimv.production.repo.MLaborRomStateEntityRepo;
+import com.huimv.production.result.Result;
+import com.huimv.production.service.MLaborRomStateService;
+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 MLaborRomServiceImpl implements MLaborRomStateService {
+    @Autowired
+    private MLaborRomStateEntityRepo childcareEntityRepo;
+
+    @Override
+    public Result add(MLaborRomStateEntity 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(MLaborRomStateEntity 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<MLaborRomStateEntity> all = childcareEntityRepo.findAll();
+            return new Result(10000,"查询成功",all);
+        }catch (Exception e){
+            return new Result(10001,"查询失败",null);
+        }
+    }
+    
+}

+ 76 - 0
huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/service/impl/MLaborRoomServiceImpl.java

@@ -0,0 +1,76 @@
+package com.huimv.production.service.impl;
+
+import com.huimv.production.domain.MLaborRoomEntity;
+import com.huimv.production.repo.BLaborRoomEntityRepo;
+import com.huimv.production.result.Result;
+import com.huimv.production.service.MLaborRoomService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import java.util.List;
+
+/**
+ * @Project : huimv.shiwan
+ * @Package : com.huimv.production.service.impl
+ * @Description : TODO
+ * @Author : yuxuexuan
+ * @Create : 2021/3/9 0009 17:43
+ **/
+@Service
+public class MLaborRoomServiceImpl implements MLaborRoomService {
+    @Autowired
+    private BLaborRoomEntityRepo childcareEntityRepo;
+
+    @Override
+    public Result add(MLaborRoomEntity 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(MLaborRoomEntity 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<MLaborRoomEntity> all = childcareEntityRepo.findAll();
+            return new Result(10000,"查询成功",all);
+        }catch (Exception e){
+            return new Result(10001,"查询失败",null);
+        }
+    }
+    
+}

+ 78 - 0
huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/service/impl/MPigletHealthCountServiceImpl.java

@@ -0,0 +1,78 @@
+package com.huimv.production.service.impl;
+
+import com.huimv.production.domain.MPigletHealthCountEntity;
+import com.huimv.production.repo.MPigletHealthCountEntityRepo;
+import com.huimv.production.repo.MPigletHealthCountEntityRepo;
+import com.huimv.production.result.Result;
+import com.huimv.production.service.MPigletHealthCountService;
+import com.huimv.production.service.MSowService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import java.util.List;
+
+/**
+ * @Project : huimv.shiwan
+ * @Package : com.huimv.production.service.impl
+ * @Description : TODO
+ * @Author : yuxuexuan
+ * @Create : 2021/3/9 0009 17:43
+ **/
+@Service
+public class MPigletHealthCountServiceImpl implements MPigletHealthCountService {
+    @Autowired
+    private MPigletHealthCountEntityRepo childcareEntityRepo;
+
+    @Override
+    public Result add(MPigletHealthCountEntity 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(MPigletHealthCountEntity 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<MPigletHealthCountEntity> all = childcareEntityRepo.findAll();
+            return new Result(10000,"查询成功",all);
+        }catch (Exception e){
+            return new Result(10001,"查询失败",null);
+        }
+    }
+    
+}

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

@@ -90,7 +90,7 @@ public class MSowAnimalHeatServiceImpl implements MSowAnimalHeatService {
         List<MSowAnimalHeatEntity> allByLocationId = fattenEntityRepo.findAllByLocationId(locationId);
         for (MSowAnimalHeatEntity o : allByLocationId) {
             Map map = new HashMap();
-            map.put("heat",o.getHeat());
+            map.put("heat",(o.getHeat()+"").substring(0,4));
             map.put("time",o.getMeasureTime());
             list.add(map);
         }
@@ -99,7 +99,7 @@ public class MSowAnimalHeatServiceImpl implements MSowAnimalHeatService {
         List<List> allBy = fattenEntityRepo.findAllBy();
         for (List list1 : allBy) {
             Map map = new HashMap();
-            map.put("heat",list1.get(0));
+            map.put("heat",(list1.get(0)+"").substring(0,4));
             map.put("time",list1.get(1));
             list2.add(map);
         }

+ 77 - 0
huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/service/impl/MSowChildbitrhRecordServiceImpl.java

@@ -0,0 +1,77 @@
+package com.huimv.production.service.impl;
+
+import com.huimv.production.domain.MSowChildbirthRecordEntity;
+import com.huimv.production.repo.MSowChildbirthRecordEntityRepo;
+import com.huimv.production.result.Result;
+import com.huimv.production.service.MSowChildbirthRecordService;
+import com.huimv.production.service.MSowService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import java.util.List;
+
+/**
+ * @Project : huimv.shiwan
+ * @Package : com.huimv.production.service.impl
+ * @Description : TODO
+ * @Author : yuxuexuan
+ * @Create : 2021/3/9 0009 17:43
+ **/
+@Service
+public class MSowChildbitrhRecordServiceImpl implements MSowChildbirthRecordService {
+    @Autowired
+    private MSowChildbirthRecordEntityRepo childcareEntityRepo;
+
+    @Override
+    public Result add(MSowChildbirthRecordEntity 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(MSowChildbirthRecordEntity 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<MSowChildbirthRecordEntity> all = childcareEntityRepo.findAll();
+            return new Result(10000,"查询成功",all);
+        }catch (Exception e){
+            return new Result(10001,"查询失败",null);
+        }
+    }
+    
+}

+ 76 - 0
huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/service/impl/MSowCopulationServiceImpl.java

@@ -0,0 +1,76 @@
+package com.huimv.production.service.impl;
+
+import com.huimv.production.domain.MSowCopulationEntity;
+import com.huimv.production.repo.MSowCopulationEntityRepo;
+import com.huimv.production.result.Result;
+import com.huimv.production.service.MSowCopulationService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import java.util.List;
+
+/**
+ * @Project : huimv.shiwan
+ * @Package : com.huimv.production.service.impl
+ * @Description : TODO
+ * @Author : yuxuexuan
+ * @Create : 2021/3/9 0009 17:43
+ **/
+@Service
+public class MSowCopulationServiceImpl implements MSowCopulationService {
+    @Autowired
+    private MSowCopulationEntityRepo childcareEntityRepo;
+
+    @Override
+    public Result add(MSowCopulationEntity 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(MSowCopulationEntity 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<MSowCopulationEntity> all = childcareEntityRepo.findAll();
+            return new Result(10000,"查询成功",all);
+        }catch (Exception e){
+            return new Result(10001,"查询失败",null);
+        }
+    }
+    
+}

+ 78 - 0
huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/service/impl/MSowServiceImpl.java

@@ -0,0 +1,78 @@
+package com.huimv.production.service.impl;
+
+import com.huimv.production.domain.MSowEntity;
+import com.huimv.production.repo.MSowEntityRepo;
+import com.huimv.production.repo.MSowEntityRepo;
+import com.huimv.production.result.Result;
+import com.huimv.production.service.MLaborRomStateService;
+import com.huimv.production.service.MSowService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import java.util.List;
+
+/**
+ * @Project : huimv.shiwan
+ * @Package : com.huimv.production.service.impl
+ * @Description : TODO
+ * @Author : yuxuexuan
+ * @Create : 2021/3/9 0009 17:43
+ **/
+@Service
+public class MSowServiceImpl implements MSowService {
+    @Autowired
+    private MSowEntityRepo childcareEntityRepo;
+
+    @Override
+    public Result add(MSowEntity 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(MSowEntity 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<MSowEntity> all = childcareEntityRepo.findAll();
+            return new Result(10000,"查询成功",all);
+        }catch (Exception e){
+            return new Result(10001,"查询失败",null);
+        }
+    }
+    
+}