diff --git a/.gitignore b/.gitignore
index ed8368a..7feea44 100644
--- a/.gitignore
+++ b/.gitignore
@@ -45,3 +45,4 @@ nbdist/
!*/build/*.java
!*/build/*.html
!*/build/*.xml
+/zhyc-module/src/main/java/com/zhyc/module/group_management/service/impl/GroupServiceImpl.java
diff --git a/zhyc-module/pom.xml b/zhyc-module/pom.xml
index a3a00b5..78bc63d 100644
--- a/zhyc-module/pom.xml
+++ b/zhyc-module/pom.xml
@@ -23,6 +23,10 @@
1.18.38
provided
+
+ org.projectlombok
+ lombok
+
\ No newline at end of file
diff --git a/zhyc-module/src/main/java/com/zhyc/module/biosafety/controller/TreatmentController.java b/zhyc-module/src/main/java/com/zhyc/module/biosafety/controller/TreatmentController.java
index 0e7605e..85d5591 100644
--- a/zhyc-module/src/main/java/com/zhyc/module/biosafety/controller/TreatmentController.java
+++ b/zhyc-module/src/main/java/com/zhyc/module/biosafety/controller/TreatmentController.java
@@ -97,7 +97,7 @@ public class TreatmentController extends BaseController
*/
@PreAuthorize("@ss.hasPermi('treatment:treatment:remove')")
@Log(title = "治疗记录", businessType = BusinessType.DELETE)
- @DeleteMapping("/{ids}")
+ @DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(treatmentService.deleteTreatmentByIds(ids));
diff --git a/zhyc-module/src/main/java/com/zhyc/module/biosafety/domain/SwPrescription.java b/zhyc-module/src/main/java/com/zhyc/module/biosafety/domain/SwPrescription.java
index 9afe41d..b8466e1 100644
--- a/zhyc-module/src/main/java/com/zhyc/module/biosafety/domain/SwPrescription.java
+++ b/zhyc-module/src/main/java/com/zhyc/module/biosafety/domain/SwPrescription.java
@@ -28,7 +28,7 @@ public class SwPrescription extends BaseEntity
private String name;
/** 类型(免疫/保健/驱虫/消毒/疾病治疗) */
- @Excel(name = "类型", readConverterExp = "免=疫/保健/驱虫/消毒/疾病治疗")
+ @Excel(name = "类型", readConverterExp = "免疫/保健/驱虫/消毒/疾病治疗")
private Integer persType;
/** 备注 */
diff --git a/zhyc-module/src/main/java/com/zhyc/module/biosafety/domain/Treatment.java b/zhyc-module/src/main/java/com/zhyc/module/biosafety/domain/Treatment.java
index 4ace5d1..67777b8 100644
--- a/zhyc-module/src/main/java/com/zhyc/module/biosafety/domain/Treatment.java
+++ b/zhyc-module/src/main/java/com/zhyc/module/biosafety/domain/Treatment.java
@@ -1,7 +1,11 @@
package com.zhyc.module.biosafety.domain;
+import java.util.ArrayList;
import java.util.Date;
+import java.util.List;
+
import com.fasterxml.jackson.annotation.JsonFormat;
+import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.zhyc.common.annotation.Excel;
@@ -13,6 +17,7 @@ import com.zhyc.common.core.domain.BaseEntity;
* @author ruoyi
* @date 2025-07-15
*/
+@Data
public class Treatment extends BaseEntity
{
private static final long serialVersionUID = 1L;
@@ -80,204 +85,11 @@ public class Treatment extends BaseEntity
@Excel(name = "药品使用记录id")
private Long usageId;
+// 药品使用
+ private List usageDetails;
+
/** 备注 */
@Excel(name = "备注")
private String comment;
- public void setId(Long id)
- {
- this.id = id;
- }
-
- public Long getId()
- {
- return id;
- }
-
- public void setDiagId(Long diagId)
- {
- this.diagId = diagId;
- }
-
- public Long getDiagId()
- {
- return diagId;
- }
-
- public void setSheepId(Long sheepId)
- {
- this.sheepId = sheepId;
- }
-
- public Long getSheepId()
- {
- return sheepId;
- }
-
- public void setVariety(String variety)
- {
- this.variety = variety;
- }
-
- public String getVariety()
- {
- return variety;
- }
-
- public void setSheepType(String sheepType)
- {
- this.sheepType = sheepType;
- }
-
- public String getSheepType()
- {
- return sheepType;
- }
-
- public void setMonthAge(Long monthAge)
- {
- this.monthAge = monthAge;
- }
-
- public Long getMonthAge()
- {
- return monthAge;
- }
-
- public void setGender(String gender)
- {
- this.gender = gender;
- }
-
- public String getGender()
- {
- return gender;
- }
-
- public void setParity(Long parity)
- {
- this.parity = parity;
- }
-
- public Long getParity()
- {
- return parity;
- }
-
- public void setBreed(String breed)
- {
- this.breed = breed;
- }
-
- public String getBreed()
- {
- return breed;
- }
-
- public void setLactDay(Long lactDay)
- {
- this.lactDay = lactDay;
- }
-
- public Long getLactDay()
- {
- return lactDay;
- }
-
- public void setGestDay(Long gestDay)
- {
- this.gestDay = gestDay;
- }
-
- public Long getGestDay()
- {
- return gestDay;
- }
-
- public void setDatetime(Date datetime)
- {
- this.datetime = datetime;
- }
-
- public Date getDatetime()
- {
- return datetime;
- }
-
- public void setDiseaseId(Long diseaseId)
- {
- this.diseaseId = diseaseId;
- }
-
- public Long getDiseaseId()
- {
- return diseaseId;
- }
-
- public void setDiseasePid(String diseasePid)
- {
- this.diseasePid = diseasePid;
- }
-
- public String getDiseasePid()
- {
- return diseasePid;
- }
-
- public void setVeterinary(String veterinary)
- {
- this.veterinary = veterinary;
- }
-
- public String getVeterinary()
- {
- return veterinary;
- }
-
- public void setUsageId(Long usageId)
- {
- this.usageId = usageId;
- }
-
- public Long getUsageId()
- {
- return usageId;
- }
-
- public void setComment(String comment)
- {
- this.comment = comment;
- }
-
- public String getComment()
- {
- return comment;
- }
-
- @Override
- public String toString() {
- return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
- .append("id", getId())
- .append("diagId", getDiagId())
- .append("sheepId", getSheepId())
- .append("variety", getVariety())
- .append("sheepType", getSheepType())
- .append("monthAge", getMonthAge())
- .append("gender", getGender())
- .append("parity", getParity())
- .append("breed", getBreed())
- .append("lactDay", getLactDay())
- .append("gestDay", getGestDay())
- .append("datetime", getDatetime())
- .append("diseaseId", getDiseaseId())
- .append("diseasePid", getDiseasePid())
- .append("veterinary", getVeterinary())
- .append("usageId", getUsageId())
- .append("comment", getComment())
- .append("updateBy", getUpdateBy())
- .append("updateTime", getUpdateTime())
- .append("createBy", getCreateBy())
- .append("createTime", getCreateTime())
- .toString();
- }
}
diff --git a/zhyc-module/src/main/java/com/zhyc/module/biosafety/service/impl/TreatmentServiceImpl.java b/zhyc-module/src/main/java/com/zhyc/module/biosafety/service/impl/TreatmentServiceImpl.java
index 502a05b..1d576f5 100644
--- a/zhyc-module/src/main/java/com/zhyc/module/biosafety/service/impl/TreatmentServiceImpl.java
+++ b/zhyc-module/src/main/java/com/zhyc/module/biosafety/service/impl/TreatmentServiceImpl.java
@@ -2,11 +2,14 @@ package com.zhyc.module.biosafety.service.impl;
import java.util.List;
import com.zhyc.common.utils.DateUtils;
+import com.zhyc.module.biosafety.domain.SwMedicineUsage;
+import com.zhyc.module.biosafety.domain.SwPrescription;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.zhyc.module.biosafety.mapper.TreatmentMapper;
import com.zhyc.module.biosafety.domain.Treatment;
import com.zhyc.module.biosafety.service.ITreatmentService;
+import org.springframework.transaction.annotation.Transactional;
/**
* 治疗记录Service业务层处理
@@ -19,6 +22,8 @@ public class TreatmentServiceImpl implements ITreatmentService
{
@Autowired
private TreatmentMapper treatmentMapper;
+ @Autowired
+ private SwMedicineUsageServiceImpl medicineUsageService;
/**
* 查询治疗记录
@@ -51,8 +56,15 @@ public class TreatmentServiceImpl implements ITreatmentService
* @return 结果
*/
@Override
+ @Transactional
public int insertTreatment(Treatment treatment)
{
+ SwMedicineUsage medicineUsage = new SwMedicineUsage();
+ medicineUsage.setName("羊只治疗");
+ medicineUsage.setUseType("4");
+// 药品使用记录
+ medicineUsage.setSwMedicineUsageDetailsList(treatment.getUsageDetails());
+ medicineUsageService.insertSwMedicineUsage(medicineUsage);
treatment.setCreateTime(DateUtils.getNowDate());
return treatmentMapper.insertTreatment(treatment);
}
diff --git a/zhyc-module/src/main/java/com/zhyc/module/dairyProducts/freshMilkTest/controller/NpFreshMilkInspController.java b/zhyc-module/src/main/java/com/zhyc/module/dairyProducts/freshMilkTest/controller/NpFreshMilkInspController.java
new file mode 100644
index 0000000..d91901c
--- /dev/null
+++ b/zhyc-module/src/main/java/com/zhyc/module/dairyProducts/freshMilkTest/controller/NpFreshMilkInspController.java
@@ -0,0 +1,104 @@
+package com.zhyc.module.dairyProducts.freshMilkTest.controller;
+
+import java.util.List;
+import javax.servlet.http.HttpServletResponse;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.PutMapping;
+import org.springframework.web.bind.annotation.DeleteMapping;
+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.RestController;
+import com.zhyc.common.annotation.Log;
+import com.zhyc.common.core.controller.BaseController;
+import com.zhyc.common.core.domain.AjaxResult;
+import com.zhyc.common.enums.BusinessType;
+import com.zhyc.module.dairyProducts.freshMilkTest.domain.NpFreshMilkInsp;
+import com.zhyc.module.dairyProducts.freshMilkTest.service.INpFreshMilkInspService;
+import com.zhyc.common.utils.poi.ExcelUtil;
+import com.zhyc.common.core.page.TableDataInfo;
+
+/**
+ * 鲜奶生产,成品检验记录Controller
+ *
+ * @author ruoyi
+ * @date 2025-07-18
+ */
+@RestController
+@RequestMapping("/freshMilkTest/freshMilkTest")
+public class NpFreshMilkInspController extends BaseController
+{
+ @Autowired
+ private INpFreshMilkInspService npFreshMilkInspService;
+
+ /**
+ * 查询鲜奶生产,成品检验记录列表
+ */
+ @PreAuthorize("@ss.hasPermi('freshMilkTest:freshMilkTest:list')")
+ @GetMapping("/list")
+ public TableDataInfo list(NpFreshMilkInsp npFreshMilkInsp)
+ {
+ startPage();
+ List list = npFreshMilkInspService.selectNpFreshMilkInspList(npFreshMilkInsp);
+ return getDataTable(list);
+ }
+
+ /**
+ * 导出鲜奶生产,成品检验记录列表
+ */
+ @PreAuthorize("@ss.hasPermi('freshMilkTest:freshMilkTest:export')")
+ @Log(title = "鲜奶生产,成品检验记录", businessType = BusinessType.EXPORT)
+ @PostMapping("/export")
+ public void export(HttpServletResponse response, NpFreshMilkInsp npFreshMilkInsp)
+ {
+ List list = npFreshMilkInspService.selectNpFreshMilkInspList(npFreshMilkInsp);
+ ExcelUtil util = new ExcelUtil(NpFreshMilkInsp.class);
+ util.exportExcel(response, list, "鲜奶生产,成品检验记录数据");
+ }
+
+ /**
+ * 获取鲜奶生产,成品检验记录详细信息
+ */
+ @PreAuthorize("@ss.hasPermi('freshMilkTest:freshMilkTest:query')")
+ @GetMapping(value = "/{id}")
+ public AjaxResult getInfo(@PathVariable("id") Long id)
+ {
+ return success(npFreshMilkInspService.selectNpFreshMilkInspById(id));
+ }
+
+ /**
+ * 新增鲜奶生产,成品检验记录
+ */
+ @PreAuthorize("@ss.hasPermi('freshMilkTest:freshMilkTest:add')")
+ @Log(title = "鲜奶生产,成品检验记录", businessType = BusinessType.INSERT)
+ @PostMapping
+ public AjaxResult add(@RequestBody NpFreshMilkInsp npFreshMilkInsp)
+ {
+ return toAjax(npFreshMilkInspService.insertNpFreshMilkInsp(npFreshMilkInsp));
+ }
+
+ /**
+ * 修改鲜奶生产,成品检验记录
+ */
+ @PreAuthorize("@ss.hasPermi('freshMilkTest:freshMilkTest:edit')")
+ @Log(title = "鲜奶生产,成品检验记录", businessType = BusinessType.UPDATE)
+ @PutMapping
+ public AjaxResult edit(@RequestBody NpFreshMilkInsp npFreshMilkInsp)
+ {
+ return toAjax(npFreshMilkInspService.updateNpFreshMilkInsp(npFreshMilkInsp));
+ }
+
+ /**
+ * 删除鲜奶生产,成品检验记录
+ */
+ @PreAuthorize("@ss.hasPermi('freshMilkTest:freshMilkTest:remove')")
+ @Log(title = "鲜奶生产,成品检验记录", businessType = BusinessType.DELETE)
+ @DeleteMapping("/{ids}")
+ public AjaxResult remove(@PathVariable Long[] ids)
+ {
+ return toAjax(npFreshMilkInspService.deleteNpFreshMilkInspByIds(ids));
+ }
+}
diff --git a/zhyc-module/src/main/java/com/zhyc/module/dairyProducts/freshMilkTest/domain/NpFreshMilkInsp.java b/zhyc-module/src/main/java/com/zhyc/module/dairyProducts/freshMilkTest/domain/NpFreshMilkInsp.java
new file mode 100644
index 0000000..a1c7fad
--- /dev/null
+++ b/zhyc-module/src/main/java/com/zhyc/module/dairyProducts/freshMilkTest/domain/NpFreshMilkInsp.java
@@ -0,0 +1,267 @@
+package com.zhyc.module.dairyProducts.freshMilkTest.domain;
+
+import java.util.Date;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+import com.zhyc.common.annotation.Excel;
+import com.zhyc.common.core.domain.BaseEntity;
+
+/**
+ * 鲜奶生产,成品检验记录对象 np_fresh_milk_insp
+ *
+ * @author ruoyi
+ * @date 2025-07-18
+ */
+public class NpFreshMilkInsp extends BaseEntity
+{
+ private static final long serialVersionUID = 1L;
+
+ /** $column.columnComment */
+ private Long id;
+
+ /** 来源 */
+ @Excel(name = "来源")
+ private String source;
+
+ /** 检测日期 */
+ @JsonFormat(pattern = "yyyy-MM-dd")
+ @Excel(name = "检测日期", width = 30, dateFormat = "yyyy-MM-dd")
+ private Date datetime;
+
+ /** 脂肪g/100g */
+ @Excel(name = "脂肪g/100g")
+ private Double fat;
+
+ /** 蛋白质g/100g */
+ @Excel(name = "蛋白质g/100g")
+ private Double protein;
+
+ /** 非脂g/100g */
+ @Excel(name = "非脂g/100g")
+ private Double nonFat;
+
+ /** 酸度oT */
+ @Excel(name = "酸度oT")
+ private Double acidity;
+
+ /** 菌落总数CFU/ml_1 */
+ @Excel(name = "菌落总数CFU/ml_1")
+ private Double bacterialColony1;
+
+ /** 菌落总数CFU/ml_2 */
+ @Excel(name = "菌落总数CFU/ml_2")
+ private Double bacterialColony2;
+
+ /** 菌落总数CFU/ml_3 */
+ @Excel(name = "菌落总数CFU/ml_3")
+ private Double bacterialColony3;
+
+ /** 菌落总数CFU/ml_4 */
+ @Excel(name = "菌落总数CFU/ml_4")
+ private Double bacterialColony4;
+
+ /** 菌落总数CFU/ml_5 */
+ @Excel(name = "菌落总数CFU/ml_5")
+ private Double bacterialColony5;
+
+ /** 大肠菌群CFU/ml */
+ @Excel(name = "大肠菌群CFU/ml")
+ private Double coli;
+
+ /** 乳铁蛋白(mg/L) */
+ @Excel(name = "乳铁蛋白", readConverterExp = "m=g/L")
+ private Double lactoferrin;
+
+ /** 免疫球蛋白(mg/l) */
+ @Excel(name = "免疫球蛋白", readConverterExp = "m=g/l")
+ private Double ig;
+
+ /** 备注 */
+ @Excel(name = "备注")
+ private String commnet;
+
+ public void setId(Long id)
+ {
+ this.id = id;
+ }
+
+ public Long getId()
+ {
+ return id;
+ }
+
+ public void setSource(String source)
+ {
+ this.source = source;
+ }
+
+ public String getSource()
+ {
+ return source;
+ }
+
+ public void setDatetime(Date datetime)
+ {
+ this.datetime = datetime;
+ }
+
+ public Date getDatetime()
+ {
+ return datetime;
+ }
+
+ public void setFat(Double fat)
+ {
+ this.fat = fat;
+ }
+
+ public Double getFat()
+ {
+ return fat;
+ }
+
+ public void setProtein(Double protein)
+ {
+ this.protein = protein;
+ }
+
+ public Double getProtein()
+ {
+ return protein;
+ }
+
+ public void setNonFat(Double nonFat)
+ {
+ this.nonFat = nonFat;
+ }
+
+ public Double getNonFat()
+ {
+ return nonFat;
+ }
+
+ public void setAcidity(Double acidity)
+ {
+ this.acidity = acidity;
+ }
+
+ public Double getAcidity()
+ {
+ return acidity;
+ }
+
+ public void setBacterialColony1(Double bacterialColony1)
+ {
+ this.bacterialColony1 = bacterialColony1;
+ }
+
+ public Double getBacterialColony1()
+ {
+ return bacterialColony1;
+ }
+
+ public void setBacterialColony2(Double bacterialColony2)
+ {
+ this.bacterialColony2 = bacterialColony2;
+ }
+
+ public Double getBacterialColony2()
+ {
+ return bacterialColony2;
+ }
+
+ public void setBacterialColony3(Double bacterialColony3)
+ {
+ this.bacterialColony3 = bacterialColony3;
+ }
+
+ public Double getBacterialColony3()
+ {
+ return bacterialColony3;
+ }
+
+ public void setBacterialColony4(Double bacterialColony4)
+ {
+ this.bacterialColony4 = bacterialColony4;
+ }
+
+ public Double getBacterialColony4()
+ {
+ return bacterialColony4;
+ }
+
+ public void setBacterialColony5(Double bacterialColony5)
+ {
+ this.bacterialColony5 = bacterialColony5;
+ }
+
+ public Double getBacterialColony5()
+ {
+ return bacterialColony5;
+ }
+
+ public void setColi(Double coli)
+ {
+ this.coli = coli;
+ }
+
+ public Double getColi()
+ {
+ return coli;
+ }
+
+ public void setLactoferrin(Double lactoferrin)
+ {
+ this.lactoferrin = lactoferrin;
+ }
+
+ public Double getLactoferrin()
+ {
+ return lactoferrin;
+ }
+
+ public void setIg(Double ig)
+ {
+ this.ig = ig;
+ }
+
+ public Double getIg()
+ {
+ return ig;
+ }
+
+ public void setCommnet(String commnet)
+ {
+ this.commnet = commnet;
+ }
+
+ public String getCommnet()
+ {
+ return commnet;
+ }
+
+ @Override
+ public String toString() {
+ return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
+ .append("id", getId())
+ .append("source", getSource())
+ .append("datetime", getDatetime())
+ .append("fat", getFat())
+ .append("protein", getProtein())
+ .append("nonFat", getNonFat())
+ .append("acidity", getAcidity())
+ .append("bacterialColony1", getBacterialColony1())
+ .append("bacterialColony2", getBacterialColony2())
+ .append("bacterialColony3", getBacterialColony3())
+ .append("bacterialColony4", getBacterialColony4())
+ .append("bacterialColony5", getBacterialColony5())
+ .append("coli", getColi())
+ .append("lactoferrin", getLactoferrin())
+ .append("ig", getIg())
+ .append("commnet", getCommnet())
+ .append("createBy", getCreateBy())
+ .append("createTime", getCreateTime())
+ .toString();
+ }
+}
diff --git a/zhyc-module/src/main/java/com/zhyc/module/dairyProducts/freshMilkTest/mapper/NpFreshMilkInspMapper.java b/zhyc-module/src/main/java/com/zhyc/module/dairyProducts/freshMilkTest/mapper/NpFreshMilkInspMapper.java
new file mode 100644
index 0000000..e0671e5
--- /dev/null
+++ b/zhyc-module/src/main/java/com/zhyc/module/dairyProducts/freshMilkTest/mapper/NpFreshMilkInspMapper.java
@@ -0,0 +1,61 @@
+package com.zhyc.module.dairyProducts.freshMilkTest.mapper;
+
+import java.util.List;
+import com.zhyc.module.dairyProducts.freshMilkTest.domain.NpFreshMilkInsp;
+
+/**
+ * 鲜奶生产,成品检验记录Mapper接口
+ *
+ * @author ruoyi
+ * @date 2025-07-18
+ */
+public interface NpFreshMilkInspMapper
+{
+ /**
+ * 查询鲜奶生产,成品检验记录
+ *
+ * @param id 鲜奶生产,成品检验记录主键
+ * @return 鲜奶生产,成品检验记录
+ */
+ public NpFreshMilkInsp selectNpFreshMilkInspById(Long id);
+
+ /**
+ * 查询鲜奶生产,成品检验记录列表
+ *
+ * @param npFreshMilkInsp 鲜奶生产,成品检验记录
+ * @return 鲜奶生产,成品检验记录集合
+ */
+ public List selectNpFreshMilkInspList(NpFreshMilkInsp npFreshMilkInsp);
+
+ /**
+ * 新增鲜奶生产,成品检验记录
+ *
+ * @param npFreshMilkInsp 鲜奶生产,成品检验记录
+ * @return 结果
+ */
+ public int insertNpFreshMilkInsp(NpFreshMilkInsp npFreshMilkInsp);
+
+ /**
+ * 修改鲜奶生产,成品检验记录
+ *
+ * @param npFreshMilkInsp 鲜奶生产,成品检验记录
+ * @return 结果
+ */
+ public int updateNpFreshMilkInsp(NpFreshMilkInsp npFreshMilkInsp);
+
+ /**
+ * 删除鲜奶生产,成品检验记录
+ *
+ * @param id 鲜奶生产,成品检验记录主键
+ * @return 结果
+ */
+ public int deleteNpFreshMilkInspById(Long id);
+
+ /**
+ * 批量删除鲜奶生产,成品检验记录
+ *
+ * @param ids 需要删除的数据主键集合
+ * @return 结果
+ */
+ public int deleteNpFreshMilkInspByIds(Long[] ids);
+}
diff --git a/zhyc-module/src/main/java/com/zhyc/module/dairyProducts/freshMilkTest/service/INpFreshMilkInspService.java b/zhyc-module/src/main/java/com/zhyc/module/dairyProducts/freshMilkTest/service/INpFreshMilkInspService.java
new file mode 100644
index 0000000..6c709e4
--- /dev/null
+++ b/zhyc-module/src/main/java/com/zhyc/module/dairyProducts/freshMilkTest/service/INpFreshMilkInspService.java
@@ -0,0 +1,61 @@
+package com.zhyc.module.dairyProducts.freshMilkTest.service;
+
+import java.util.List;
+import com.zhyc.module.dairyProducts.freshMilkTest.domain.NpFreshMilkInsp;
+
+/**
+ * 鲜奶生产,成品检验记录Service接口
+ *
+ * @author ruoyi
+ * @date 2025-07-18
+ */
+public interface INpFreshMilkInspService
+{
+ /**
+ * 查询鲜奶生产,成品检验记录
+ *
+ * @param id 鲜奶生产,成品检验记录主键
+ * @return 鲜奶生产,成品检验记录
+ */
+ public NpFreshMilkInsp selectNpFreshMilkInspById(Long id);
+
+ /**
+ * 查询鲜奶生产,成品检验记录列表
+ *
+ * @param npFreshMilkInsp 鲜奶生产,成品检验记录
+ * @return 鲜奶生产,成品检验记录集合
+ */
+ public List selectNpFreshMilkInspList(NpFreshMilkInsp npFreshMilkInsp);
+
+ /**
+ * 新增鲜奶生产,成品检验记录
+ *
+ * @param npFreshMilkInsp 鲜奶生产,成品检验记录
+ * @return 结果
+ */
+ public int insertNpFreshMilkInsp(NpFreshMilkInsp npFreshMilkInsp);
+
+ /**
+ * 修改鲜奶生产,成品检验记录
+ *
+ * @param npFreshMilkInsp 鲜奶生产,成品检验记录
+ * @return 结果
+ */
+ public int updateNpFreshMilkInsp(NpFreshMilkInsp npFreshMilkInsp);
+
+ /**
+ * 批量删除鲜奶生产,成品检验记录
+ *
+ * @param ids 需要删除的鲜奶生产,成品检验记录主键集合
+ * @return 结果
+ */
+ public int deleteNpFreshMilkInspByIds(Long[] ids);
+
+ /**
+ * 删除鲜奶生产,成品检验记录信息
+ *
+ * @param id 鲜奶生产,成品检验记录主键
+ * @return 结果
+ */
+ public int deleteNpFreshMilkInspById(Long id);
+}
diff --git a/zhyc-module/src/main/java/com/zhyc/module/dairyProducts/freshMilkTest/service/impl/NpFreshMilkInspServiceImpl.java b/zhyc-module/src/main/java/com/zhyc/module/dairyProducts/freshMilkTest/service/impl/NpFreshMilkInspServiceImpl.java
new file mode 100644
index 0000000..c990280
--- /dev/null
+++ b/zhyc-module/src/main/java/com/zhyc/module/dairyProducts/freshMilkTest/service/impl/NpFreshMilkInspServiceImpl.java
@@ -0,0 +1,95 @@
+package com.zhyc.module.dairyProducts.freshMilkTest.service.impl;
+
+import java.util.List;
+import com.zhyc.common.utils.DateUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import com.zhyc.module.dairyProducts.freshMilkTest.mapper.NpFreshMilkInspMapper;
+import com.zhyc.module.dairyProducts.freshMilkTest.domain.NpFreshMilkInsp;
+import com.zhyc.module.dairyProducts.freshMilkTest.service.INpFreshMilkInspService;
+
+/**
+ * 鲜奶生产,成品检验记录Service业务层处理
+ *
+ * @author ruoyi
+ * @date 2025-07-18
+ */
+@Service
+public class NpFreshMilkInspServiceImpl implements INpFreshMilkInspService
+{
+ @Autowired
+ private NpFreshMilkInspMapper npFreshMilkInspMapper;
+
+ /**
+ * 查询鲜奶生产,成品检验记录
+ *
+ * @param id 鲜奶生产,成品检验记录主键
+ * @return 鲜奶生产,成品检验记录
+ */
+ @Override
+ public NpFreshMilkInsp selectNpFreshMilkInspById(Long id)
+ {
+ return npFreshMilkInspMapper.selectNpFreshMilkInspById(id);
+ }
+
+ /**
+ * 查询鲜奶生产,成品检验记录列表
+ *
+ * @param npFreshMilkInsp 鲜奶生产,成品检验记录
+ * @return 鲜奶生产,成品检验记录
+ */
+ @Override
+ public List selectNpFreshMilkInspList(NpFreshMilkInsp npFreshMilkInsp)
+ {
+ return npFreshMilkInspMapper.selectNpFreshMilkInspList(npFreshMilkInsp);
+ }
+
+ /**
+ * 新增鲜奶生产,成品检验记录
+ *
+ * @param npFreshMilkInsp 鲜奶生产,成品检验记录
+ * @return 结果
+ */
+ @Override
+ public int insertNpFreshMilkInsp(NpFreshMilkInsp npFreshMilkInsp)
+ {
+ npFreshMilkInsp.setCreateTime(DateUtils.getNowDate());
+ return npFreshMilkInspMapper.insertNpFreshMilkInsp(npFreshMilkInsp);
+ }
+
+ /**
+ * 修改鲜奶生产,成品检验记录
+ *
+ * @param npFreshMilkInsp 鲜奶生产,成品检验记录
+ * @return 结果
+ */
+ @Override
+ public int updateNpFreshMilkInsp(NpFreshMilkInsp npFreshMilkInsp)
+ {
+ return npFreshMilkInspMapper.updateNpFreshMilkInsp(npFreshMilkInsp);
+ }
+
+ /**
+ * 批量删除鲜奶生产,成品检验记录
+ *
+ * @param ids 需要删除的鲜奶生产,成品检验记录主键
+ * @return 结果
+ */
+ @Override
+ public int deleteNpFreshMilkInspByIds(Long[] ids)
+ {
+ return npFreshMilkInspMapper.deleteNpFreshMilkInspByIds(ids);
+ }
+
+ /**
+ * 删除鲜奶生产,成品检验记录信息
+ *
+ * @param id 鲜奶生产,成品检验记录主键
+ * @return 结果
+ */
+ @Override
+ public int deleteNpFreshMilkInspById(Long id)
+ {
+ return npFreshMilkInspMapper.deleteNpFreshMilkInspById(id);
+ }
+}
diff --git a/zhyc-module/src/main/java/com/zhyc/module/dairyProducts/yogurtTest/controller/NpYogurtInspController.java b/zhyc-module/src/main/java/com/zhyc/module/dairyProducts/yogurtTest/controller/NpYogurtInspController.java
new file mode 100644
index 0000000..bcb7ed1
--- /dev/null
+++ b/zhyc-module/src/main/java/com/zhyc/module/dairyProducts/yogurtTest/controller/NpYogurtInspController.java
@@ -0,0 +1,104 @@
+package com.zhyc.module.dairyProducts.yogurtTest.controller;
+
+import java.util.List;
+import javax.servlet.http.HttpServletResponse;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.PutMapping;
+import org.springframework.web.bind.annotation.DeleteMapping;
+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.RestController;
+import com.zhyc.common.annotation.Log;
+import com.zhyc.common.core.controller.BaseController;
+import com.zhyc.common.core.domain.AjaxResult;
+import com.zhyc.common.enums.BusinessType;
+import com.zhyc.module.dairyProducts.yogurtTest.domain.NpYogurtInsp;
+import com.zhyc.module.dairyProducts.yogurtTest.service.INpYogurtInspService;
+import com.zhyc.common.utils.poi.ExcelUtil;
+import com.zhyc.common.core.page.TableDataInfo;
+
+/**
+ * 酸奶生产,成品检疫记录Controller
+ *
+ * @author ruoyi
+ * @date 2025-07-17
+ */
+@RestController
+@RequestMapping("/yogurtTest/yogurtTest")
+public class NpYogurtInspController extends BaseController
+{
+ @Autowired
+ private INpYogurtInspService npYogurtInspService;
+
+ /**
+ * 查询酸奶生产,成品检疫记录列表
+ */
+ @PreAuthorize("@ss.hasPermi('yogurtTest:yogurtTest:list')")
+ @GetMapping("/list")
+ public TableDataInfo list(NpYogurtInsp npYogurtInsp)
+ {
+ startPage();
+ List list = npYogurtInspService.selectNpYogurtInspList(npYogurtInsp);
+ return getDataTable(list);
+ }
+
+ /**
+ * 导出酸奶生产,成品检疫记录列表
+ */
+ @PreAuthorize("@ss.hasPermi('yogurtTest:yogurtTest:export')")
+ @Log(title = "酸奶生产,成品检疫记录", businessType = BusinessType.EXPORT)
+ @PostMapping("/export")
+ public void export(HttpServletResponse response, NpYogurtInsp npYogurtInsp)
+ {
+ List list = npYogurtInspService.selectNpYogurtInspList(npYogurtInsp);
+ ExcelUtil util = new ExcelUtil(NpYogurtInsp.class);
+ util.exportExcel(response, list, "酸奶生产,成品检疫记录数据");
+ }
+
+ /**
+ * 获取酸奶生产,成品检疫记录详细信息
+ */
+ @PreAuthorize("@ss.hasPermi('yogurtTest:yogurtTest:query')")
+ @GetMapping(value = "/{id}")
+ public AjaxResult getInfo(@PathVariable("id") Long id)
+ {
+ return success(npYogurtInspService.selectNpYogurtInspById(id));
+ }
+
+ /**
+ * 新增酸奶生产,成品检疫记录
+ */
+ @PreAuthorize("@ss.hasPermi('yogurtTest:yogurtTest:add')")
+ @Log(title = "酸奶生产,成品检疫记录", businessType = BusinessType.INSERT)
+ @PostMapping
+ public AjaxResult add(@RequestBody NpYogurtInsp npYogurtInsp)
+ {
+ return toAjax(npYogurtInspService.insertNpYogurtInsp(npYogurtInsp));
+ }
+
+ /**
+ * 修改酸奶生产,成品检疫记录
+ */
+ @PreAuthorize("@ss.hasPermi('yogurtTest:yogurtTest:edit')")
+ @Log(title = "酸奶生产,成品检疫记录", businessType = BusinessType.UPDATE)
+ @PutMapping
+ public AjaxResult edit(@RequestBody NpYogurtInsp npYogurtInsp)
+ {
+ return toAjax(npYogurtInspService.updateNpYogurtInsp(npYogurtInsp));
+ }
+
+ /**
+ * 删除酸奶生产,成品检疫记录
+ */
+ @PreAuthorize("@ss.hasPermi('yogurtTest:yogurtTest:remove')")
+ @Log(title = "酸奶生产,成品检疫记录", businessType = BusinessType.DELETE)
+ @DeleteMapping("/{ids}")
+ public AjaxResult remove(@PathVariable Long[] ids)
+ {
+ return toAjax(npYogurtInspService.deleteNpYogurtInspByIds(ids));
+ }
+}
diff --git a/zhyc-module/src/main/java/com/zhyc/module/dairyProducts/yogurtTest/domain/NpYogurtInsp.java b/zhyc-module/src/main/java/com/zhyc/module/dairyProducts/yogurtTest/domain/NpYogurtInsp.java
new file mode 100644
index 0000000..d3e6110
--- /dev/null
+++ b/zhyc-module/src/main/java/com/zhyc/module/dairyProducts/yogurtTest/domain/NpYogurtInsp.java
@@ -0,0 +1,268 @@
+package com.zhyc.module.dairyProducts.yogurtTest.domain;
+
+import java.util.Date;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+import com.zhyc.common.annotation.Excel;
+import com.zhyc.common.core.domain.BaseEntity;
+
+/**
+ * 酸奶生产,成品检疫记录对象 np_yogurt_insp
+ *
+ * @author ruoyi
+ * @date 2025-07-17
+ */
+public class NpYogurtInsp extends BaseEntity
+{
+ private static final long serialVersionUID = 1L;
+
+ /** $column.columnComment */
+ private Long id;
+
+ /** 来源 */
+ @Excel(name = "来源")
+ private String source;
+
+ /** 检测日期 */
+ @JsonFormat(pattern = "yyyy-MM-dd")
+ @Excel(name = "检测日期", width = 30, dateFormat = "yyyy-MM-dd")
+ private Date datetime;
+
+ /** 脂肪g/100g */
+ @Excel(name = "脂肪g/100g")
+ private Double fat;
+
+ /** 蛋白质g/100g */
+ @Excel(name = "蛋白质g/100g")
+ private Double protein;
+
+ /** 非脂g/100g
+ */
+ @Excel(name = "非脂g/100g")
+ private Double nonFat;
+
+ /** 酸度oT */
+ @Excel(name = "酸度oT")
+ private Double acidity;
+
+ /** 菌落总数(CFU/g)_1 */
+ @Excel(name = "菌落总数", readConverterExp = "C=FU/g")
+ private Double bacterialColony1;
+
+ /** 菌落总数(CFU/g)_2 */
+ @Excel(name = "菌落总数", readConverterExp = "C=FU/g")
+ private Double bacterialClony2;
+
+ /** 菌落总数(CFU/g)_3 */
+ @Excel(name = "菌落总数", readConverterExp = "C=FU/g")
+ private Double bacterialClony3;
+
+ /** 菌落总数(CFU/g)_4 */
+ @Excel(name = "菌落总数", readConverterExp = "C=FU/g")
+ private Double bacterialClony4;
+
+ /** 菌落总数(CFU/g)_5 */
+ @Excel(name = "菌落总数", readConverterExp = "C=FU/g")
+ private Double bacterialClony5;
+
+ /** 酵母菌(CFU/g) */
+ @Excel(name = "酵母菌(CFU/g)")
+ private Double yeast;
+
+ /** 霉菌(CFU/g) */
+ @Excel(name = "霉菌", readConverterExp = "C=FU/g")
+ private Double mould;
+
+ /** 乳酸菌数(CFU/g) */
+ @Excel(name = "乳酸菌数", readConverterExp = "C=FU/g")
+ private Double lacto;
+
+ /** 备注 */
+ @Excel(name = "备注")
+ private String comment;
+
+ public void setId(Long id)
+ {
+ this.id = id;
+ }
+
+ public Long getId()
+ {
+ return id;
+ }
+
+ public void setSource(String source)
+ {
+ this.source = source;
+ }
+
+ public String getSource()
+ {
+ return source;
+ }
+
+ public void setDatetime(Date datetime)
+ {
+ this.datetime = datetime;
+ }
+
+ public Date getDatetime()
+ {
+ return datetime;
+ }
+
+ public void setFat(Double fat)
+ {
+ this.fat = fat;
+ }
+
+ public Double getFat()
+ {
+ return fat;
+ }
+
+ public void setProtein(Double protein)
+ {
+ this.protein = protein;
+ }
+
+ public Double getProtein()
+ {
+ return protein;
+ }
+
+ public void setNonFat(Double nonFat)
+ {
+ this.nonFat = nonFat;
+ }
+
+ public Double getNonFat()
+ {
+ return nonFat;
+ }
+
+ public void setAcidity(Double acidity)
+ {
+ this.acidity = acidity;
+ }
+
+ public Double getAcidity()
+ {
+ return acidity;
+ }
+
+ public void setBacterialColony1(Double bacterialColony1)
+ {
+ this.bacterialColony1 = bacterialColony1;
+ }
+
+ public Double getBacterialColony1()
+ {
+ return bacterialColony1;
+ }
+
+ public void setBacterialClony2(Double bacterialClony2)
+ {
+ this.bacterialClony2 = bacterialClony2;
+ }
+
+ public Double getBacterialClony2()
+ {
+ return bacterialClony2;
+ }
+
+ public void setBacterialClony3(Double bacterialClony3)
+ {
+ this.bacterialClony3 = bacterialClony3;
+ }
+
+ public Double getBacterialClony3()
+ {
+ return bacterialClony3;
+ }
+
+ public void setBacterialClony4(Double bacterialClony4)
+ {
+ this.bacterialClony4 = bacterialClony4;
+ }
+
+ public Double getBacterialClony4()
+ {
+ return bacterialClony4;
+ }
+
+ public void setBacterialClony5(Double bacterialClony5)
+ {
+ this.bacterialClony5 = bacterialClony5;
+ }
+
+ public Double getBacterialClony5()
+ {
+ return bacterialClony5;
+ }
+
+ public void setYeast(Double yeast)
+ {
+ this.yeast = yeast;
+ }
+
+ public Double getYeast()
+ {
+ return yeast;
+ }
+
+ public void setMould(Double mould)
+ {
+ this.mould = mould;
+ }
+
+ public Double getMould()
+ {
+ return mould;
+ }
+
+ public void setLacto(Double lacto)
+ {
+ this.lacto = lacto;
+ }
+
+ public Double getLacto()
+ {
+ return lacto;
+ }
+
+ public void setComment(String comment)
+ {
+ this.comment = comment;
+ }
+
+ public String getComment()
+ {
+ return comment;
+ }
+
+ @Override
+ public String toString() {
+ return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
+ .append("id", getId())
+ .append("source", getSource())
+ .append("datetime", getDatetime())
+ .append("fat", getFat())
+ .append("protein", getProtein())
+ .append("nonFat", getNonFat())
+ .append("acidity", getAcidity())
+ .append("bacterialColony1", getBacterialColony1())
+ .append("bacterialClony2", getBacterialClony2())
+ .append("bacterialClony3", getBacterialClony3())
+ .append("bacterialClony4", getBacterialClony4())
+ .append("bacterialClony5", getBacterialClony5())
+ .append("yeast", getYeast())
+ .append("mould", getMould())
+ .append("lacto", getLacto())
+ .append("comment", getComment())
+ .append("createBy", getCreateBy())
+ .append("createTime", getCreateTime())
+ .toString();
+ }
+}
diff --git a/zhyc-module/src/main/java/com/zhyc/module/dairyProducts/yogurtTest/mapper/NpYogurtInspMapper.java b/zhyc-module/src/main/java/com/zhyc/module/dairyProducts/yogurtTest/mapper/NpYogurtInspMapper.java
new file mode 100644
index 0000000..6d0d8dd
--- /dev/null
+++ b/zhyc-module/src/main/java/com/zhyc/module/dairyProducts/yogurtTest/mapper/NpYogurtInspMapper.java
@@ -0,0 +1,61 @@
+package com.zhyc.module.dairyProducts.yogurtTest.mapper;
+
+import java.util.List;
+import com.zhyc.module.dairyProducts.yogurtTest.domain.NpYogurtInsp;
+
+/**
+ * 酸奶生产,成品检疫记录Mapper接口
+ *
+ * @author ruoyi
+ * @date 2025-07-17
+ */
+public interface NpYogurtInspMapper
+{
+ /**
+ * 查询酸奶生产,成品检疫记录
+ *
+ * @param id 酸奶生产,成品检疫记录主键
+ * @return 酸奶生产,成品检疫记录
+ */
+ public NpYogurtInsp selectNpYogurtInspById(Long id);
+
+ /**
+ * 查询酸奶生产,成品检疫记录列表
+ *
+ * @param npYogurtInsp 酸奶生产,成品检疫记录
+ * @return 酸奶生产,成品检疫记录集合
+ */
+ public List selectNpYogurtInspList(NpYogurtInsp npYogurtInsp);
+
+ /**
+ * 新增酸奶生产,成品检疫记录
+ *
+ * @param npYogurtInsp 酸奶生产,成品检疫记录
+ * @return 结果
+ */
+ public int insertNpYogurtInsp(NpYogurtInsp npYogurtInsp);
+
+ /**
+ * 修改酸奶生产,成品检疫记录
+ *
+ * @param npYogurtInsp 酸奶生产,成品检疫记录
+ * @return 结果
+ */
+ public int updateNpYogurtInsp(NpYogurtInsp npYogurtInsp);
+
+ /**
+ * 删除酸奶生产,成品检疫记录
+ *
+ * @param id 酸奶生产,成品检疫记录主键
+ * @return 结果
+ */
+ public int deleteNpYogurtInspById(Long id);
+
+ /**
+ * 批量删除酸奶生产,成品检疫记录
+ *
+ * @param ids 需要删除的数据主键集合
+ * @return 结果
+ */
+ public int deleteNpYogurtInspByIds(Long[] ids);
+}
diff --git a/zhyc-module/src/main/java/com/zhyc/module/dairyProducts/yogurtTest/service/INpYogurtInspService.java b/zhyc-module/src/main/java/com/zhyc/module/dairyProducts/yogurtTest/service/INpYogurtInspService.java
new file mode 100644
index 0000000..b2f8201
--- /dev/null
+++ b/zhyc-module/src/main/java/com/zhyc/module/dairyProducts/yogurtTest/service/INpYogurtInspService.java
@@ -0,0 +1,61 @@
+package com.zhyc.module.dairyProducts.yogurtTest.service;
+
+import java.util.List;
+import com.zhyc.module.dairyProducts.yogurtTest.domain.NpYogurtInsp;
+
+/**
+ * 酸奶生产,成品检疫记录Service接口
+ *
+ * @author ruoyi
+ * @date 2025-07-17
+ */
+public interface INpYogurtInspService
+{
+ /**
+ * 查询酸奶生产,成品检疫记录
+ *
+ * @param id 酸奶生产,成品检疫记录主键
+ * @return 酸奶生产,成品检疫记录
+ */
+ public NpYogurtInsp selectNpYogurtInspById(Long id);
+
+ /**
+ * 查询酸奶生产,成品检疫记录列表
+ *
+ * @param npYogurtInsp 酸奶生产,成品检疫记录
+ * @return 酸奶生产,成品检疫记录集合
+ */
+ public List selectNpYogurtInspList(NpYogurtInsp npYogurtInsp);
+
+ /**
+ * 新增酸奶生产,成品检疫记录
+ *
+ * @param npYogurtInsp 酸奶生产,成品检疫记录
+ * @return 结果
+ */
+ public int insertNpYogurtInsp(NpYogurtInsp npYogurtInsp);
+
+ /**
+ * 修改酸奶生产,成品检疫记录
+ *
+ * @param npYogurtInsp 酸奶生产,成品检疫记录
+ * @return 结果
+ */
+ public int updateNpYogurtInsp(NpYogurtInsp npYogurtInsp);
+
+ /**
+ * 批量删除酸奶生产,成品检疫记录
+ *
+ * @param ids 需要删除的酸奶生产,成品检疫记录主键集合
+ * @return 结果
+ */
+ public int deleteNpYogurtInspByIds(Long[] ids);
+
+ /**
+ * 删除酸奶生产,成品检疫记录信息
+ *
+ * @param id 酸奶生产,成品检疫记录主键
+ * @return 结果
+ */
+ public int deleteNpYogurtInspById(Long id);
+}
diff --git a/zhyc-module/src/main/java/com/zhyc/module/dairyProducts/yogurtTest/service/impl/NpYogurtInspServiceImpl.java b/zhyc-module/src/main/java/com/zhyc/module/dairyProducts/yogurtTest/service/impl/NpYogurtInspServiceImpl.java
new file mode 100644
index 0000000..e9096cc
--- /dev/null
+++ b/zhyc-module/src/main/java/com/zhyc/module/dairyProducts/yogurtTest/service/impl/NpYogurtInspServiceImpl.java
@@ -0,0 +1,95 @@
+package com.zhyc.module.dairyProducts.yogurtTest.service.impl;
+
+import java.util.List;
+import com.zhyc.common.utils.DateUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import com.zhyc.module.dairyProducts.yogurtTest.mapper.NpYogurtInspMapper;
+import com.zhyc.module.dairyProducts.yogurtTest.domain.NpYogurtInsp;
+import com.zhyc.module.dairyProducts.yogurtTest.service.INpYogurtInspService;
+
+/**
+ * 酸奶生产,成品检疫记录Service业务层处理
+ *
+ * @author ruoyi
+ * @date 2025-07-17
+ */
+@Service
+public class NpYogurtInspServiceImpl implements INpYogurtInspService
+{
+ @Autowired
+ private NpYogurtInspMapper npYogurtInspMapper;
+
+ /**
+ * 查询酸奶生产,成品检疫记录
+ *
+ * @param id 酸奶生产,成品检疫记录主键
+ * @return 酸奶生产,成品检疫记录
+ */
+ @Override
+ public NpYogurtInsp selectNpYogurtInspById(Long id)
+ {
+ return npYogurtInspMapper.selectNpYogurtInspById(id);
+ }
+
+ /**
+ * 查询酸奶生产,成品检疫记录列表
+ *
+ * @param npYogurtInsp 酸奶生产,成品检疫记录
+ * @return 酸奶生产,成品检疫记录
+ */
+ @Override
+ public List selectNpYogurtInspList(NpYogurtInsp npYogurtInsp)
+ {
+ return npYogurtInspMapper.selectNpYogurtInspList(npYogurtInsp);
+ }
+
+ /**
+ * 新增酸奶生产,成品检疫记录
+ *
+ * @param npYogurtInsp 酸奶生产,成品检疫记录
+ * @return 结果
+ */
+ @Override
+ public int insertNpYogurtInsp(NpYogurtInsp npYogurtInsp)
+ {
+ npYogurtInsp.setCreateTime(DateUtils.getNowDate());
+ return npYogurtInspMapper.insertNpYogurtInsp(npYogurtInsp);
+ }
+
+ /**
+ * 修改酸奶生产,成品检疫记录
+ *
+ * @param npYogurtInsp 酸奶生产,成品检疫记录
+ * @return 结果
+ */
+ @Override
+ public int updateNpYogurtInsp(NpYogurtInsp npYogurtInsp)
+ {
+ return npYogurtInspMapper.updateNpYogurtInsp(npYogurtInsp);
+ }
+
+ /**
+ * 批量删除酸奶生产,成品检疫记录
+ *
+ * @param ids 需要删除的酸奶生产,成品检疫记录主键
+ * @return 结果
+ */
+ @Override
+ public int deleteNpYogurtInspByIds(Long[] ids)
+ {
+ return npYogurtInspMapper.deleteNpYogurtInspByIds(ids);
+ }
+
+ /**
+ * 删除酸奶生产,成品检疫记录信息
+ *
+ * @param id 酸奶生产,成品检疫记录主键
+ * @return 结果
+ */
+ @Override
+ public int deleteNpYogurtInspById(Long id)
+ {
+ return npYogurtInspMapper.deleteNpYogurtInspById(id);
+ }
+}
diff --git a/zhyc-module/src/main/java/com/zhyc/module/fileManagement/controller/BasSheepGroupMappingController.java b/zhyc-module/src/main/java/com/zhyc/module/fileManagement/controller/BasSheepGroupMappingController.java
index b1d3417..99aac40 100644
--- a/zhyc-module/src/main/java/com/zhyc/module/fileManagement/controller/BasSheepGroupMappingController.java
+++ b/zhyc-module/src/main/java/com/zhyc/module/fileManagement/controller/BasSheepGroupMappingController.java
@@ -1,17 +1,14 @@
package com.zhyc.module.fileManagement.controller;
+import java.util.Arrays;
import java.util.List;
+import java.util.Map;
import javax.servlet.http.HttpServletResponse;
+
+import com.zhyc.common.utils.StringUtils;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.web.bind.annotation.GetMapping;
-import org.springframework.web.bind.annotation.PostMapping;
-import org.springframework.web.bind.annotation.PutMapping;
-import org.springframework.web.bind.annotation.DeleteMapping;
-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.RestController;
+import org.springframework.web.bind.annotation.*;
import com.zhyc.common.annotation.Log;
import com.zhyc.common.core.controller.BaseController;
import com.zhyc.common.core.domain.AjaxResult;
@@ -46,6 +43,24 @@ public class BasSheepGroupMappingController extends BaseController
return getDataTable(list);
}
+ @PreAuthorize("@ss.hasPermi('sheep_grouping:sheep_grouping:list')")
+ @GetMapping("/listJoin")
+ public TableDataInfo list(
+ @RequestParam(required = false) Long sheepId,
+ @RequestParam(required = false) Long groupId,
+ @RequestParam(required = false) String bsManageTags) {
+
+ List earList = null;
+ if (StringUtils.hasText(bsManageTags)) {
+ earList = Arrays.asList(bsManageTags.split("[,,\\s]+"));
+ }
+ startPage();
+ List