Browse Source

添加疾病管理部分接口

523096025 4 years ago
parent
commit
9bd2f57f86
45 changed files with 1676 additions and 0 deletions
  1. 84 0
      huimv-smart-management/src/main/java/com/huimv/management/controller/HealthDiseaseCauseController.java
  2. 84 0
      huimv-smart-management/src/main/java/com/huimv/management/controller/HealthDiseaseController.java
  3. 97 0
      huimv-smart-management/src/main/java/com/huimv/management/controller/HealthImmuneRecordController.java
  4. 85 0
      huimv-smart-management/src/main/java/com/huimv/management/controller/HealthIsolationRecordController.java
  5. 84 0
      huimv-smart-management/src/main/java/com/huimv/management/controller/HealthMedicalRecordController.java
  6. 84 0
      huimv-smart-management/src/main/java/com/huimv/management/controller/HealthSymptomController.java
  7. 84 0
      huimv-smart-management/src/main/java/com/huimv/management/controller/HealthTreatmentPlanController.java
  8. 7 0
      huimv-smart-management/src/main/java/com/huimv/management/controller/YearPigBaseController.java
  9. 17 0
      huimv-smart-management/src/main/java/com/huimv/management/dao/HealthDiseaseCauseDao.java
  10. 17 0
      huimv-smart-management/src/main/java/com/huimv/management/dao/HealthDiseaseDao.java
  11. 17 0
      huimv-smart-management/src/main/java/com/huimv/management/dao/HealthImmuneRecordDao.java
  12. 17 0
      huimv-smart-management/src/main/java/com/huimv/management/dao/HealthIsolationRecordDao.java
  13. 17 0
      huimv-smart-management/src/main/java/com/huimv/management/dao/HealthMedicalRecordDao.java
  14. 17 0
      huimv-smart-management/src/main/java/com/huimv/management/dao/HealthSymptomDao.java
  15. 17 0
      huimv-smart-management/src/main/java/com/huimv/management/dao/HealthTreatmentPlanDao.java
  16. 43 0
      huimv-smart-management/src/main/java/com/huimv/management/entity/HealthDiseaseCauseEntity.java
  17. 55 0
      huimv-smart-management/src/main/java/com/huimv/management/entity/HealthDiseaseEntity.java
  18. 57 0
      huimv-smart-management/src/main/java/com/huimv/management/entity/HealthImmuneRecordEntity.java
  19. 74 0
      huimv-smart-management/src/main/java/com/huimv/management/entity/HealthIsolationRecordEntity.java
  20. 97 0
      huimv-smart-management/src/main/java/com/huimv/management/entity/HealthMedicalRecordEntity.java
  21. 54 0
      huimv-smart-management/src/main/java/com/huimv/management/entity/HealthSymptomEntity.java
  22. 54 0
      huimv-smart-management/src/main/java/com/huimv/management/entity/HealthTreatmentPlanEntity.java
  23. 20 0
      huimv-smart-management/src/main/java/com/huimv/management/service/HealthDiseaseCauseService.java
  24. 20 0
      huimv-smart-management/src/main/java/com/huimv/management/service/HealthDiseaseService.java
  25. 23 0
      huimv-smart-management/src/main/java/com/huimv/management/service/HealthImmuneRecordService.java
  26. 22 0
      huimv-smart-management/src/main/java/com/huimv/management/service/HealthIsolationRecordService.java
  27. 20 0
      huimv-smart-management/src/main/java/com/huimv/management/service/HealthMedicalRecordService.java
  28. 20 0
      huimv-smart-management/src/main/java/com/huimv/management/service/HealthSymptomService.java
  29. 20 0
      huimv-smart-management/src/main/java/com/huimv/management/service/HealthTreatmentPlanService.java
  30. 2 0
      huimv-smart-management/src/main/java/com/huimv/management/service/YearPigBaseService.java
  31. 29 0
      huimv-smart-management/src/main/java/com/huimv/management/service/impl/HealthDiseaseCauseServiceImpl.java
  32. 29 0
      huimv-smart-management/src/main/java/com/huimv/management/service/impl/HealthDiseaseServiceImpl.java
  33. 44 0
      huimv-smart-management/src/main/java/com/huimv/management/service/impl/HealthImmuneRecordServiceImpl.java
  34. 29 0
      huimv-smart-management/src/main/java/com/huimv/management/service/impl/HealthIsolationRecordServiceImpl.java
  35. 29 0
      huimv-smart-management/src/main/java/com/huimv/management/service/impl/HealthMedicalRecordServiceImpl.java
  36. 29 0
      huimv-smart-management/src/main/java/com/huimv/management/service/impl/HealthSymptomServiceImpl.java
  37. 29 0
      huimv-smart-management/src/main/java/com/huimv/management/service/impl/HealthTreatmentPlanServiceImpl.java
  38. 14 0
      huimv-smart-management/src/main/java/com/huimv/management/service/impl/YearPigBaseServiceImpl.java
  39. 15 0
      huimv-smart-management/src/main/resources/mapper/management/HealthDiseaseCauseDao.xml
  40. 18 0
      huimv-smart-management/src/main/resources/mapper/management/HealthDiseaseDao.xml
  41. 19 0
      huimv-smart-management/src/main/resources/mapper/management/HealthImmuneRecordDao.xml
  42. 22 0
      huimv-smart-management/src/main/resources/mapper/management/HealthIsolationRecordDao.xml
  43. 27 0
      huimv-smart-management/src/main/resources/mapper/management/HealthMedicalRecordDao.xml
  44. 17 0
      huimv-smart-management/src/main/resources/mapper/management/HealthSymptomDao.xml
  45. 17 0
      huimv-smart-management/src/main/resources/mapper/management/HealthTreatmentPlanDao.xml

+ 84 - 0
huimv-smart-management/src/main/java/com/huimv/management/controller/HealthDiseaseCauseController.java

@@ -0,0 +1,84 @@
+ package com.huimv.management.controller;
+
+import java.util.Arrays;
+import java.util.Map;
+
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.RestController;
+
+import com.huimv.management.entity.HealthDiseaseCauseEntity;
+import com.huimv.management.service.HealthDiseaseCauseService;
+import com.huimv.common.utils.PageUtils;
+import com.huimv.common.utils.R;
+
+
+
+/**
+ * 
+ *
+ * @author yinhao
+ * @email yinhao@163.com
+ * @date 2021-06-10 09:44:06
+ */
+@RestController
+@RequestMapping("management/healthdiseasecause")
+public class HealthDiseaseCauseController {
+    @Autowired
+    private HealthDiseaseCauseService healthDiseaseCauseService;
+
+    /**
+     * 列表
+     */
+    @RequestMapping("/list")
+    public R list(@RequestParam Map<String, Object> params){
+        PageUtils page = healthDiseaseCauseService.queryPage(params);
+
+        return R.ok().put("page", page);
+    }
+
+
+    /**
+     * 信息
+     */
+    @RequestMapping("/info/{id}")
+    public R info(@PathVariable("id") Integer id){
+		HealthDiseaseCauseEntity healthDiseaseCause = healthDiseaseCauseService.getById(id);
+
+        return R.ok().put("healthDiseaseCause", healthDiseaseCause);
+    }
+
+    /**
+     * 保存
+     */
+    @RequestMapping("/save")
+    public R save(@RequestBody HealthDiseaseCauseEntity healthDiseaseCause){
+		healthDiseaseCauseService.save(healthDiseaseCause);
+
+        return R.ok();
+    }
+
+    /**
+     * 修改
+     */
+    @RequestMapping("/update")
+    public R update(@RequestBody HealthDiseaseCauseEntity healthDiseaseCause){
+		healthDiseaseCauseService.updateById(healthDiseaseCause);
+
+        return R.ok();
+    }
+
+    /**
+     * 删除
+     */
+    @RequestMapping("/delete")
+    public R delete(@RequestBody Integer[] ids){
+		healthDiseaseCauseService.removeByIds(Arrays.asList(ids));
+
+        return R.ok();
+    }
+
+}

+ 84 - 0
huimv-smart-management/src/main/java/com/huimv/management/controller/HealthDiseaseController.java

@@ -0,0 +1,84 @@
+ package com.huimv.management.controller;
+
+import java.util.Arrays;
+import java.util.Map;
+
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.RestController;
+
+import com.huimv.management.entity.HealthDiseaseEntity;
+import com.huimv.management.service.HealthDiseaseService;
+import com.huimv.common.utils.PageUtils;
+import com.huimv.common.utils.R;
+
+
+
+/**
+ * 
+ *
+ * @author yinhao
+ * @email yinhao@163.com
+ * @date 2021-06-10 09:44:06
+ */
+@RestController
+@RequestMapping("management/healthdisease")
+public class HealthDiseaseController {
+    @Autowired
+    private HealthDiseaseService healthDiseaseService;
+
+    /**
+     * 列表
+     */
+    @RequestMapping("/list")
+    public R list(@RequestParam Map<String, Object> params){
+        PageUtils page = healthDiseaseService.queryPage(params);
+
+        return R.ok().put("page", page);
+    }
+
+
+    /**
+     * 信息
+     */
+    @RequestMapping("/info/{id}")
+    public R info(@PathVariable("id") Integer id){
+		HealthDiseaseEntity healthDisease = healthDiseaseService.getById(id);
+
+        return R.ok().put("healthDisease", healthDisease);
+    }
+
+    /**
+     * 保存
+     */
+    @RequestMapping("/save")
+    public R save(@RequestBody HealthDiseaseEntity healthDisease){
+		healthDiseaseService.save(healthDisease);
+
+        return R.ok();
+    }
+
+    /**
+     * 修改
+     */
+    @RequestMapping("/update")
+    public R update(@RequestBody HealthDiseaseEntity healthDisease){
+		healthDiseaseService.updateById(healthDisease);
+
+        return R.ok();
+    }
+
+    /**
+     * 删除
+     */
+    @RequestMapping("/delete")
+    public R delete(@RequestBody Integer[] ids){
+		healthDiseaseService.removeByIds(Arrays.asList(ids));
+
+        return R.ok();
+    }
+
+}

+ 97 - 0
huimv-smart-management/src/main/java/com/huimv/management/controller/HealthImmuneRecordController.java

@@ -0,0 +1,97 @@
+ package com.huimv.management.controller;
+
+import java.util.Arrays;
+import java.util.List;
+import java.util.Map;
+
+import com.alibaba.fastjson.JSON;
+import io.swagger.models.auth.In;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.RestController;
+
+import com.huimv.management.entity.HealthImmuneRecordEntity;
+import com.huimv.management.service.HealthImmuneRecordService;
+import com.huimv.common.utils.PageUtils;
+import com.huimv.common.utils.R;
+
+
+
+/**
+ * 
+ *
+ * @author yinhao
+ * @email yinhao@163.com
+ * @date 2021-06-10 09:44:06
+ */
+@RestController
+@RequestMapping("management/healthimmunerecord")
+public class HealthImmuneRecordController {
+    @Autowired
+    private HealthImmuneRecordService healthImmuneRecordService;
+
+    /**
+     * 列表
+     */
+    @RequestMapping("/list")
+    public R list(@RequestParam Map<String, Object> params){
+        PageUtils page = healthImmuneRecordService.queryPage(params);
+
+        return R.ok().put("page", page);
+    }
+
+
+    /**
+     * 信息
+     */
+    @RequestMapping("/info/{id}")
+    public R info(@PathVariable("id") Integer id){
+		HealthImmuneRecordEntity healthImmuneRecord = healthImmuneRecordService.getById(id);
+
+        return R.ok().put("healthImmuneRecord", healthImmuneRecord);
+    }
+
+    /**
+     * 保存
+     */
+    @RequestMapping("/save")
+    public R save(@RequestBody HealthImmuneRecordEntity healthImmuneRecord){
+		healthImmuneRecordService.save(healthImmuneRecord);
+
+        return R.ok();
+    }
+
+    /**
+     * 修改
+     */
+    @RequestMapping("/update")
+    public R update(@RequestBody HealthImmuneRecordEntity healthImmuneRecord){
+		healthImmuneRecordService.updateById(healthImmuneRecord);
+
+        return R.ok();
+    }
+
+    /**
+     * 删除
+     */
+    @RequestMapping("/delete")
+    public R delete(@RequestBody Integer[] ids){
+		healthImmuneRecordService.removeByIds(Arrays.asList(ids));
+
+        return R.ok();
+    }
+
+    /**
+     *  根据疫苗名称,小猪编号id(可批量)向免疫记录表中插入数据
+     */
+    @RequestMapping("/saveAll")
+    public R saveAll(Integer[] eartags, String vaccine, Integer farmId, String manName, Integer manId){
+
+        healthImmuneRecordService.saveAll(eartags,vaccine,farmId,manName,manId);
+
+        return R.ok();
+    }
+}

+ 85 - 0
huimv-smart-management/src/main/java/com/huimv/management/controller/HealthIsolationRecordController.java

@@ -0,0 +1,85 @@
+ package com.huimv.management.controller;
+
+import java.util.Arrays;
+import java.util.Map;
+
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.RestController;
+
+import com.huimv.management.entity.HealthIsolationRecordEntity;
+import com.huimv.management.service.HealthIsolationRecordService;
+import com.huimv.common.utils.PageUtils;
+import com.huimv.common.utils.R;
+
+
+
+/**
+ * 
+ *
+ * @author yinhao
+ * @email yinhao@163.com
+ * @date 2021-06-10 09:44:06
+ */
+@RestController
+@RequestMapping("management/healthisolationrecord")
+public class HealthIsolationRecordController {
+    @Autowired
+    private HealthIsolationRecordService healthIsolationRecordService;
+
+    /**
+     * 列表
+     */
+    @RequestMapping("/list")
+    public R list(@RequestParam Map<String, Object> params){
+        PageUtils page = healthIsolationRecordService.queryPage(params);
+
+        return R.ok().put("page", page);
+    }
+
+
+    /**
+     * 信息
+     */
+    @RequestMapping("/info/{id}")
+    public R info(@PathVariable("id") Integer id){
+		HealthIsolationRecordEntity healthIsolationRecord = healthIsolationRecordService.getById(id);
+
+        return R.ok().put("healthIsolationRecord", healthIsolationRecord);
+    }
+
+    /**
+     * 保存
+     */
+    @RequestMapping("/save")
+    public R save(@RequestBody HealthIsolationRecordEntity healthIsolationRecord){
+		healthIsolationRecordService.save(healthIsolationRecord);
+
+        return R.ok();
+    }
+
+    /**
+     * 修改
+     */
+    @RequestMapping("/update")
+    public R update(@RequestBody HealthIsolationRecordEntity healthIsolationRecord){
+		healthIsolationRecordService.updateById(healthIsolationRecord);
+
+        return R.ok();
+    }
+
+    /**
+     * 删除
+     */
+    @RequestMapping("/delete")
+    public R delete(@RequestBody Integer[] ids){
+		healthIsolationRecordService.removeByIds(Arrays.asList(ids));
+
+        return R.ok();
+    }
+
+
+}

+ 84 - 0
huimv-smart-management/src/main/java/com/huimv/management/controller/HealthMedicalRecordController.java

@@ -0,0 +1,84 @@
+ package com.huimv.management.controller;
+
+import java.util.Arrays;
+import java.util.Map;
+
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.RestController;
+
+import com.huimv.management.entity.HealthMedicalRecordEntity;
+import com.huimv.management.service.HealthMedicalRecordService;
+import com.huimv.common.utils.PageUtils;
+import com.huimv.common.utils.R;
+
+
+
+/**
+ * 
+ *
+ * @author yinhao
+ * @email yinhao@163.com
+ * @date 2021-06-10 09:44:06
+ */
+@RestController
+@RequestMapping("management/healthmedicalrecord")
+public class HealthMedicalRecordController {
+    @Autowired
+    private HealthMedicalRecordService healthMedicalRecordService;
+
+    /**
+     * 列表
+     */
+    @RequestMapping("/list")
+    public R list(@RequestParam Map<String, Object> params){
+        PageUtils page = healthMedicalRecordService.queryPage(params);
+
+        return R.ok().put("page", page);
+    }
+
+
+    /**
+     * 信息
+     */
+    @RequestMapping("/info/{id}")
+    public R info(@PathVariable("id") Integer id){
+		HealthMedicalRecordEntity healthMedicalRecord = healthMedicalRecordService.getById(id);
+
+        return R.ok().put("healthMedicalRecord", healthMedicalRecord);
+    }
+
+    /**
+     * 保存
+     */
+    @RequestMapping("/save")
+    public R save(@RequestBody HealthMedicalRecordEntity healthMedicalRecord){
+		healthMedicalRecordService.save(healthMedicalRecord);
+
+        return R.ok();
+    }
+
+    /**
+     * 修改
+     */
+    @RequestMapping("/update")
+    public R update(@RequestBody HealthMedicalRecordEntity healthMedicalRecord){
+		healthMedicalRecordService.updateById(healthMedicalRecord);
+
+        return R.ok();
+    }
+
+    /**
+     * 删除
+     */
+    @RequestMapping("/delete")
+    public R delete(@RequestBody Integer[] ids){
+		healthMedicalRecordService.removeByIds(Arrays.asList(ids));
+
+        return R.ok();
+    }
+
+}

+ 84 - 0
huimv-smart-management/src/main/java/com/huimv/management/controller/HealthSymptomController.java

@@ -0,0 +1,84 @@
+ package com.huimv.management.controller;
+
+import java.util.Arrays;
+import java.util.Map;
+
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.RestController;
+
+import com.huimv.management.entity.HealthSymptomEntity;
+import com.huimv.management.service.HealthSymptomService;
+import com.huimv.common.utils.PageUtils;
+import com.huimv.common.utils.R;
+
+
+
+/**
+ * 
+ *
+ * @author yinhao
+ * @email yinhao@163.com
+ * @date 2021-06-10 10:07:03
+ */
+@RestController
+@RequestMapping("management/healthsymptom")
+public class HealthSymptomController {
+    @Autowired
+    private HealthSymptomService healthSymptomService;
+
+    /**
+     * 列表
+     */
+    @RequestMapping("/list")
+    public R list(@RequestParam Map<String, Object> params){
+        PageUtils page = healthSymptomService.queryPage(params);
+
+        return R.ok().put("page", page);
+    }
+
+
+    /**
+     * 信息
+     */
+    @RequestMapping("/info/{id}")
+    public R info(@PathVariable("id") Integer id){
+		HealthSymptomEntity healthSymptom = healthSymptomService.getById(id);
+
+        return R.ok().put("healthSymptom", healthSymptom);
+    }
+
+    /**
+     * 保存
+     */
+    @RequestMapping("/save")
+    public R save(@RequestBody HealthSymptomEntity healthSymptom){
+		healthSymptomService.save(healthSymptom);
+
+        return R.ok();
+    }
+
+    /**
+     * 修改
+     */
+    @RequestMapping("/update")
+    public R update(@RequestBody HealthSymptomEntity healthSymptom){
+		healthSymptomService.updateById(healthSymptom);
+
+        return R.ok();
+    }
+
+    /**
+     * 删除
+     */
+    @RequestMapping("/delete")
+    public R delete(@RequestBody Integer[] ids){
+		healthSymptomService.removeByIds(Arrays.asList(ids));
+
+        return R.ok();
+    }
+
+}

+ 84 - 0
huimv-smart-management/src/main/java/com/huimv/management/controller/HealthTreatmentPlanController.java

@@ -0,0 +1,84 @@
+ package com.huimv.management.controller;
+
+import java.util.Arrays;
+import java.util.Map;
+
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.RestController;
+
+import com.huimv.management.entity.HealthTreatmentPlanEntity;
+import com.huimv.management.service.HealthTreatmentPlanService;
+import com.huimv.common.utils.PageUtils;
+import com.huimv.common.utils.R;
+
+
+
+/**
+ * 
+ *
+ * @author yinhao
+ * @email yinhao@163.com
+ * @date 2021-06-10 09:44:06
+ */
+@RestController
+@RequestMapping("management/healthtreatmentplan")
+public class HealthTreatmentPlanController {
+    @Autowired
+    private HealthTreatmentPlanService healthTreatmentPlanService;
+
+    /**
+     * 列表
+     */
+    @RequestMapping("/list")
+    public R list(@RequestParam Map<String, Object> params){
+        PageUtils page = healthTreatmentPlanService.queryPage(params);
+
+        return R.ok().put("page", page);
+    }
+
+
+    /**
+     * 信息
+     */
+    @RequestMapping("/info/{id}")
+    public R info(@PathVariable("id") Integer id){
+		HealthTreatmentPlanEntity healthTreatmentPlan = healthTreatmentPlanService.getById(id);
+
+        return R.ok().put("healthTreatmentPlan", healthTreatmentPlan);
+    }
+
+    /**
+     * 保存
+     */
+    @RequestMapping("/save")
+    public R save(@RequestBody HealthTreatmentPlanEntity healthTreatmentPlan){
+		healthTreatmentPlanService.save(healthTreatmentPlan);
+
+        return R.ok();
+    }
+
+    /**
+     * 修改
+     */
+    @RequestMapping("/update")
+    public R update(@RequestBody HealthTreatmentPlanEntity healthTreatmentPlan){
+		healthTreatmentPlanService.updateById(healthTreatmentPlan);
+
+        return R.ok();
+    }
+
+    /**
+     * 删除
+     */
+    @RequestMapping("/delete")
+    public R delete(@RequestBody Integer[] ids){
+		healthTreatmentPlanService.removeByIds(Arrays.asList(ids));
+
+        return R.ok();
+    }
+
+}

+ 7 - 0
huimv-smart-management/src/main/java/com/huimv/management/controller/YearPigBaseController.java

@@ -83,4 +83,11 @@ public class YearPigBaseController {
         return R.ok();
         return R.ok();
     }
     }
 
 
+    @RequestMapping("/batchLairage")
+    public R batchLairage(String[] eartags,Integer periodId ){
+        yearPigBaseService.batchLairage(eartags,periodId);
+
+        return R.ok();
+    }
+
 }
 }

+ 17 - 0
huimv-smart-management/src/main/java/com/huimv/management/dao/HealthDiseaseCauseDao.java

@@ -0,0 +1,17 @@
+package com.huimv.management.dao;
+
+import com.huimv.management.entity.HealthDiseaseCauseEntity;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import org.apache.ibatis.annotations.Mapper;
+
+/**
+ * 
+ * 
+ * @author yinhao
+ * @email yinhao@163.com
+ * @date 2021-06-10 09:44:06
+ */
+@Mapper
+public interface HealthDiseaseCauseDao extends BaseMapper<HealthDiseaseCauseEntity> {
+	
+}

+ 17 - 0
huimv-smart-management/src/main/java/com/huimv/management/dao/HealthDiseaseDao.java

@@ -0,0 +1,17 @@
+package com.huimv.management.dao;
+
+import com.huimv.management.entity.HealthDiseaseEntity;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import org.apache.ibatis.annotations.Mapper;
+
+/**
+ * 
+ * 
+ * @author yinhao
+ * @email yinhao@163.com
+ * @date 2021-06-10 09:44:06
+ */
+@Mapper
+public interface HealthDiseaseDao extends BaseMapper<HealthDiseaseEntity> {
+	
+}

+ 17 - 0
huimv-smart-management/src/main/java/com/huimv/management/dao/HealthImmuneRecordDao.java

@@ -0,0 +1,17 @@
+package com.huimv.management.dao;
+
+import com.huimv.management.entity.HealthImmuneRecordEntity;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import org.apache.ibatis.annotations.Mapper;
+
+/**
+ * 
+ * 
+ * @author yinhao
+ * @email yinhao@163.com
+ * @date 2021-06-10 09:44:06
+ */
+@Mapper
+public interface HealthImmuneRecordDao extends BaseMapper<HealthImmuneRecordEntity> {
+	
+}

+ 17 - 0
huimv-smart-management/src/main/java/com/huimv/management/dao/HealthIsolationRecordDao.java

@@ -0,0 +1,17 @@
+package com.huimv.management.dao;
+
+import com.huimv.management.entity.HealthIsolationRecordEntity;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import org.apache.ibatis.annotations.Mapper;
+
+/**
+ * 
+ * 
+ * @author yinhao
+ * @email yinhao@163.com
+ * @date 2021-06-10 09:44:06
+ */
+@Mapper
+public interface HealthIsolationRecordDao extends BaseMapper<HealthIsolationRecordEntity> {
+	
+}

+ 17 - 0
huimv-smart-management/src/main/java/com/huimv/management/dao/HealthMedicalRecordDao.java

@@ -0,0 +1,17 @@
+package com.huimv.management.dao;
+
+import com.huimv.management.entity.HealthMedicalRecordEntity;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import org.apache.ibatis.annotations.Mapper;
+
+/**
+ * 
+ * 
+ * @author yinhao
+ * @email yinhao@163.com
+ * @date 2021-06-10 09:44:06
+ */
+@Mapper
+public interface HealthMedicalRecordDao extends BaseMapper<HealthMedicalRecordEntity> {
+	
+}

+ 17 - 0
huimv-smart-management/src/main/java/com/huimv/management/dao/HealthSymptomDao.java

@@ -0,0 +1,17 @@
+package com.huimv.management.dao;
+
+import com.huimv.management.entity.HealthSymptomEntity;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import org.apache.ibatis.annotations.Mapper;
+
+/**
+ * 
+ * 
+ * @author yinhao
+ * @email yinhao@163.com
+ * @date 2021-06-10 10:07:03
+ */
+@Mapper
+public interface HealthSymptomDao extends BaseMapper<HealthSymptomEntity> {
+	
+}

+ 17 - 0
huimv-smart-management/src/main/java/com/huimv/management/dao/HealthTreatmentPlanDao.java

@@ -0,0 +1,17 @@
+package com.huimv.management.dao;
+
+import com.huimv.management.entity.HealthTreatmentPlanEntity;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import org.apache.ibatis.annotations.Mapper;
+
+/**
+ * 
+ * 
+ * @author yinhao
+ * @email yinhao@163.com
+ * @date 2021-06-10 09:44:06
+ */
+@Mapper
+public interface HealthTreatmentPlanDao extends BaseMapper<HealthTreatmentPlanEntity> {
+	
+}

+ 43 - 0
huimv-smart-management/src/main/java/com/huimv/management/entity/HealthDiseaseCauseEntity.java

@@ -0,0 +1,43 @@
+package com.huimv.management.entity;
+
+import com.baomidou.mybatisplus.annotation.FieldFill;
+import com.baomidou.mybatisplus.annotation.TableField;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+
+import java.io.Serializable;
+import java.util.Date;
+import lombok.Data;
+
+/**
+ * 病因
+ * 
+ * @author yinhao
+ * @email yinhao@163.com
+ * @date 2021-06-10 09:44:06
+ */
+@Data
+@TableName("health_disease_cause")
+public class HealthDiseaseCauseEntity implements Serializable {
+	private static final long serialVersionUID = 1L;
+
+	/**
+	 * 
+	 */
+	@TableId
+	private Integer id;
+	/**
+	 * 病因名称
+	 */
+	private String causeName;
+	/**
+	 * 具体描述
+	 */
+	private String desc;
+	/**
+	 * 创建时间
+	 */
+	@TableField(fill = FieldFill.INSERT)
+	private Date createTime;
+
+}

+ 55 - 0
huimv-smart-management/src/main/java/com/huimv/management/entity/HealthDiseaseEntity.java

@@ -0,0 +1,55 @@
+package com.huimv.management.entity;
+
+import com.baomidou.mybatisplus.annotation.FieldFill;
+import com.baomidou.mybatisplus.annotation.TableField;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+
+import java.io.Serializable;
+import java.util.Date;
+import lombok.Data;
+
+/**
+ * 疾病库
+ * 
+ * @author yinhao
+ * @email yinhao@163.com
+ * @date 2021-06-10 09:44:06
+ */
+@Data
+@TableName("health_disease")
+public class HealthDiseaseEntity implements Serializable {
+	private static final long serialVersionUID = 1L;
+
+	/**
+	 * 
+	 */
+	@TableId
+	private Integer id;
+	/**
+	 * 疾病编号
+	 */
+	private String idseaseCode;
+	/**
+	 * 所属病种
+	 */
+	private String idseaseType;
+	/**
+	 * 疾病名称
+	 */
+	private String idseaseName;
+	/**
+	 * 猪病概述
+	 */
+	private String desc;
+	/**
+	 * 临床症状
+	 */
+	private String clinlcalSymptom;
+	/**
+	 * 创建时间
+	 */
+	@TableField(fill = FieldFill.INSERT)
+	private Date createTime;
+
+}

+ 57 - 0
huimv-smart-management/src/main/java/com/huimv/management/entity/HealthImmuneRecordEntity.java

@@ -0,0 +1,57 @@
+package com.huimv.management.entity;
+
+import com.baomidou.mybatisplus.annotation.*;
+
+import java.io.Serializable;
+import java.util.Date;
+import lombok.Data;
+
+/**
+ * 免疫记录
+ * 
+ * @author yinhao
+ * @email yinhao@163.com
+ * @date 2021-06-10 09:44:06
+ */
+@Data
+@TableName("health_immune_record")
+public class HealthImmuneRecordEntity implements Serializable {
+	private static final long serialVersionUID = 1L;
+
+	/**
+	 * 
+	 */
+	@TableId
+	private Integer id;
+	/**
+	 * 疫苗名称
+	 */
+	private String vaccineName;
+	/**
+	 * 小猪编号
+	 */
+	private Integer pigId;
+	/**
+	 * 牧场id
+	 */
+	private Integer farmId;
+	/**
+	 * 操作人姓名
+	 */
+	private String manName;
+	/**
+	 * 操作人编号
+	 */
+	private Integer manId;
+	/**
+	 * 数据有效性
+	 */
+	@TableLogic(delval = "1",value = "1")
+	private Integer effective;
+	/**
+	 * 创建时间
+	 */
+	@TableField(fill = FieldFill.INSERT)
+	private Date createTime;
+
+}

+ 74 - 0
huimv-smart-management/src/main/java/com/huimv/management/entity/HealthIsolationRecordEntity.java

@@ -0,0 +1,74 @@
+package com.huimv.management.entity;
+
+import com.baomidou.mybatisplus.annotation.*;
+
+import java.io.Serializable;
+import java.util.Date;
+
+import com.fasterxml.jackson.annotation.JsonFormat;
+import lombok.Data;
+
+/**
+ * 隔离记录
+ * 
+ * @author yinhao
+ * @email yinhao@163.com
+ * @date 2021-06-10 09:44:06
+ */
+@Data
+@TableName("health_isolation_record")
+public class HealthIsolationRecordEntity implements Serializable {
+	private static final long serialVersionUID = 1L;
+
+	/**
+	 * 
+	 */
+	@TableId
+	private Integer id;
+	/**
+	 * 疾病名称
+	 */
+	private String diseaseName;
+	/**
+	 * 小猪编号
+	 */
+	private Integer pigCode;
+	/**
+	 * 病历号
+	 */
+	private Integer medicalRecordId;
+	/**
+	 * 入栏时间
+	 */
+	@JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
+	private Date entryTime;
+	/**
+	 * 离栏时间
+	 */
+	@JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
+	private Date offTime;
+	/**
+	 * 牧场id
+	 */
+	private Integer farmId;
+	/**
+	 * 数据有效性
+	 */
+	@TableLogic(delval = "1",value = "1")
+	private Integer effective;
+	/**
+	 * 创建时间
+	 */
+	@TableField(fill = FieldFill.INSERT)
+	@JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
+	private Date createTime;
+	/**
+	 * 操作人姓名
+	 */
+	private String manName;
+	/**
+	 * 操作人编号
+	 */
+	private Integer manId;
+
+}

+ 97 - 0
huimv-smart-management/src/main/java/com/huimv/management/entity/HealthMedicalRecordEntity.java

@@ -0,0 +1,97 @@
+package com.huimv.management.entity;
+
+import com.baomidou.mybatisplus.annotation.*;
+
+import java.io.Serializable;
+import java.util.Date;
+
+import com.fasterxml.jackson.annotation.JsonFormat;
+import lombok.Data;
+
+/**
+ * 病历档案
+ * 
+ * @author yinhao
+ * @email yinhao@163.com
+ * @date 2021-06-10 09:44:06
+ */
+@Data
+@TableName("health_medical_record")
+public class HealthMedicalRecordEntity implements Serializable {
+	private static final long serialVersionUID = 1L;
+
+	/**
+	 * 
+	 */
+	@TableId
+	private Integer id;
+	/**
+	 * 内部编号
+	 */
+	private Integer pigId;
+	/**
+	 * 疾病名称
+	 */
+	private String diseaseName;
+	/**
+	 * 症状
+	 */
+	private String symptomName;
+	/**
+	 * 病因
+	 */
+	private String causeName;
+	/**
+	 * 发病时间
+	 */
+	private Date diseaseTime;
+	/**
+	 * 兽医姓名
+	 */
+	private String doctor;
+	/**
+	 * 兽医id
+	 */
+	private Integer doctorId;
+	/**
+	 * 诊断时间
+	 */
+	@JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
+	private Date diagnosisTime;
+	/**
+	 * 治疗方案
+	 */
+	private String treatmentPlan;
+	/**
+	 * 治疗结果
+  1:康复 2:死亡,无害化处理
+	 */
+	private Integer result;
+	/**
+	 * 所属牧场
+	 */
+	private Integer farmId;
+	/**
+	 * 数据有效性
+   1:有效(默认) 0:无效
+	 */
+	@TableLogic(delval = "1",value = "1")
+	private Integer effective;
+	/**
+	 * 隔离状态
+   1:未隔离 2:隔离
+	 */
+	private Integer isolationStatus;
+	/**
+	 * 出栏时间
+	 */
+	@JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
+	private Date offTime;
+	/**
+	 * 创建时间
+	 */
+	@JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
+	@TableField(fill = FieldFill.INSERT)
+	private Date createTime;
+
+}

+ 54 - 0
huimv-smart-management/src/main/java/com/huimv/management/entity/HealthSymptomEntity.java

@@ -0,0 +1,54 @@
+package com.huimv.management.entity;
+
+import com.baomidou.mybatisplus.annotation.FieldFill;
+import com.baomidou.mybatisplus.annotation.TableField;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+
+import java.io.Serializable;
+import java.util.Date;
+
+import com.fasterxml.jackson.annotation.JsonFormat;
+import lombok.Data;
+
+/**
+ * 症状
+ * 
+ * @author yinhao
+ * @email yinhao@163.com
+ * @date 2021-06-10 10:07:03
+ */
+@Data
+@TableName("health_symptom")
+public class HealthSymptomEntity implements Serializable {
+	private static final long serialVersionUID = 1L;
+
+	/**
+	 * 
+	 */
+	@TableId
+	private Integer id;
+	/**
+	 * 症状编号
+	 */
+	private String sympotomCode;
+	/**
+	 * 症状分类
+	 */
+	private String sympotomType;
+	/**
+	 * 症状名称
+	 */
+	private String sympotomName;
+	/**
+	 * 具体描述
+	 */
+	private String desc;
+	/**
+	 * 创建时间
+	 */
+	@JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
+	@TableField(fill = FieldFill.INSERT)
+	private Date createTime;
+
+}

+ 54 - 0
huimv-smart-management/src/main/java/com/huimv/management/entity/HealthTreatmentPlanEntity.java

@@ -0,0 +1,54 @@
+package com.huimv.management.entity;
+
+import com.baomidou.mybatisplus.annotation.FieldFill;
+import com.baomidou.mybatisplus.annotation.TableField;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+
+import java.io.Serializable;
+import java.util.Date;
+
+import com.fasterxml.jackson.annotation.JsonFormat;
+import lombok.Data;
+
+/**
+ * 治疗方案
+ * 
+ * @author yinhao
+ * @email yinhao@163.com
+ * @date 2021-06-10 09:44:06
+ */
+@Data
+@TableName("health_treatment_plan")
+public class HealthTreatmentPlanEntity implements Serializable {
+	private static final long serialVersionUID = 1L;
+
+	/**
+	 * 
+	 */
+	@TableId
+	private Integer id;
+	/**
+	 * 对应疾病
+	 */
+	private String diseaseCode;
+	/**
+	 * 药物名称
+	 */
+	private String medicantName;
+	/**
+	 * 药品用法
+	 */
+	private String medicantUsage;
+	/**
+	 * 描述
+	 */
+	private String desc;
+	/**
+	 * 创建时间
+	 */
+	@JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
+	@TableField(fill = FieldFill.INSERT)
+	private Date createTime;
+
+}

+ 20 - 0
huimv-smart-management/src/main/java/com/huimv/management/service/HealthDiseaseCauseService.java

@@ -0,0 +1,20 @@
+package com.huimv.management.service;
+
+import com.baomidou.mybatisplus.extension.service.IService;
+import com.huimv.common.utils.PageUtils;
+import com.huimv.management.entity.HealthDiseaseCauseEntity;
+
+import java.util.Map;
+
+/**
+ * 
+ *
+ * @author yinhao
+ * @email yinhao@163.com
+ * @date 2021-06-10 09:44:06
+ */
+public interface HealthDiseaseCauseService extends IService<HealthDiseaseCauseEntity> {
+
+    PageUtils queryPage(Map<String, Object> params);
+}
+

+ 20 - 0
huimv-smart-management/src/main/java/com/huimv/management/service/HealthDiseaseService.java

@@ -0,0 +1,20 @@
+package com.huimv.management.service;
+
+import com.baomidou.mybatisplus.extension.service.IService;
+import com.huimv.common.utils.PageUtils;
+import com.huimv.management.entity.HealthDiseaseEntity;
+
+import java.util.Map;
+
+/**
+ * 
+ *
+ * @author yinhao
+ * @email yinhao@163.com
+ * @date 2021-06-10 09:44:06
+ */
+public interface HealthDiseaseService extends IService<HealthDiseaseEntity> {
+
+    PageUtils queryPage(Map<String, Object> params);
+}
+

+ 23 - 0
huimv-smart-management/src/main/java/com/huimv/management/service/HealthImmuneRecordService.java

@@ -0,0 +1,23 @@
+package com.huimv.management.service;
+
+import com.baomidou.mybatisplus.extension.service.IService;
+import com.huimv.common.utils.PageUtils;
+import com.huimv.management.entity.HealthImmuneRecordEntity;
+
+import java.util.List;
+import java.util.Map;
+
+/**
+ * 
+ *
+ * @author yinhao
+ * @email yinhao@163.com
+ * @date 2021-06-10 09:44:06
+ */
+public interface HealthImmuneRecordService extends IService<HealthImmuneRecordEntity> {
+
+    PageUtils queryPage(Map<String, Object> params);
+
+    void saveAll(Integer[] eartags, String vaccine, Integer farmId, String manName, Integer manId);
+}
+

+ 22 - 0
huimv-smart-management/src/main/java/com/huimv/management/service/HealthIsolationRecordService.java

@@ -0,0 +1,22 @@
+package com.huimv.management.service;
+
+import com.baomidou.mybatisplus.extension.service.IService;
+import com.huimv.common.utils.PageUtils;
+import com.huimv.management.entity.HealthIsolationRecordEntity;
+
+import java.util.Map;
+
+/**
+ * 
+ *
+ * @author yinhao
+ * @email yinhao@163.com
+ * @date 2021-06-10 09:44:06
+ */
+public interface HealthIsolationRecordService extends IService<HealthIsolationRecordEntity> {
+
+    PageUtils queryPage(Map<String, Object> params);
+
+
+}
+

+ 20 - 0
huimv-smart-management/src/main/java/com/huimv/management/service/HealthMedicalRecordService.java

@@ -0,0 +1,20 @@
+package com.huimv.management.service;
+
+import com.baomidou.mybatisplus.extension.service.IService;
+import com.huimv.common.utils.PageUtils;
+import com.huimv.management.entity.HealthMedicalRecordEntity;
+
+import java.util.Map;
+
+/**
+ * 
+ *
+ * @author yinhao
+ * @email yinhao@163.com
+ * @date 2021-06-10 09:44:06
+ */
+public interface HealthMedicalRecordService extends IService<HealthMedicalRecordEntity> {
+
+    PageUtils queryPage(Map<String, Object> params);
+}
+

+ 20 - 0
huimv-smart-management/src/main/java/com/huimv/management/service/HealthSymptomService.java

@@ -0,0 +1,20 @@
+package com.huimv.management.service;
+
+import com.baomidou.mybatisplus.extension.service.IService;
+import com.huimv.common.utils.PageUtils;
+import com.huimv.management.entity.HealthSymptomEntity;
+
+import java.util.Map;
+
+/**
+ * 
+ *
+ * @author yinhao
+ * @email yinhao@163.com
+ * @date 2021-06-10 10:07:03
+ */
+public interface HealthSymptomService extends IService<HealthSymptomEntity> {
+
+    PageUtils queryPage(Map<String, Object> params);
+}
+

+ 20 - 0
huimv-smart-management/src/main/java/com/huimv/management/service/HealthTreatmentPlanService.java

@@ -0,0 +1,20 @@
+package com.huimv.management.service;
+
+import com.baomidou.mybatisplus.extension.service.IService;
+import com.huimv.common.utils.PageUtils;
+import com.huimv.management.entity.HealthTreatmentPlanEntity;
+
+import java.util.Map;
+
+/**
+ * 
+ *
+ * @author yinhao
+ * @email yinhao@163.com
+ * @date 2021-06-10 09:44:06
+ */
+public interface HealthTreatmentPlanService extends IService<HealthTreatmentPlanEntity> {
+
+    PageUtils queryPage(Map<String, Object> params);
+}
+

+ 2 - 0
huimv-smart-management/src/main/java/com/huimv/management/service/YearPigBaseService.java

@@ -16,5 +16,7 @@ import java.util.Map;
 public interface YearPigBaseService extends IService<YearPigBaseEntity> {
 public interface YearPigBaseService extends IService<YearPigBaseEntity> {
 
 
     PageUtils queryPage(Map<String, Object> params);
     PageUtils queryPage(Map<String, Object> params);
+
+    void batchLairage(String[] eartags,Integer periodId);
 }
 }
 
 

+ 29 - 0
huimv-smart-management/src/main/java/com/huimv/management/service/impl/HealthDiseaseCauseServiceImpl.java

@@ -0,0 +1,29 @@
+package com.huimv.management.service.impl;
+
+import org.springframework.stereotype.Service;
+import java.util.Map;
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import com.huimv.common.utils.PageUtils;
+import com.huimv.common.utils.Query;
+
+import com.huimv.management.dao.HealthDiseaseCauseDao;
+import com.huimv.management.entity.HealthDiseaseCauseEntity;
+import com.huimv.management.service.HealthDiseaseCauseService;
+
+
+@Service("healthDiseaseCauseService")
+public class HealthDiseaseCauseServiceImpl extends ServiceImpl<HealthDiseaseCauseDao, HealthDiseaseCauseEntity> implements HealthDiseaseCauseService {
+
+    @Override
+    public PageUtils queryPage(Map<String, Object> params) {
+        IPage<HealthDiseaseCauseEntity> page = this.page(
+                new Query<HealthDiseaseCauseEntity>().getPage(params),
+                new QueryWrapper<HealthDiseaseCauseEntity>()
+        );
+
+        return new PageUtils(page);
+    }
+
+}

+ 29 - 0
huimv-smart-management/src/main/java/com/huimv/management/service/impl/HealthDiseaseServiceImpl.java

@@ -0,0 +1,29 @@
+package com.huimv.management.service.impl;
+
+import org.springframework.stereotype.Service;
+import java.util.Map;
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import com.huimv.common.utils.PageUtils;
+import com.huimv.common.utils.Query;
+
+import com.huimv.management.dao.HealthDiseaseDao;
+import com.huimv.management.entity.HealthDiseaseEntity;
+import com.huimv.management.service.HealthDiseaseService;
+
+
+@Service("healthDiseaseService")
+public class HealthDiseaseServiceImpl extends ServiceImpl<HealthDiseaseDao, HealthDiseaseEntity> implements HealthDiseaseService {
+
+    @Override
+    public PageUtils queryPage(Map<String, Object> params) {
+        IPage<HealthDiseaseEntity> page = this.page(
+                new Query<HealthDiseaseEntity>().getPage(params),
+                new QueryWrapper<HealthDiseaseEntity>()
+        );
+
+        return new PageUtils(page);
+    }
+
+}

+ 44 - 0
huimv-smart-management/src/main/java/com/huimv/management/service/impl/HealthImmuneRecordServiceImpl.java

@@ -0,0 +1,44 @@
+package com.huimv.management.service.impl;
+
+import org.springframework.stereotype.Service;
+
+import java.util.List;
+import java.util.Map;
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import com.huimv.common.utils.PageUtils;
+import com.huimv.common.utils.Query;
+
+import com.huimv.management.dao.HealthImmuneRecordDao;
+import com.huimv.management.entity.HealthImmuneRecordEntity;
+import com.huimv.management.service.HealthImmuneRecordService;
+
+
+@Service("healthImmuneRecordService")
+public class HealthImmuneRecordServiceImpl extends ServiceImpl<HealthImmuneRecordDao, HealthImmuneRecordEntity> implements HealthImmuneRecordService {
+
+    @Override
+    public PageUtils queryPage(Map<String, Object> params) {
+        IPage<HealthImmuneRecordEntity> page = this.page(
+                new Query<HealthImmuneRecordEntity>().getPage(params),
+                new QueryWrapper<HealthImmuneRecordEntity>()
+        );
+
+        return new PageUtils(page);
+    }
+
+    @Override
+    public void saveAll(Integer[] eartags, String vaccine, Integer farmId, String manName, Integer manId) {
+        HealthImmuneRecordEntity healthImmuneRecordEntity = new HealthImmuneRecordEntity();
+        healthImmuneRecordEntity.setFarmId(farmId);
+        healthImmuneRecordEntity.setManId(manId);
+        healthImmuneRecordEntity.setManName(manName);
+        healthImmuneRecordEntity.setVaccineName(vaccine);
+        for (Integer eartag : eartags) {
+            healthImmuneRecordEntity.setPigId(eartag);
+            save(healthImmuneRecordEntity);
+        }
+    }
+
+}

+ 29 - 0
huimv-smart-management/src/main/java/com/huimv/management/service/impl/HealthIsolationRecordServiceImpl.java

@@ -0,0 +1,29 @@
+package com.huimv.management.service.impl;
+
+import org.springframework.stereotype.Service;
+import java.util.Map;
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import com.huimv.common.utils.PageUtils;
+import com.huimv.common.utils.Query;
+
+import com.huimv.management.dao.HealthIsolationRecordDao;
+import com.huimv.management.entity.HealthIsolationRecordEntity;
+import com.huimv.management.service.HealthIsolationRecordService;
+
+
+@Service("healthIsolationRecordService")
+public class HealthIsolationRecordServiceImpl extends ServiceImpl<HealthIsolationRecordDao, HealthIsolationRecordEntity> implements HealthIsolationRecordService {
+
+    @Override
+    public PageUtils queryPage(Map<String, Object> params) {
+        IPage<HealthIsolationRecordEntity> page = this.page(
+                new Query<HealthIsolationRecordEntity>().getPage(params),
+                new QueryWrapper<HealthIsolationRecordEntity>()
+        );
+
+        return new PageUtils(page);
+    }
+
+}

+ 29 - 0
huimv-smart-management/src/main/java/com/huimv/management/service/impl/HealthMedicalRecordServiceImpl.java

@@ -0,0 +1,29 @@
+package com.huimv.management.service.impl;
+
+import org.springframework.stereotype.Service;
+import java.util.Map;
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import com.huimv.common.utils.PageUtils;
+import com.huimv.common.utils.Query;
+
+import com.huimv.management.dao.HealthMedicalRecordDao;
+import com.huimv.management.entity.HealthMedicalRecordEntity;
+import com.huimv.management.service.HealthMedicalRecordService;
+
+
+@Service("healthMedicalRecordService")
+public class HealthMedicalRecordServiceImpl extends ServiceImpl<HealthMedicalRecordDao, HealthMedicalRecordEntity> implements HealthMedicalRecordService {
+
+    @Override
+    public PageUtils queryPage(Map<String, Object> params) {
+        IPage<HealthMedicalRecordEntity> page = this.page(
+                new Query<HealthMedicalRecordEntity>().getPage(params),
+                new QueryWrapper<HealthMedicalRecordEntity>()
+        );
+
+        return new PageUtils(page);
+    }
+
+}

+ 29 - 0
huimv-smart-management/src/main/java/com/huimv/management/service/impl/HealthSymptomServiceImpl.java

@@ -0,0 +1,29 @@
+package com.huimv.management.service.impl;
+
+import org.springframework.stereotype.Service;
+import java.util.Map;
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import com.huimv.common.utils.PageUtils;
+import com.huimv.common.utils.Query;
+
+import com.huimv.management.dao.HealthSymptomDao;
+import com.huimv.management.entity.HealthSymptomEntity;
+import com.huimv.management.service.HealthSymptomService;
+
+
+@Service("healthSymptomService")
+public class HealthSymptomServiceImpl extends ServiceImpl<HealthSymptomDao, HealthSymptomEntity> implements HealthSymptomService {
+
+    @Override
+    public PageUtils queryPage(Map<String, Object> params) {
+        IPage<HealthSymptomEntity> page = this.page(
+                new Query<HealthSymptomEntity>().getPage(params),
+                new QueryWrapper<HealthSymptomEntity>()
+        );
+
+        return new PageUtils(page);
+    }
+
+}

+ 29 - 0
huimv-smart-management/src/main/java/com/huimv/management/service/impl/HealthTreatmentPlanServiceImpl.java

@@ -0,0 +1,29 @@
+package com.huimv.management.service.impl;
+
+import org.springframework.stereotype.Service;
+import java.util.Map;
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import com.huimv.common.utils.PageUtils;
+import com.huimv.common.utils.Query;
+
+import com.huimv.management.dao.HealthTreatmentPlanDao;
+import com.huimv.management.entity.HealthTreatmentPlanEntity;
+import com.huimv.management.service.HealthTreatmentPlanService;
+
+
+@Service("healthTreatmentPlanService")
+public class HealthTreatmentPlanServiceImpl extends ServiceImpl<HealthTreatmentPlanDao, HealthTreatmentPlanEntity> implements HealthTreatmentPlanService {
+
+    @Override
+    public PageUtils queryPage(Map<String, Object> params) {
+        IPage<HealthTreatmentPlanEntity> page = this.page(
+                new Query<HealthTreatmentPlanEntity>().getPage(params),
+                new QueryWrapper<HealthTreatmentPlanEntity>()
+        );
+
+        return new PageUtils(page);
+    }
+
+}

+ 14 - 0
huimv-smart-management/src/main/java/com/huimv/management/service/impl/YearPigBaseServiceImpl.java

@@ -1,8 +1,10 @@
 package com.huimv.management.service.impl;
 package com.huimv.management.service.impl;
 
 
 import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
 import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
+import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
 import com.baomidou.mybatisplus.core.toolkit.Wrappers;
 import com.baomidou.mybatisplus.core.toolkit.Wrappers;
 import com.huimv.management.entity.YearPigBaseEntity;
 import com.huimv.management.entity.YearPigBaseEntity;
+import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
 import org.springframework.stereotype.Service;
 import java.util.Map;
 import java.util.Map;
 import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
 import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
@@ -42,4 +44,16 @@ public class YearPigBaseServiceImpl extends ServiceImpl<YearPigBaseDao, YearPigB
         return new PageUtils(page);
         return new PageUtils(page);
     }
     }
 
 
+
+
+    @Override
+    public void batchLairage(String[] eartags,Integer periodId) {
+        for (String eartag : eartags) {
+            UpdateWrapper<YearPigBaseEntity> updateWrapper = new UpdateWrapper<YearPigBaseEntity>();
+            System.out.println(eartag);
+            updateWrapper.eq("eartag",eartag).set("period_id",periodId);
+            update(updateWrapper);
+        }
+    }
+
 }
 }

+ 15 - 0
huimv-smart-management/src/main/resources/mapper/management/HealthDiseaseCauseDao.xml

@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+
+<mapper namespace="com.huimv.management.dao.HealthDiseaseCauseDao">
+
+	<!-- 可根据自己的需求,是否要使用 -->
+    <resultMap type="com.huimv.management.entity.HealthDiseaseCauseEntity" id="healthDiseaseCauseMap">
+        <result property="id" column="id"/>
+        <result property="causeName" column="cause_name"/>
+        <result property="desc" column="desc"/>
+        <result property="createTime" column="create_time"/>
+    </resultMap>
+
+
+</mapper>

+ 18 - 0
huimv-smart-management/src/main/resources/mapper/management/HealthDiseaseDao.xml

@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+
+<mapper namespace="com.huimv.management.dao.HealthDiseaseDao">
+
+	<!-- 可根据自己的需求,是否要使用 -->
+    <resultMap type="com.huimv.management.entity.HealthDiseaseEntity" id="healthDiseaseMap">
+        <result property="id" column="id"/>
+        <result property="idseaseCode" column="idsease_code"/>
+        <result property="idseaseType" column="idsease_type"/>
+        <result property="idseaseName" column="idsease_name"/>
+        <result property="desc" column="desc"/>
+        <result property="clinlcalSymptom" column="clinlcal_symptom"/>
+        <result property="createTime" column="create_time"/>
+    </resultMap>
+
+
+</mapper>

+ 19 - 0
huimv-smart-management/src/main/resources/mapper/management/HealthImmuneRecordDao.xml

@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+
+<mapper namespace="com.huimv.management.dao.HealthImmuneRecordDao">
+
+	<!-- 可根据自己的需求,是否要使用 -->
+    <resultMap type="com.huimv.management.entity.HealthImmuneRecordEntity" id="healthImmuneRecordMap">
+        <result property="id" column="id"/>
+        <result property="vaccineName" column="vaccine_name"/>
+        <result property="pigId" column="pig_id"/>
+        <result property="farmId" column="farm_id"/>
+        <result property="manName" column="man_name"/>
+        <result property="manId" column="man_id"/>
+        <result property="effective" column="effective"/>
+        <result property="createTime" column="create_time"/>
+    </resultMap>
+
+
+</mapper>

+ 22 - 0
huimv-smart-management/src/main/resources/mapper/management/HealthIsolationRecordDao.xml

@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+
+<mapper namespace="com.huimv.management.dao.HealthIsolationRecordDao">
+
+	<!-- 可根据自己的需求,是否要使用 -->
+    <resultMap type="com.huimv.management.entity.HealthIsolationRecordEntity" id="healthIsolationRecordMap">
+        <result property="id" column="id"/>
+        <result property="diseaseName" column="disease_name"/>
+        <result property="pigCode" column="pig_code"/>
+        <result property="medicalRecordId" column="medical_record_id"/>
+        <result property="entryTime" column="entry_time"/>
+        <result property="offTime" column="off_time"/>
+        <result property="farmId" column="farm_id"/>
+        <result property="effective" column="effective"/>
+        <result property="createTime" column="create_time"/>
+        <result property="manName" column="man_name"/>
+        <result property="manId" column="man_id"/>
+    </resultMap>
+
+
+</mapper>

+ 27 - 0
huimv-smart-management/src/main/resources/mapper/management/HealthMedicalRecordDao.xml

@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+
+<mapper namespace="com.huimv.management.dao.HealthMedicalRecordDao">
+
+	<!-- 可根据自己的需求,是否要使用 -->
+    <resultMap type="com.huimv.management.entity.HealthMedicalRecordEntity" id="healthMedicalRecordMap">
+        <result property="id" column="id"/>
+        <result property="pigId" column="pig_id"/>
+        <result property="diseaseName" column="disease_name"/>
+        <result property="symptomName" column="symptom_name"/>
+        <result property="causeName" column="cause_name"/>
+        <result property="diseaseTime" column="disease_time"/>
+        <result property="doctor" column="doctor"/>
+        <result property="doctorId" column="doctor_id"/>
+        <result property="diagnosisTime" column="diagnosis_time"/>
+        <result property="treatmentPlan" column="treatment_plan"/>
+        <result property="result" column="result"/>
+        <result property="farmId" column="farm_id"/>
+        <result property="effective" column="effective"/>
+        <result property="isolationStatus" column="isolation_status"/>
+        <result property="offTime" column="off_time"/>
+        <result property="createTime" column="create_time"/>
+    </resultMap>
+
+
+</mapper>

+ 17 - 0
huimv-smart-management/src/main/resources/mapper/management/HealthSymptomDao.xml

@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+
+<mapper namespace="com.huimv.management.dao.HealthSymptomDao">
+
+	<!-- 可根据自己的需求,是否要使用 -->
+    <resultMap type="com.huimv.management.entity.HealthSymptomEntity" id="healthSymptomMap">
+        <result property="id" column="id"/>
+        <result property="sympotomCode" column="sympotom_code"/>
+        <result property="sympotomType" column="sympotom_type"/>
+        <result property="sympotomName" column="sympotom_name"/>
+        <result property="desc" column="desc"/>
+        <result property="createTime" column="create_time"/>
+    </resultMap>
+
+
+</mapper>

+ 17 - 0
huimv-smart-management/src/main/resources/mapper/management/HealthTreatmentPlanDao.xml

@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+
+<mapper namespace="com.huimv.management.dao.HealthTreatmentPlanDao">
+
+	<!-- 可根据自己的需求,是否要使用 -->
+    <resultMap type="com.huimv.management.entity.HealthTreatmentPlanEntity" id="healthTreatmentPlanMap">
+        <result property="id" column="id"/>
+        <result property="diseaseCode" column="disease_code"/>
+        <result property="medicantName" column="medicant_name"/>
+        <result property="medicantUsage" column="medicant_usage"/>
+        <result property="desc" column="desc"/>
+        <result property="createTime" column="create_time"/>
+    </resultMap>
+
+
+</mapper>