Merge remote-tracking branch 'origin/main'
# Conflicts: # zhyc-module/src/main/java/com/zhyc/module/base/mapper/BasSheepMapper.java # zhyc-module/src/main/java/com/zhyc/module/produce/manage_sheep/mapper/ScTransitionInfoMapper.java
This commit is contained in:
commit
2f5bf785a7
@ -73,4 +73,31 @@ public class SheepFileController extends BaseController
|
|||||||
return success(sheep);
|
return success(sheep);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@GetMapping("/stat/sheepType")
|
||||||
|
public AjaxResult statSheepType() {
|
||||||
|
return success(sheepFileService.countBySheepType());
|
||||||
|
}
|
||||||
|
|
||||||
|
@GetMapping("/stat/breedStatus")
|
||||||
|
public AjaxResult statBreedStatus() {
|
||||||
|
return success(sheepFileService.countByBreedStatus());
|
||||||
|
}
|
||||||
|
|
||||||
|
@GetMapping("/stat/variety")
|
||||||
|
public AjaxResult statVariety() {
|
||||||
|
return success(sheepFileService.countByVariety());
|
||||||
|
}
|
||||||
|
|
||||||
|
@GetMapping("/stat/lactationParity")
|
||||||
|
public AjaxResult statLactationParity() {
|
||||||
|
return success(sheepFileService.countParityOfLactation());
|
||||||
|
}
|
||||||
|
|
||||||
|
// 在群总数
|
||||||
|
@GetMapping("/stat/inGroupCount")
|
||||||
|
public AjaxResult inGroupCount() {
|
||||||
|
return success(sheepFileService.countInGroup());
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -2,6 +2,9 @@ package com.zhyc.module.base.domain;
|
|||||||
|
|
||||||
import com.zhyc.common.annotation.Excel;
|
import com.zhyc.common.annotation.Excel;
|
||||||
import com.zhyc.common.core.domain.TreeEntity;
|
import com.zhyc.common.core.domain.TreeEntity;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
|
|
||||||
@ -11,6 +14,9 @@ import org.apache.commons.lang3.builder.ToStringStyle;
|
|||||||
* @author wyt
|
* @author wyt
|
||||||
* @date 2025-07-14
|
* @date 2025-07-14
|
||||||
*/
|
*/
|
||||||
|
@Data
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
public class BasSheepGroup extends TreeEntity
|
public class BasSheepGroup extends TreeEntity
|
||||||
{
|
{
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
@ -35,79 +41,4 @@ public class BasSheepGroup extends TreeEntity
|
|||||||
@Excel(name = "祖级列表名称")
|
@Excel(name = "祖级列表名称")
|
||||||
private String ancestorNames;
|
private String ancestorNames;
|
||||||
|
|
||||||
public void setAncestorNames(String ancestorNames) {
|
|
||||||
this.ancestorNames = ancestorNames;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getAncestorNames() {
|
|
||||||
return ancestorNames;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String getAncestors() {
|
|
||||||
return ancestors;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void setAncestors(String ancestors) {
|
|
||||||
this.ancestors = ancestors;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** 是否为叶子节点 */
|
|
||||||
private Boolean isLeaf;
|
|
||||||
|
|
||||||
// ... getter 和 setter
|
|
||||||
public Boolean getIsLeaf() {
|
|
||||||
return isLeaf;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setIsLeaf(Boolean isLeaf) {
|
|
||||||
this.isLeaf = isLeaf;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setGroupId(Long groupId)
|
|
||||||
{
|
|
||||||
this.groupId = groupId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getGroupId()
|
|
||||||
{
|
|
||||||
return groupId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setGroupName(String groupName)
|
|
||||||
{
|
|
||||||
this.groupName = groupName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getGroupName()
|
|
||||||
{
|
|
||||||
return groupName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setStatus(String status)
|
|
||||||
{
|
|
||||||
this.status = status;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getStatus()
|
|
||||||
{
|
|
||||||
return status;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
|
||||||
.append("groupId", getGroupId())
|
|
||||||
.append("parentId", getParentId())
|
|
||||||
.append("groupName", getGroupName())
|
|
||||||
.append("ancestors", getAncestors())
|
|
||||||
.append("ancestorNames", getAncestorNames()) // 新增这一行
|
|
||||||
.append("status", getStatus())
|
|
||||||
.append("createBy", getCreateBy())
|
|
||||||
.append("createTime", getCreateTime())
|
|
||||||
.append("updateBy", getUpdateBy())
|
|
||||||
.append("updateTime", getUpdateTime())
|
|
||||||
.toString();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
package com.zhyc.module.base.domain;
|
package com.zhyc.module.base.domain;
|
||||||
|
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
import com.zhyc.common.annotation.Excel;
|
import com.zhyc.common.annotation.Excel;
|
||||||
@ -11,6 +14,9 @@ import com.zhyc.common.core.domain.BaseEntity;
|
|||||||
* @author wyt
|
* @author wyt
|
||||||
* @date 2025-07-16
|
* @date 2025-07-16
|
||||||
*/
|
*/
|
||||||
|
@Data
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
public class BasSheepGroupMapping extends BaseEntity
|
public class BasSheepGroupMapping extends BaseEntity
|
||||||
{
|
{
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
@ -27,42 +33,4 @@ public class BasSheepGroupMapping extends BaseEntity
|
|||||||
@Excel(name = "分组ID")
|
@Excel(name = "分组ID")
|
||||||
private Long groupId;
|
private Long groupId;
|
||||||
|
|
||||||
public void setId(Long id)
|
|
||||||
{
|
|
||||||
this.id = id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getId()
|
|
||||||
{
|
|
||||||
return id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setSheepId(Long sheepId)
|
|
||||||
{
|
|
||||||
this.sheepId = sheepId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getSheepId()
|
|
||||||
{
|
|
||||||
return sheepId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setGroupId(Long groupId)
|
|
||||||
{
|
|
||||||
this.groupId = groupId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getGroupId()
|
|
||||||
{
|
|
||||||
return groupId;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
|
||||||
.append("id", getId())
|
|
||||||
.append("sheepId", getSheepId())
|
|
||||||
.append("groupId", getGroupId())
|
|
||||||
.toString();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
package com.zhyc.module.base.domain;
|
package com.zhyc.module.base.domain;
|
||||||
|
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
import com.zhyc.common.annotation.Excel;
|
import com.zhyc.common.annotation.Excel;
|
||||||
@ -11,6 +14,9 @@ import com.zhyc.common.core.domain.BaseEntity;
|
|||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
* @date 2025-07-22
|
* @date 2025-07-22
|
||||||
*/
|
*/
|
||||||
|
@Data
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
public class BasSheepType extends BaseEntity
|
public class BasSheepType extends BaseEntity
|
||||||
{
|
{
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
@ -21,31 +27,5 @@ public class BasSheepType extends BaseEntity
|
|||||||
/** 羊只类型 */
|
/** 羊只类型 */
|
||||||
private String name;
|
private String name;
|
||||||
|
|
||||||
public void setId(Integer id)
|
|
||||||
{
|
|
||||||
this.id = id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getId()
|
|
||||||
{
|
|
||||||
return id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setName(String name)
|
|
||||||
{
|
|
||||||
this.name = name;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getName()
|
|
||||||
{
|
|
||||||
return name;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
|
||||||
.append("id", getId())
|
|
||||||
.append("name", getName())
|
|
||||||
.toString();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
package com.zhyc.module.base.domain;
|
package com.zhyc.module.base.domain;
|
||||||
|
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
import com.zhyc.common.annotation.Excel;
|
import com.zhyc.common.annotation.Excel;
|
||||||
@ -11,6 +14,9 @@ import com.zhyc.common.core.domain.BaseEntity;
|
|||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
* @date 2025-07-15
|
* @date 2025-07-15
|
||||||
*/
|
*/
|
||||||
|
@Data
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
public class BasSheepVariety extends BaseEntity
|
public class BasSheepVariety extends BaseEntity
|
||||||
{
|
{
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
@ -22,31 +28,4 @@ public class BasSheepVariety extends BaseEntity
|
|||||||
@Excel(name = "品种")
|
@Excel(name = "品种")
|
||||||
private String variety;
|
private String variety;
|
||||||
|
|
||||||
public void setId(Long id)
|
|
||||||
{
|
|
||||||
this.id = id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getId()
|
|
||||||
{
|
|
||||||
return id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setVariety(String variety)
|
|
||||||
{
|
|
||||||
this.variety = variety;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getVariety()
|
|
||||||
{
|
|
||||||
return variety;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
|
||||||
.append("id", getId())
|
|
||||||
.append("variety", getVariety())
|
|
||||||
.toString();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -2,6 +2,9 @@ package com.zhyc.module.base.domain;
|
|||||||
|
|
||||||
import com.zhyc.common.annotation.Excel;
|
import com.zhyc.common.annotation.Excel;
|
||||||
import com.zhyc.common.core.domain.BaseEntity;
|
import com.zhyc.common.core.domain.BaseEntity;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
|
|
||||||
@ -11,6 +14,9 @@ import org.apache.commons.lang3.builder.ToStringStyle;
|
|||||||
* @author wyt
|
* @author wyt
|
||||||
* @date 2025-07-11
|
* @date 2025-07-11
|
||||||
*/
|
*/
|
||||||
|
@Data
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
public class DaSheepfold extends BaseEntity
|
public class DaSheepfold extends BaseEntity
|
||||||
{
|
{
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
@ -47,97 +53,5 @@ public class DaSheepfold extends BaseEntity
|
|||||||
@Excel(name = "备注")
|
@Excel(name = "备注")
|
||||||
private String comment;
|
private String comment;
|
||||||
|
|
||||||
public void setId(Long id)
|
|
||||||
{
|
|
||||||
this.id = id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getId()
|
|
||||||
{
|
|
||||||
return id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setRanchId(Long ranchId)
|
|
||||||
{
|
|
||||||
this.ranchId = ranchId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getRanchId()
|
|
||||||
{
|
|
||||||
return ranchId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setSheepfoldName(String sheepfoldName)
|
|
||||||
{
|
|
||||||
this.sheepfoldName = sheepfoldName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getSheepfoldName()
|
|
||||||
{
|
|
||||||
return sheepfoldName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setSheepfoldTypeId(Long sheepfoldTypeId)
|
|
||||||
{
|
|
||||||
this.sheepfoldTypeId = sheepfoldTypeId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getSheepfoldTypeId()
|
|
||||||
{
|
|
||||||
return sheepfoldTypeId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setSheepfoldNo(String sheepfoldNo)
|
|
||||||
{
|
|
||||||
this.sheepfoldNo = sheepfoldNo;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getSheepfoldNo()
|
|
||||||
{
|
|
||||||
return sheepfoldNo;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setRowNo(String rowNo)
|
|
||||||
{
|
|
||||||
this.rowNo = rowNo;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getRowNo()
|
|
||||||
{
|
|
||||||
return rowNo;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setColumns(String columns)
|
|
||||||
{
|
|
||||||
this.columns = columns;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getColumns()
|
|
||||||
{
|
|
||||||
return columns;
|
|
||||||
}
|
|
||||||
|
|
||||||
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("ranchId", getRanchId())
|
|
||||||
.append("sheepfoldName", getSheepfoldName())
|
|
||||||
.append("sheepfoldTypeId", getSheepfoldTypeId())
|
|
||||||
.append("sheepfoldNo", getSheepfoldNo())
|
|
||||||
.append("rowNo", getRowNo())
|
|
||||||
.append("columns", getColumns())
|
|
||||||
.append("comment", getComment())
|
|
||||||
.toString();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -3,7 +3,9 @@ package com.zhyc.module.base.domain;
|
|||||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
import com.zhyc.common.annotation.Excel;
|
import com.zhyc.common.annotation.Excel;
|
||||||
import com.zhyc.common.core.domain.BaseEntity;
|
import com.zhyc.common.core.domain.BaseEntity;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
|
|
||||||
@ -16,6 +18,8 @@ import java.util.Date;
|
|||||||
* @date 2025-07-13
|
* @date 2025-07-13
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
public class SheepFile extends BaseEntity
|
public class SheepFile extends BaseEntity
|
||||||
{
|
{
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
package com.zhyc.module.base.mapper;
|
package com.zhyc.module.base.mapper;
|
||||||
|
|
||||||
import com.zhyc.module.base.domain.BasSheepGroup;
|
import com.zhyc.module.base.domain.BasSheepGroup;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@ -10,6 +11,7 @@ import java.util.List;
|
|||||||
* @author wyt
|
* @author wyt
|
||||||
* @date 2025-07-14
|
* @date 2025-07-14
|
||||||
*/
|
*/
|
||||||
|
@Mapper
|
||||||
public interface BasSheepGroupMapper
|
public interface BasSheepGroupMapper
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
@ -4,6 +4,7 @@ import java.util.List;
|
|||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
import com.zhyc.module.base.domain.BasSheepGroupMapping;
|
import com.zhyc.module.base.domain.BasSheepGroupMapping;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
import org.apache.ibatis.annotations.Param;
|
import org.apache.ibatis.annotations.Param;
|
||||||
/**
|
/**
|
||||||
* 羊只分组关联Mapper接口
|
* 羊只分组关联Mapper接口
|
||||||
@ -11,6 +12,7 @@ import org.apache.ibatis.annotations.Param;
|
|||||||
* @author wyt
|
* @author wyt
|
||||||
* @date 2025-07-16
|
* @date 2025-07-16
|
||||||
*/
|
*/
|
||||||
|
@Mapper
|
||||||
public interface BasSheepGroupMappingMapper
|
public interface BasSheepGroupMappingMapper
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
@ -3,6 +3,7 @@ package com.zhyc.module.base.mapper;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import com.zhyc.module.base.domain.BasSheepVariety;
|
import com.zhyc.module.base.domain.BasSheepVariety;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 羊只品种Mapper接口
|
* 羊只品种Mapper接口
|
||||||
@ -10,6 +11,7 @@ import com.zhyc.module.base.domain.BasSheepVariety;
|
|||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
* @date 2025-07-15
|
* @date 2025-07-15
|
||||||
*/
|
*/
|
||||||
|
@Mapper
|
||||||
public interface BasSheepVarietyMapper
|
public interface BasSheepVarietyMapper
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
package com.zhyc.module.base.mapper;
|
package com.zhyc.module.base.mapper;
|
||||||
|
|
||||||
import com.zhyc.module.base.domain.DaSheepfold;
|
import com.zhyc.module.base.domain.DaSheepfold;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@ -10,6 +11,7 @@ import java.util.List;
|
|||||||
* @author wyt
|
* @author wyt
|
||||||
* @date 2025-07-11
|
* @date 2025-07-11
|
||||||
*/
|
*/
|
||||||
|
@Mapper
|
||||||
public interface DaSheepfoldMapper
|
public interface DaSheepfoldMapper
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
@ -1,8 +1,10 @@
|
|||||||
package com.zhyc.module.base.mapper;
|
package com.zhyc.module.base.mapper;
|
||||||
|
|
||||||
import com.zhyc.module.base.domain.SheepFile;
|
import com.zhyc.module.base.domain.SheepFile;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 羊只档案Mapper接口
|
* 羊只档案Mapper接口
|
||||||
@ -10,6 +12,7 @@ import java.util.List;
|
|||||||
* @author wyt
|
* @author wyt
|
||||||
* @date 2025-07-13
|
* @date 2025-07-13
|
||||||
*/
|
*/
|
||||||
|
@Mapper
|
||||||
public interface SheepFileMapper
|
public interface SheepFileMapper
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
@ -36,4 +39,25 @@ public interface SheepFileMapper
|
|||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
SheepFile selectSheepByManageTags(String tags);
|
SheepFile selectSheepByManageTags(String tags);
|
||||||
|
|
||||||
|
|
||||||
|
// 在群羊只总数
|
||||||
|
Long countInGroup();
|
||||||
|
|
||||||
|
|
||||||
|
// 羊只类别分布(按 name 分组)
|
||||||
|
List<Map<String,Object>> countBySheepType();
|
||||||
|
|
||||||
|
// 繁育状态分布(按 breed 分组)
|
||||||
|
List<Map<String,Object>> countByBreedStatus();
|
||||||
|
|
||||||
|
// 品种分布(按 variety 分组)
|
||||||
|
List<Map<String,Object>> countByVariety();
|
||||||
|
|
||||||
|
// 泌乳羊胎次分布(name = '泌乳羊' 时按 parity 分组)
|
||||||
|
List<Map<String,Object>> countParityOfLactation();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -3,6 +3,7 @@ package com.zhyc.module.base.service;
|
|||||||
import com.zhyc.module.base.domain.SheepFile;
|
import com.zhyc.module.base.domain.SheepFile;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 羊只档案Service接口
|
* 羊只档案Service接口
|
||||||
@ -30,4 +31,11 @@ public interface ISheepFileService
|
|||||||
|
|
||||||
|
|
||||||
SheepFile selectBasSheepByManageTags(String trim);
|
SheepFile selectBasSheepByManageTags(String trim);
|
||||||
|
|
||||||
|
Long countInGroup();
|
||||||
|
|
||||||
|
List<Map<String,Object>> countBySheepType();
|
||||||
|
List<Map<String,Object>> countByBreedStatus();
|
||||||
|
List<Map<String,Object>> countByVariety();
|
||||||
|
List<Map<String,Object>> countParityOfLactation();
|
||||||
}
|
}
|
||||||
|
@ -7,7 +7,7 @@ import com.zhyc.module.base.service.ISheepFileService;
|
|||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;import java.util.Map;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 羊只档案Service业务层处理
|
* 羊只档案Service业务层处理
|
||||||
@ -47,4 +47,28 @@ public class SheepFileServiceImpl implements ISheepFileService {
|
|||||||
return sheepFileMapper.selectSheepByManageTags(tags);
|
return sheepFileMapper.selectSheepByManageTags(tags);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<Map<String, Object>> countBySheepType() {
|
||||||
|
return sheepFileMapper.countBySheepType();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<Map<String, Object>> countByBreedStatus() {
|
||||||
|
return sheepFileMapper.countByBreedStatus();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<Map<String, Object>> countByVariety() {
|
||||||
|
return sheepFileMapper.countByVariety();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<Map<String, Object>> countParityOfLactation() {
|
||||||
|
return sheepFileMapper.countParityOfLactation();
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public Long countInGroup() { return sheepFileMapper.countInGroup(); }
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -78,6 +78,7 @@ public class DewormController extends BaseController
|
|||||||
@PostMapping
|
@PostMapping
|
||||||
public AjaxResult add(@RequestBody Deworm deworm)
|
public AjaxResult add(@RequestBody Deworm deworm)
|
||||||
{
|
{
|
||||||
|
System.out.println(deworm);
|
||||||
return toAjax(dewormService.insertDeworm(deworm));
|
return toAjax(dewormService.insertDeworm(deworm));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,7 +1,12 @@
|
|||||||
package com.zhyc.module.biosafety.domain;
|
package com.zhyc.module.biosafety.domain;
|
||||||
|
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
import com.zhyc.common.annotation.Excel;
|
import com.zhyc.common.annotation.Excel;
|
||||||
@ -13,6 +18,9 @@ import com.zhyc.common.core.domain.BaseEntity;
|
|||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
* @date 2025-07-15
|
* @date 2025-07-15
|
||||||
*/
|
*/
|
||||||
|
@Data
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
public class Deworm extends BaseEntity
|
public class Deworm extends BaseEntity
|
||||||
{
|
{
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
@ -20,34 +28,37 @@ public class Deworm extends BaseEntity
|
|||||||
/** $column.columnComment */
|
/** $column.columnComment */
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
/** 羊只id */
|
|
||||||
@Excel(name = "羊只id")
|
|
||||||
private Long sheepId;
|
private Long sheepId;
|
||||||
|
|
||||||
/** 药品使用记录 */
|
private Integer[] sheepIds;
|
||||||
@Excel(name = "药品使用记录")
|
|
||||||
private Long usageId;
|
|
||||||
|
|
||||||
/** 品种 */
|
/** 羊只id */
|
||||||
|
@Excel(name = "羊只耳号")
|
||||||
|
private String sheepNo;
|
||||||
@Excel(name = "品种")
|
@Excel(name = "品种")
|
||||||
private String variety;
|
private String variety;
|
||||||
|
|
||||||
/** 羊只类别 */
|
|
||||||
@Excel(name = "羊只类别")
|
@Excel(name = "羊只类别")
|
||||||
private String sheepType;
|
private String sheepType;
|
||||||
|
@Excel(name = "羊只性别")
|
||||||
/** 性别 */
|
|
||||||
@Excel(name = "性别")
|
|
||||||
private String gender;
|
private String gender;
|
||||||
|
|
||||||
/** 月龄 */
|
|
||||||
@Excel(name = "月龄")
|
@Excel(name = "月龄")
|
||||||
private Long monthAge;
|
private Long monthAge;
|
||||||
|
@Excel(name = "繁殖状态")
|
||||||
|
private String breed;
|
||||||
/** 胎次 */
|
/** 胎次 */
|
||||||
@Excel(name = "胎次")
|
@Excel(name = "胎次")
|
||||||
private Long parity;
|
private Long parity;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/** 药品使用记录 */
|
||||||
|
@Excel(name = "药品使用记录")
|
||||||
|
private Integer usageId;
|
||||||
|
|
||||||
|
|
||||||
|
// 药品使用
|
||||||
|
private List<SwMedicineUsageDetails> usageDetails;
|
||||||
|
|
||||||
/** 驱虫日期 */
|
/** 驱虫日期 */
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
@Excel(name = "驱虫日期", width = 30, dateFormat = "yyyy-MM-dd")
|
@Excel(name = "驱虫日期", width = 30, dateFormat = "yyyy-MM-dd")
|
||||||
@ -61,134 +72,4 @@ public class Deworm extends BaseEntity
|
|||||||
@Excel(name = "备注")
|
@Excel(name = "备注")
|
||||||
private String comment;
|
private String comment;
|
||||||
|
|
||||||
public void setId(Long id)
|
|
||||||
{
|
|
||||||
this.id = id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getId()
|
|
||||||
{
|
|
||||||
return id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setSheepId(Long sheepId)
|
|
||||||
{
|
|
||||||
this.sheepId = sheepId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getSheepId()
|
|
||||||
{
|
|
||||||
return sheepId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setUsageId(Long usageId)
|
|
||||||
{
|
|
||||||
this.usageId = usageId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getUsageId()
|
|
||||||
{
|
|
||||||
return usageId;
|
|
||||||
}
|
|
||||||
|
|
||||||
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 setGender(String gender)
|
|
||||||
{
|
|
||||||
this.gender = gender;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getGender()
|
|
||||||
{
|
|
||||||
return gender;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setMonthAge(Long monthAge)
|
|
||||||
{
|
|
||||||
this.monthAge = monthAge;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getMonthAge()
|
|
||||||
{
|
|
||||||
return monthAge;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setParity(Long parity)
|
|
||||||
{
|
|
||||||
this.parity = parity;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getParity()
|
|
||||||
{
|
|
||||||
return parity;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setDatetime(Date datetime)
|
|
||||||
{
|
|
||||||
this.datetime = datetime;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Date getDatetime()
|
|
||||||
{
|
|
||||||
return datetime;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setTechnical(String technical)
|
|
||||||
{
|
|
||||||
this.technical = technical;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getTechnical()
|
|
||||||
{
|
|
||||||
return technical;
|
|
||||||
}
|
|
||||||
|
|
||||||
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("sheepId", getSheepId())
|
|
||||||
.append("usageId", getUsageId())
|
|
||||||
.append("variety", getVariety())
|
|
||||||
.append("sheepType", getSheepType())
|
|
||||||
.append("gender", getGender())
|
|
||||||
.append("monthAge", getMonthAge())
|
|
||||||
.append("parity", getParity())
|
|
||||||
.append("datetime", getDatetime())
|
|
||||||
.append("technical", getTechnical())
|
|
||||||
.append("comment", getComment())
|
|
||||||
.append("updateBy", getUpdateBy())
|
|
||||||
.append("updateTime", getUpdateTime())
|
|
||||||
.append("createBy", getCreateBy())
|
|
||||||
.append("createTime", getCreateTime())
|
|
||||||
.toString();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -2,6 +2,9 @@ package com.zhyc.module.biosafety.domain;
|
|||||||
|
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
import com.zhyc.common.annotation.Excel;
|
import com.zhyc.common.annotation.Excel;
|
||||||
@ -13,6 +16,9 @@ import com.zhyc.common.core.domain.BaseEntity;
|
|||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
* @date 2025-07-15
|
* @date 2025-07-15
|
||||||
*/
|
*/
|
||||||
|
@Data
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
public class Diagnosis extends BaseEntity
|
public class Diagnosis extends BaseEntity
|
||||||
{
|
{
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
@ -21,11 +27,13 @@ public class Diagnosis extends BaseEntity
|
|||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
/** 治疗记录id */
|
/** 治疗记录id */
|
||||||
@Excel(name = "治疗记录id")
|
@Excel(name = "治疗记录")
|
||||||
private Long treatId;
|
private Long treatId;
|
||||||
|
|
||||||
/** 羊只id */
|
/** 羊只id */
|
||||||
@Excel(name = "羊只id")
|
@Excel(name = "羊只耳号")
|
||||||
|
private String sheepNo;
|
||||||
|
|
||||||
private Long sheepId;
|
private Long sheepId;
|
||||||
|
|
||||||
/** 时间日期 */
|
/** 时间日期 */
|
||||||
@ -41,21 +49,30 @@ public class Diagnosis extends BaseEntity
|
|||||||
@Excel(name = "性别")
|
@Excel(name = "性别")
|
||||||
private String gender;
|
private String gender;
|
||||||
|
|
||||||
|
/** 性别 */
|
||||||
|
@Excel(name = "月龄")
|
||||||
|
private Long monthAge;
|
||||||
|
|
||||||
|
|
||||||
/** 胎次 */
|
/** 胎次 */
|
||||||
@Excel(name = "胎次")
|
@Excel(name = "胎次")
|
||||||
private String parity;
|
private String parity;
|
||||||
|
|
||||||
/** 疾病类型 */
|
/** 疾病类型 */
|
||||||
@Excel(name = "疾病类型")
|
@Excel(name = "疾病类型")
|
||||||
|
private String diseasePName;
|
||||||
|
|
||||||
private Long diseasePid;
|
private Long diseasePid;
|
||||||
|
|
||||||
/** 子疾病 */
|
/** 子疾病 */
|
||||||
@Excel(name = "子疾病")
|
@Excel(name = "子疾病")
|
||||||
|
private String diseaseName;
|
||||||
|
|
||||||
private Long diseaseId;
|
private Long diseaseId;
|
||||||
|
|
||||||
/** 诊疗结果 */
|
/** 诊疗结果 */
|
||||||
@Excel(name = "诊疗结果")
|
@Excel(name = "诊疗结果")
|
||||||
private Long result;
|
private String result;
|
||||||
|
|
||||||
/** 开始时间 */
|
/** 开始时间 */
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
@ -72,168 +89,9 @@ public class Diagnosis extends BaseEntity
|
|||||||
private Long treatDay;
|
private Long treatDay;
|
||||||
|
|
||||||
/** 羊舍id */
|
/** 羊舍id */
|
||||||
@Excel(name = "羊舍id")
|
@Excel(name = "羊舍")
|
||||||
|
private String sheepfold;
|
||||||
|
|
||||||
private Long sheepfoldId;
|
private Long sheepfoldId;
|
||||||
|
|
||||||
public void setId(Long id)
|
|
||||||
{
|
|
||||||
this.id = id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getId()
|
|
||||||
{
|
|
||||||
return id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setTreatId(Long treatId)
|
|
||||||
{
|
|
||||||
this.treatId = treatId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getTreatId()
|
|
||||||
{
|
|
||||||
return treatId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setSheepId(Long sheepId)
|
|
||||||
{
|
|
||||||
this.sheepId = sheepId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getSheepId()
|
|
||||||
{
|
|
||||||
return sheepId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setDatetime(Date datetime)
|
|
||||||
{
|
|
||||||
this.datetime = datetime;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Date getDatetime()
|
|
||||||
{
|
|
||||||
return datetime;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setSheepType(String sheepType)
|
|
||||||
{
|
|
||||||
this.sheepType = sheepType;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getSheepType()
|
|
||||||
{
|
|
||||||
return sheepType;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setGender(String gender)
|
|
||||||
{
|
|
||||||
this.gender = gender;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getGender()
|
|
||||||
{
|
|
||||||
return gender;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setParity(String parity)
|
|
||||||
{
|
|
||||||
this.parity = parity;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getParity()
|
|
||||||
{
|
|
||||||
return parity;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setDiseasePid(Long diseasePid)
|
|
||||||
{
|
|
||||||
this.diseasePid = diseasePid;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getDiseasePid()
|
|
||||||
{
|
|
||||||
return diseasePid;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setDiseaseId(Long diseaseId)
|
|
||||||
{
|
|
||||||
this.diseaseId = diseaseId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getDiseaseId()
|
|
||||||
{
|
|
||||||
return diseaseId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setResult(Long result)
|
|
||||||
{
|
|
||||||
this.result = result;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getResult()
|
|
||||||
{
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setBegindate(Date begindate)
|
|
||||||
{
|
|
||||||
this.begindate = begindate;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Date getBegindate()
|
|
||||||
{
|
|
||||||
return begindate;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setEnddate(Date enddate)
|
|
||||||
{
|
|
||||||
this.enddate = enddate;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Date getEnddate()
|
|
||||||
{
|
|
||||||
return enddate;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setTreatDay(Long treatDay)
|
|
||||||
{
|
|
||||||
this.treatDay = treatDay;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getTreatDay()
|
|
||||||
{
|
|
||||||
return treatDay;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setSheepfoldId(Long sheepfoldId)
|
|
||||||
{
|
|
||||||
this.sheepfoldId = sheepfoldId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getSheepfoldId()
|
|
||||||
{
|
|
||||||
return sheepfoldId;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
|
||||||
.append("id", getId())
|
|
||||||
.append("treatId", getTreatId())
|
|
||||||
.append("sheepId", getSheepId())
|
|
||||||
.append("datetime", getDatetime())
|
|
||||||
.append("sheepType", getSheepType())
|
|
||||||
.append("gender", getGender())
|
|
||||||
.append("parity", getParity())
|
|
||||||
.append("diseasePid", getDiseasePid())
|
|
||||||
.append("diseaseId", getDiseaseId())
|
|
||||||
.append("result", getResult())
|
|
||||||
.append("begindate", getBegindate())
|
|
||||||
.append("enddate", getEnddate())
|
|
||||||
.append("treatDay", getTreatDay())
|
|
||||||
.append("sheepfoldId", getSheepfoldId())
|
|
||||||
.append("createBy", getCreateBy())
|
|
||||||
.append("createTime", getCreateTime())
|
|
||||||
.toString();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,12 @@
|
|||||||
package com.zhyc.module.biosafety.domain;
|
package com.zhyc.module.biosafety.domain;
|
||||||
|
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
import com.zhyc.common.annotation.Excel;
|
import com.zhyc.common.annotation.Excel;
|
||||||
@ -13,6 +18,9 @@ import com.zhyc.common.core.domain.BaseEntity;
|
|||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
* @date 2025-07-15
|
* @date 2025-07-15
|
||||||
*/
|
*/
|
||||||
|
@Data
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
public class Disinfect extends BaseEntity
|
public class Disinfect extends BaseEntity
|
||||||
{
|
{
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
@ -21,8 +29,12 @@ public class Disinfect extends BaseEntity
|
|||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
/** 羊舍id */
|
/** 羊舍id */
|
||||||
@Excel(name = "羊舍id")
|
@Excel(name = "羊舍")
|
||||||
private Long sheepfoldId;
|
private String sheepfoldName;
|
||||||
|
|
||||||
|
private Integer sheepfoldId;
|
||||||
|
|
||||||
|
private Integer[] sheepfoldIds;
|
||||||
|
|
||||||
/** 消毒日期 */
|
/** 消毒日期 */
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
@ -39,7 +51,7 @@ public class Disinfect extends BaseEntity
|
|||||||
|
|
||||||
/** 药品使用记录id */
|
/** 药品使用记录id */
|
||||||
@Excel(name = "药品使用记录id")
|
@Excel(name = "药品使用记录id")
|
||||||
private Long usageId;
|
private Integer usageId;
|
||||||
|
|
||||||
/** 比例 */
|
/** 比例 */
|
||||||
@Excel(name = "比例")
|
@Excel(name = "比例")
|
||||||
@ -49,101 +61,7 @@ public class Disinfect extends BaseEntity
|
|||||||
@Excel(name = "备注")
|
@Excel(name = "备注")
|
||||||
private String comment;
|
private String comment;
|
||||||
|
|
||||||
public void setId(Long id)
|
// 药品使用
|
||||||
{
|
private List<SwMedicineUsageDetails> usageDetails;
|
||||||
this.id = id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getId()
|
|
||||||
{
|
|
||||||
return id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setSheepfoldId(Long sheepfoldId)
|
|
||||||
{
|
|
||||||
this.sheepfoldId = sheepfoldId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getSheepfoldId()
|
|
||||||
{
|
|
||||||
return sheepfoldId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setDatetime(Date datetime)
|
|
||||||
{
|
|
||||||
this.datetime = datetime;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Date getDatetime()
|
|
||||||
{
|
|
||||||
return datetime;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setTechnician(String technician)
|
|
||||||
{
|
|
||||||
this.technician = technician;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getTechnician()
|
|
||||||
{
|
|
||||||
return technician;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setWay(String way)
|
|
||||||
{
|
|
||||||
this.way = way;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getWay()
|
|
||||||
{
|
|
||||||
return way;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setUsageId(Long usageId)
|
|
||||||
{
|
|
||||||
this.usageId = usageId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getUsageId()
|
|
||||||
{
|
|
||||||
return usageId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setRatio(String ratio)
|
|
||||||
{
|
|
||||||
this.ratio = ratio;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getRatio()
|
|
||||||
{
|
|
||||||
return ratio;
|
|
||||||
}
|
|
||||||
|
|
||||||
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("sheepfoldId", getSheepfoldId())
|
|
||||||
.append("datetime", getDatetime())
|
|
||||||
.append("technician", getTechnician())
|
|
||||||
.append("way", getWay())
|
|
||||||
.append("usageId", getUsageId())
|
|
||||||
.append("ratio", getRatio())
|
|
||||||
.append("comment", getComment())
|
|
||||||
.append("updateBy", getUpdateBy())
|
|
||||||
.append("updateTime", getUpdateTime())
|
|
||||||
.append("createBy", getCreateBy())
|
|
||||||
.append("createTime", getCreateTime())
|
|
||||||
.toString();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -1,9 +1,10 @@
|
|||||||
package com.zhyc.module.biosafety.domain;
|
package com.zhyc.module.biosafety.domain;
|
||||||
|
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
import lombok.Data;
|
||||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
|
||||||
import com.zhyc.common.annotation.Excel;
|
import com.zhyc.common.annotation.Excel;
|
||||||
import com.zhyc.common.core.domain.BaseEntity;
|
import com.zhyc.common.core.domain.BaseEntity;
|
||||||
|
|
||||||
@ -13,6 +14,7 @@ import com.zhyc.common.core.domain.BaseEntity;
|
|||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
* @date 2025-07-15
|
* @date 2025-07-15
|
||||||
*/
|
*/
|
||||||
|
@Data
|
||||||
public class Health extends BaseEntity
|
public class Health extends BaseEntity
|
||||||
{
|
{
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
@ -29,33 +31,29 @@ public class Health extends BaseEntity
|
|||||||
@Excel(name = "羊只id")
|
@Excel(name = "羊只id")
|
||||||
private Long sheepId;
|
private Long sheepId;
|
||||||
|
|
||||||
/** 用药记录 */
|
private Integer[] sheepIds;
|
||||||
@Excel(name = "用药记录")
|
|
||||||
private Long usageId;
|
|
||||||
|
|
||||||
/** 品种 */
|
/** 羊只id */
|
||||||
|
@Excel(name = "羊只耳号")
|
||||||
|
private String sheepNo;
|
||||||
@Excel(name = "品种")
|
@Excel(name = "品种")
|
||||||
private String variety;
|
private String variety;
|
||||||
|
|
||||||
/** 羊只类别 */
|
|
||||||
@Excel(name = "羊只类别")
|
@Excel(name = "羊只类别")
|
||||||
private String sheepType;
|
private String sheepType;
|
||||||
|
@Excel(name = "羊只性别")
|
||||||
/** 性别 */
|
|
||||||
@Excel(name = "性别")
|
|
||||||
private String gender;
|
private String gender;
|
||||||
|
|
||||||
/** 月龄 */
|
|
||||||
@Excel(name = "月龄")
|
@Excel(name = "月龄")
|
||||||
private String monthAge;
|
private Long monthAge;
|
||||||
|
@Excel(name = "繁殖状态")
|
||||||
|
private String breed;
|
||||||
/** 胎次 */
|
/** 胎次 */
|
||||||
@Excel(name = "胎次")
|
@Excel(name = "胎次")
|
||||||
private Long parity;
|
private Long parity;
|
||||||
|
|
||||||
/** 羊舍id */
|
/** 用药记录 */
|
||||||
@Excel(name = "羊舍id")
|
@Excel(name = "用药记录")
|
||||||
private Long sheepfoldId;
|
private Integer usageId;
|
||||||
|
|
||||||
|
|
||||||
/** 技术员 */
|
/** 技术员 */
|
||||||
@Excel(name = "技术员")
|
@Excel(name = "技术员")
|
||||||
@ -65,145 +63,6 @@ public class Health extends BaseEntity
|
|||||||
@Excel(name = "备注")
|
@Excel(name = "备注")
|
||||||
private String comment;
|
private String comment;
|
||||||
|
|
||||||
public void setId(Long id)
|
// 药品使用
|
||||||
{
|
private List<SwMedicineUsageDetails> usageDetails;
|
||||||
this.id = id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getId()
|
|
||||||
{
|
|
||||||
return id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setDatetime(Date datetime)
|
|
||||||
{
|
|
||||||
this.datetime = datetime;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Date getDatetime()
|
|
||||||
{
|
|
||||||
return datetime;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setSheepId(Long sheepId)
|
|
||||||
{
|
|
||||||
this.sheepId = sheepId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getSheepId()
|
|
||||||
{
|
|
||||||
return sheepId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setUsageId(Long usageId)
|
|
||||||
{
|
|
||||||
this.usageId = usageId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getUsageId()
|
|
||||||
{
|
|
||||||
return usageId;
|
|
||||||
}
|
|
||||||
|
|
||||||
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 setGender(String gender)
|
|
||||||
{
|
|
||||||
this.gender = gender;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getGender()
|
|
||||||
{
|
|
||||||
return gender;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setMonthAge(String monthAge)
|
|
||||||
{
|
|
||||||
this.monthAge = monthAge;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getMonthAge()
|
|
||||||
{
|
|
||||||
return monthAge;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setParity(Long parity)
|
|
||||||
{
|
|
||||||
this.parity = parity;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getParity()
|
|
||||||
{
|
|
||||||
return parity;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setSheepfoldId(Long sheepfoldId)
|
|
||||||
{
|
|
||||||
this.sheepfoldId = sheepfoldId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getSheepfoldId()
|
|
||||||
{
|
|
||||||
return sheepfoldId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setTechnical(String technical)
|
|
||||||
{
|
|
||||||
this.technical = technical;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getTechnical()
|
|
||||||
{
|
|
||||||
return technical;
|
|
||||||
}
|
|
||||||
|
|
||||||
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("datetime", getDatetime())
|
|
||||||
.append("sheepId", getSheepId())
|
|
||||||
.append("usageId", getUsageId())
|
|
||||||
.append("variety", getVariety())
|
|
||||||
.append("sheepType", getSheepType())
|
|
||||||
.append("gender", getGender())
|
|
||||||
.append("monthAge", getMonthAge())
|
|
||||||
.append("parity", getParity())
|
|
||||||
.append("sheepfoldId", getSheepfoldId())
|
|
||||||
.append("technical", getTechnical())
|
|
||||||
.append("comment", getComment())
|
|
||||||
.append("updateBy", getUpdateBy())
|
|
||||||
.append("updateTime", getUpdateTime())
|
|
||||||
.append("createBy", getCreateBy())
|
|
||||||
.append("createTime", getCreateTime())
|
|
||||||
.toString();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,12 @@
|
|||||||
package com.zhyc.module.biosafety.domain;
|
package com.zhyc.module.biosafety.domain;
|
||||||
|
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
import com.zhyc.common.annotation.Excel;
|
import com.zhyc.common.annotation.Excel;
|
||||||
@ -13,6 +18,9 @@ import com.zhyc.common.core.domain.BaseEntity;
|
|||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
* @date 2025-07-15
|
* @date 2025-07-15
|
||||||
*/
|
*/
|
||||||
|
@Data
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
public class Immunity extends BaseEntity
|
public class Immunity extends BaseEntity
|
||||||
{
|
{
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
@ -24,33 +32,33 @@ public class Immunity extends BaseEntity
|
|||||||
@Excel(name = "羊只id")
|
@Excel(name = "羊只id")
|
||||||
private Long sheepId;
|
private Long sheepId;
|
||||||
|
|
||||||
/** 使用记录 */
|
private Integer[] sheepIds;
|
||||||
@Excel(name = "使用记录")
|
|
||||||
private Long usageId;
|
|
||||||
|
|
||||||
/** 品种 */
|
/** 羊只id */
|
||||||
|
@Excel(name = "羊只耳号")
|
||||||
|
private String sheepNo;
|
||||||
@Excel(name = "品种")
|
@Excel(name = "品种")
|
||||||
|
|
||||||
private String variety;
|
private String variety;
|
||||||
|
@Excel(name = "羊只类别")
|
||||||
|
private String sheepType;
|
||||||
|
|
||||||
/** 羊只类型 */
|
|
||||||
@Excel(name = "羊只类型")
|
|
||||||
private Long sheepType;
|
|
||||||
|
|
||||||
/** 羊只性别 */
|
|
||||||
@Excel(name = "羊只性别")
|
@Excel(name = "羊只性别")
|
||||||
private String gender;
|
private String gender;
|
||||||
|
|
||||||
/** 月龄 */
|
|
||||||
@Excel(name = "月龄")
|
@Excel(name = "月龄")
|
||||||
private Long monthAge;
|
private Long monthAge;
|
||||||
|
|
||||||
|
@Excel(name = "繁殖状态")
|
||||||
|
private String breed;
|
||||||
/** 胎次 */
|
/** 胎次 */
|
||||||
@Excel(name = "胎次")
|
@Excel(name = "胎次")
|
||||||
private Long parity;
|
private Long parity;
|
||||||
|
|
||||||
/** 羊舍id */
|
/** 使用记录 */
|
||||||
@Excel(name = "羊舍id")
|
@Excel(name = "使用记录")
|
||||||
private Long sheepfoldId;
|
private Integer usageId;
|
||||||
|
|
||||||
|
|
||||||
/** 免疫日期 */
|
/** 免疫日期 */
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
@ -65,145 +73,7 @@ public class Immunity extends BaseEntity
|
|||||||
@Excel(name = "备注")
|
@Excel(name = "备注")
|
||||||
private String comment;
|
private String comment;
|
||||||
|
|
||||||
public void setId(Long id)
|
// 药品使用
|
||||||
{
|
private List<SwMedicineUsageDetails> usageDetails;
|
||||||
this.id = id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getId()
|
|
||||||
{
|
|
||||||
return id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setSheepId(Long sheepId)
|
|
||||||
{
|
|
||||||
this.sheepId = sheepId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getSheepId()
|
|
||||||
{
|
|
||||||
return sheepId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setUsageId(Long usageId)
|
|
||||||
{
|
|
||||||
this.usageId = usageId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getUsageId()
|
|
||||||
{
|
|
||||||
return usageId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setVariety(String variety)
|
|
||||||
{
|
|
||||||
this.variety = variety;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getVariety()
|
|
||||||
{
|
|
||||||
return variety;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setSheepType(Long sheepType)
|
|
||||||
{
|
|
||||||
this.sheepType = sheepType;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getSheepType()
|
|
||||||
{
|
|
||||||
return sheepType;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setGender(String gender)
|
|
||||||
{
|
|
||||||
this.gender = gender;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getGender()
|
|
||||||
{
|
|
||||||
return gender;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setMonthAge(Long monthAge)
|
|
||||||
{
|
|
||||||
this.monthAge = monthAge;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getMonthAge()
|
|
||||||
{
|
|
||||||
return monthAge;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setParity(Long parity)
|
|
||||||
{
|
|
||||||
this.parity = parity;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getParity()
|
|
||||||
{
|
|
||||||
return parity;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setSheepfoldId(Long sheepfoldId)
|
|
||||||
{
|
|
||||||
this.sheepfoldId = sheepfoldId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getSheepfoldId()
|
|
||||||
{
|
|
||||||
return sheepfoldId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setDatetime(Date datetime)
|
|
||||||
{
|
|
||||||
this.datetime = datetime;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Date getDatetime()
|
|
||||||
{
|
|
||||||
return datetime;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setTechnical(String technical)
|
|
||||||
{
|
|
||||||
this.technical = technical;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getTechnical()
|
|
||||||
{
|
|
||||||
return technical;
|
|
||||||
}
|
|
||||||
|
|
||||||
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("sheepId", getSheepId())
|
|
||||||
.append("usageId", getUsageId())
|
|
||||||
.append("variety", getVariety())
|
|
||||||
.append("sheepType", getSheepType())
|
|
||||||
.append("gender", getGender())
|
|
||||||
.append("monthAge", getMonthAge())
|
|
||||||
.append("parity", getParity())
|
|
||||||
.append("sheepfoldId", getSheepfoldId())
|
|
||||||
.append("datetime", getDatetime())
|
|
||||||
.append("technical", getTechnical())
|
|
||||||
.append("comment", getComment())
|
|
||||||
.append("updateBy", getUpdateBy())
|
|
||||||
.append("updateTime", getUpdateTime())
|
|
||||||
.append("createBy", getCreateBy())
|
|
||||||
.append("createTime", getCreateTime())
|
|
||||||
.toString();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
package com.zhyc.module.biosafety.domain;
|
package com.zhyc.module.biosafety.domain;
|
||||||
|
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
import com.zhyc.common.annotation.Excel;
|
import com.zhyc.common.annotation.Excel;
|
||||||
@ -11,6 +14,9 @@ import com.zhyc.common.core.domain.BaseEntity;
|
|||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
* @date 2025-07-14
|
* @date 2025-07-14
|
||||||
*/
|
*/
|
||||||
|
@Data
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
public class QuarantineItems extends BaseEntity
|
public class QuarantineItems extends BaseEntity
|
||||||
{
|
{
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
@ -22,31 +28,4 @@ public class QuarantineItems extends BaseEntity
|
|||||||
@Excel(name = "名称")
|
@Excel(name = "名称")
|
||||||
private String name;
|
private String name;
|
||||||
|
|
||||||
public void setId(Long id)
|
|
||||||
{
|
|
||||||
this.id = id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getId()
|
|
||||||
{
|
|
||||||
return id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setName(String name)
|
|
||||||
{
|
|
||||||
this.name = name;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getName()
|
|
||||||
{
|
|
||||||
return name;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
|
||||||
.append("id", getId())
|
|
||||||
.append("name", getName())
|
|
||||||
.toString();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -2,7 +2,9 @@ package com.zhyc.module.biosafety.domain;
|
|||||||
|
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
import com.zhyc.common.annotation.Excel;
|
import com.zhyc.common.annotation.Excel;
|
||||||
@ -16,6 +18,8 @@ import org.apache.ibatis.type.Alias;
|
|||||||
* @date 2025-07-14
|
* @date 2025-07-14
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
@Alias("QuarantineReport")
|
@Alias("QuarantineReport")
|
||||||
public class QuarantineReport extends BaseEntity
|
public class QuarantineReport extends BaseEntity
|
||||||
{
|
{
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
package com.zhyc.module.biosafety.domain;
|
package com.zhyc.module.biosafety.domain;
|
||||||
|
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
import com.zhyc.common.annotation.Excel;
|
import com.zhyc.common.annotation.Excel;
|
||||||
@ -11,6 +14,9 @@ import com.zhyc.common.core.domain.BaseEntity;
|
|||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
* @date 2025-07-14
|
* @date 2025-07-14
|
||||||
*/
|
*/
|
||||||
|
@Data
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
public class QuarantineSample extends BaseEntity
|
public class QuarantineSample extends BaseEntity
|
||||||
{
|
{
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
@ -22,31 +28,4 @@ public class QuarantineSample extends BaseEntity
|
|||||||
@Excel(name = "样品类型")
|
@Excel(name = "样品类型")
|
||||||
private String name;
|
private String name;
|
||||||
|
|
||||||
public void setId(Long id)
|
|
||||||
{
|
|
||||||
this.id = id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getId()
|
|
||||||
{
|
|
||||||
return id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setName(String name)
|
|
||||||
{
|
|
||||||
this.name = name;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getName()
|
|
||||||
{
|
|
||||||
return name;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
|
||||||
.append("id", getId())
|
|
||||||
.append("name", getName())
|
|
||||||
.toString();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
package com.zhyc.module.biosafety.domain;
|
package com.zhyc.module.biosafety.domain;
|
||||||
|
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
import com.zhyc.common.annotation.Excel;
|
import com.zhyc.common.annotation.Excel;
|
||||||
@ -11,6 +14,9 @@ import com.zhyc.common.core.domain.TreeEntity;
|
|||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
* @date 2025-07-09
|
* @date 2025-07-09
|
||||||
*/
|
*/
|
||||||
|
@Data
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
public class SwDisease extends TreeEntity
|
public class SwDisease extends TreeEntity
|
||||||
{
|
{
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
@ -30,53 +36,5 @@ public class SwDisease extends TreeEntity
|
|||||||
@Excel(name = "")
|
@Excel(name = "")
|
||||||
private Long pid;
|
private Long pid;
|
||||||
|
|
||||||
public void setId(Long id)
|
|
||||||
{
|
|
||||||
this.id = id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getId()
|
|
||||||
{
|
|
||||||
return id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setName(String name)
|
|
||||||
{
|
|
||||||
this.name = name;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getName()
|
|
||||||
{
|
|
||||||
return name;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setComment(String comment)
|
|
||||||
{
|
|
||||||
this.comment = comment;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getComment()
|
|
||||||
{
|
|
||||||
return comment;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setPid(Long pid)
|
|
||||||
{
|
|
||||||
this.pid = pid;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getPid()
|
|
||||||
{
|
|
||||||
return pid;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
|
||||||
.append("id", getId())
|
|
||||||
.append("name", getName())
|
|
||||||
.append("comment", getComment())
|
|
||||||
.append("pid", getPid())
|
|
||||||
.toString();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
package com.zhyc.module.biosafety.domain;
|
package com.zhyc.module.biosafety.domain;
|
||||||
|
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
import com.zhyc.common.annotation.Excel;
|
import com.zhyc.common.annotation.Excel;
|
||||||
@ -11,6 +14,9 @@ import com.zhyc.common.core.domain.BaseEntity;
|
|||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
* @date 2025-07-11
|
* @date 2025-07-11
|
||||||
*/
|
*/
|
||||||
|
@Data
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
public class SwMedicType extends BaseEntity
|
public class SwMedicType extends BaseEntity
|
||||||
{
|
{
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
package com.zhyc.module.biosafety.domain;
|
package com.zhyc.module.biosafety.domain;
|
||||||
|
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
import com.zhyc.common.annotation.Excel;
|
import com.zhyc.common.annotation.Excel;
|
||||||
@ -14,6 +16,8 @@ import com.zhyc.common.core.domain.BaseEntity;
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
public class SwMedicine extends BaseEntity
|
public class SwMedicine extends BaseEntity
|
||||||
{
|
{
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
@ -2,7 +2,9 @@ package com.zhyc.module.biosafety.domain;
|
|||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
import com.zhyc.common.annotation.Excel;
|
import com.zhyc.common.annotation.Excel;
|
||||||
@ -15,6 +17,8 @@ import com.zhyc.common.core.domain.BaseEntity;
|
|||||||
* @date 2025-07-12
|
* @date 2025-07-12
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
public class SwMedicineUsage extends BaseEntity
|
public class SwMedicineUsage extends BaseEntity
|
||||||
{
|
{
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
package com.zhyc.module.biosafety.domain;
|
package com.zhyc.module.biosafety.domain;
|
||||||
|
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
import com.zhyc.common.annotation.Excel;
|
import com.zhyc.common.annotation.Excel;
|
||||||
@ -13,6 +15,8 @@ import com.zhyc.common.core.domain.BaseEntity;
|
|||||||
* @date 2025-07-12
|
* @date 2025-07-12
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
public class SwMedicineUsageDetails extends BaseEntity
|
public class SwMedicineUsageDetails extends BaseEntity
|
||||||
{
|
{
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
@ -1,6 +1,10 @@
|
|||||||
package com.zhyc.module.biosafety.domain;
|
package com.zhyc.module.biosafety.domain;
|
||||||
|
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
|
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
import com.zhyc.common.annotation.Excel;
|
import com.zhyc.common.annotation.Excel;
|
||||||
@ -12,6 +16,9 @@ import com.zhyc.common.core.domain.BaseEntity;
|
|||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
* @date 2025-07-11
|
* @date 2025-07-11
|
||||||
*/
|
*/
|
||||||
|
@Data
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
public class SwPresDetail extends BaseEntity
|
public class SwPresDetail extends BaseEntity
|
||||||
{
|
{
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
@ -1,6 +1,10 @@
|
|||||||
package com.zhyc.module.biosafety.domain;
|
package com.zhyc.module.biosafety.domain;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
import com.zhyc.common.annotation.Excel;
|
import com.zhyc.common.annotation.Excel;
|
||||||
@ -12,6 +16,9 @@ import com.zhyc.common.core.domain.BaseEntity;
|
|||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
* @date 2025-07-11
|
* @date 2025-07-11
|
||||||
*/
|
*/
|
||||||
|
@Data
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
public class SwPrescription extends BaseEntity
|
public class SwPrescription extends BaseEntity
|
||||||
{
|
{
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
package com.zhyc.module.biosafety.domain;
|
package com.zhyc.module.biosafety.domain;
|
||||||
|
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
import com.zhyc.common.annotation.Excel;
|
import com.zhyc.common.annotation.Excel;
|
||||||
@ -13,12 +15,14 @@ import com.zhyc.common.core.domain.BaseEntity;
|
|||||||
* @date 2025-07-11
|
* @date 2025-07-11
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
public class SwUnit extends BaseEntity
|
public class SwUnit extends BaseEntity
|
||||||
{
|
{
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/** 编号 */
|
/** 编号 */
|
||||||
private Long id;
|
private Integer id;
|
||||||
|
|
||||||
/** 单位 */
|
/** 单位 */
|
||||||
@Excel(name = "单位")
|
@Excel(name = "单位")
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
package com.zhyc.module.biosafety.domain;
|
package com.zhyc.module.biosafety.domain;
|
||||||
|
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
import com.zhyc.common.annotation.Excel;
|
import com.zhyc.common.annotation.Excel;
|
||||||
@ -13,25 +15,18 @@ import com.zhyc.common.core.domain.BaseEntity;
|
|||||||
* @date 2025-07-11
|
* @date 2025-07-11
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
public class SwUsage extends BaseEntity
|
public class SwUsage extends BaseEntity
|
||||||
{
|
{
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/** 编号 */
|
/** 编号 */
|
||||||
private Long id;
|
private Integer id;
|
||||||
|
|
||||||
/** 使用方法 */
|
/** 使用方法 */
|
||||||
@Excel(name = "使用方法")
|
@Excel(name = "使用方法")
|
||||||
private String name;
|
private String name;
|
||||||
|
|
||||||
public void setId(Long id)
|
|
||||||
{
|
|
||||||
this.id = id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getId()
|
|
||||||
{
|
|
||||||
return id;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -5,7 +5,9 @@ import java.util.Date;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
import com.zhyc.common.annotation.Excel;
|
import com.zhyc.common.annotation.Excel;
|
||||||
@ -18,6 +20,8 @@ import com.zhyc.common.core.domain.BaseEntity;
|
|||||||
* @date 2025-07-15
|
* @date 2025-07-15
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
public class Treatment extends BaseEntity
|
public class Treatment extends BaseEntity
|
||||||
{
|
{
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
@ -81,6 +85,8 @@ public class Treatment extends BaseEntity
|
|||||||
|
|
||||||
/** 父疾病 */
|
/** 父疾病 */
|
||||||
@Excel(name = "父疾病")
|
@Excel(name = "父疾病")
|
||||||
|
private String diseasePName;
|
||||||
|
|
||||||
private Long diseasePid;
|
private Long diseasePid;
|
||||||
|
|
||||||
/** 兽医 */
|
/** 兽医 */
|
||||||
|
@ -3,6 +3,7 @@ package com.zhyc.module.biosafety.mapper;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import com.zhyc.module.biosafety.domain.Deworm;
|
import com.zhyc.module.biosafety.domain.Deworm;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 驱虫Mapper接口
|
* 驱虫Mapper接口
|
||||||
@ -10,6 +11,7 @@ import com.zhyc.module.biosafety.domain.Deworm;
|
|||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
* @date 2025-07-15
|
* @date 2025-07-15
|
||||||
*/
|
*/
|
||||||
|
@Mapper
|
||||||
public interface DewormMapper
|
public interface DewormMapper
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
@ -34,7 +36,7 @@ public interface DewormMapper
|
|||||||
* @param deworm 驱虫
|
* @param deworm 驱虫
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int insertDeworm(Deworm deworm);
|
public int insertDeworm(List<Deworm> deworm);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 修改驱虫
|
* 修改驱虫
|
||||||
|
@ -2,6 +2,7 @@ package com.zhyc.module.biosafety.mapper;
|
|||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import com.zhyc.module.biosafety.domain.Diagnosis;
|
import com.zhyc.module.biosafety.domain.Diagnosis;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 诊疗结果Mapper接口
|
* 诊疗结果Mapper接口
|
||||||
@ -9,6 +10,7 @@ import com.zhyc.module.biosafety.domain.Diagnosis;
|
|||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
* @date 2025-07-15
|
* @date 2025-07-15
|
||||||
*/
|
*/
|
||||||
|
@Mapper
|
||||||
public interface DiagnosisMapper
|
public interface DiagnosisMapper
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
@ -2,6 +2,7 @@ package com.zhyc.module.biosafety.mapper;
|
|||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import com.zhyc.module.biosafety.domain.Disinfect;
|
import com.zhyc.module.biosafety.domain.Disinfect;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 消毒记录Mapper接口
|
* 消毒记录Mapper接口
|
||||||
@ -9,6 +10,7 @@ import com.zhyc.module.biosafety.domain.Disinfect;
|
|||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
* @date 2025-07-15
|
* @date 2025-07-15
|
||||||
*/
|
*/
|
||||||
|
@Mapper
|
||||||
public interface DisinfectMapper
|
public interface DisinfectMapper
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
@ -33,7 +35,7 @@ public interface DisinfectMapper
|
|||||||
* @param disinfect 消毒记录
|
* @param disinfect 消毒记录
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int insertDisinfect(Disinfect disinfect);
|
public int insertDisinfect(List<Disinfect> disinfect);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 修改消毒记录
|
* 修改消毒记录
|
||||||
|
@ -2,6 +2,7 @@ package com.zhyc.module.biosafety.mapper;
|
|||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import com.zhyc.module.biosafety.domain.Health;
|
import com.zhyc.module.biosafety.domain.Health;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 保健Mapper接口
|
* 保健Mapper接口
|
||||||
@ -9,6 +10,7 @@ import com.zhyc.module.biosafety.domain.Health;
|
|||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
* @date 2025-07-15
|
* @date 2025-07-15
|
||||||
*/
|
*/
|
||||||
|
@Mapper
|
||||||
public interface HealthMapper
|
public interface HealthMapper
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
@ -33,7 +35,7 @@ public interface HealthMapper
|
|||||||
* @param health 保健
|
* @param health 保健
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int insertHealth(Health health);
|
public int insertHealth(List<Health> health);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 修改保健
|
* 修改保健
|
||||||
|
@ -2,6 +2,7 @@ package com.zhyc.module.biosafety.mapper;
|
|||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import com.zhyc.module.biosafety.domain.Immunity;
|
import com.zhyc.module.biosafety.domain.Immunity;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 免疫Mapper接口
|
* 免疫Mapper接口
|
||||||
@ -9,6 +10,7 @@ import com.zhyc.module.biosafety.domain.Immunity;
|
|||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
* @date 2025-07-15
|
* @date 2025-07-15
|
||||||
*/
|
*/
|
||||||
|
@Mapper
|
||||||
public interface ImmunityMapper
|
public interface ImmunityMapper
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
@ -33,7 +35,7 @@ public interface ImmunityMapper
|
|||||||
* @param immunity 免疫
|
* @param immunity 免疫
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int insertImmunity(Immunity immunity);
|
public int insertImmunity(List<Immunity> immunity);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 修改免疫
|
* 修改免疫
|
||||||
|
@ -3,6 +3,7 @@ package com.zhyc.module.biosafety.mapper;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import com.zhyc.module.biosafety.domain.QuarantineItems;
|
import com.zhyc.module.biosafety.domain.QuarantineItems;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 检疫项目Mapper接口
|
* 检疫项目Mapper接口
|
||||||
@ -10,6 +11,7 @@ import com.zhyc.module.biosafety.domain.QuarantineItems;
|
|||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
* @date 2025-07-14
|
* @date 2025-07-14
|
||||||
*/
|
*/
|
||||||
|
@Mapper
|
||||||
public interface QuarantineItemsMapper
|
public interface QuarantineItemsMapper
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
@ -3,6 +3,7 @@ package com.zhyc.module.biosafety.mapper;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import com.zhyc.module.biosafety.domain.QuarantineReport;
|
import com.zhyc.module.biosafety.domain.QuarantineReport;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 检疫记录Mapper接口
|
* 检疫记录Mapper接口
|
||||||
@ -10,6 +11,7 @@ import com.zhyc.module.biosafety.domain.QuarantineReport;
|
|||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
* @date 2025-07-14
|
* @date 2025-07-14
|
||||||
*/
|
*/
|
||||||
|
@Mapper
|
||||||
public interface QuarantineReportMapper
|
public interface QuarantineReportMapper
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
@ -3,6 +3,7 @@ package com.zhyc.module.biosafety.mapper;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import com.zhyc.module.biosafety.domain.QuarantineSample;
|
import com.zhyc.module.biosafety.domain.QuarantineSample;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 样品类型Mapper接口
|
* 样品类型Mapper接口
|
||||||
@ -10,6 +11,7 @@ import com.zhyc.module.biosafety.domain.QuarantineSample;
|
|||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
* @date 2025-07-14
|
* @date 2025-07-14
|
||||||
*/
|
*/
|
||||||
|
@Mapper
|
||||||
public interface QuarantineSampleMapper
|
public interface QuarantineSampleMapper
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
@ -2,6 +2,7 @@ package com.zhyc.module.biosafety.mapper;
|
|||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import com.zhyc.module.biosafety.domain.SwDisease;
|
import com.zhyc.module.biosafety.domain.SwDisease;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 疾病Mapper接口
|
* 疾病Mapper接口
|
||||||
@ -9,6 +10,7 @@ import com.zhyc.module.biosafety.domain.SwDisease;
|
|||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
* @date 2025-07-09
|
* @date 2025-07-09
|
||||||
*/
|
*/
|
||||||
|
@Mapper
|
||||||
public interface SwDiseaseMapper
|
public interface SwDiseaseMapper
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
@ -3,6 +3,7 @@ package com.zhyc.module.biosafety.mapper;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import com.zhyc.module.biosafety.domain.SwMedicType;
|
import com.zhyc.module.biosafety.domain.SwMedicType;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 药品类型Mapper接口
|
* 药品类型Mapper接口
|
||||||
@ -10,6 +11,7 @@ import com.zhyc.module.biosafety.domain.SwMedicType;
|
|||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
* @date 2025-07-11
|
* @date 2025-07-11
|
||||||
*/
|
*/
|
||||||
|
@Mapper
|
||||||
public interface SwMedicTypeMapper
|
public interface SwMedicTypeMapper
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
@ -2,6 +2,7 @@ package com.zhyc.module.biosafety.mapper;
|
|||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import com.zhyc.module.biosafety.domain.SwMedicine;
|
import com.zhyc.module.biosafety.domain.SwMedicine;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 药品Mapper接口
|
* 药品Mapper接口
|
||||||
@ -9,6 +10,7 @@ import com.zhyc.module.biosafety.domain.SwMedicine;
|
|||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
* @date 2025-07-11
|
* @date 2025-07-11
|
||||||
*/
|
*/
|
||||||
|
@Mapper
|
||||||
public interface SwMedicineMapper
|
public interface SwMedicineMapper
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
@ -4,6 +4,7 @@ import java.util.List;
|
|||||||
|
|
||||||
import com.zhyc.module.biosafety.domain.SwMedicineUsage;
|
import com.zhyc.module.biosafety.domain.SwMedicineUsage;
|
||||||
import com.zhyc.module.biosafety.domain.SwMedicineUsageDetails;
|
import com.zhyc.module.biosafety.domain.SwMedicineUsageDetails;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 药品使用记录Mapper接口
|
* 药品使用记录Mapper接口
|
||||||
@ -11,6 +12,7 @@ import com.zhyc.module.biosafety.domain.SwMedicineUsageDetails;
|
|||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
* @date 2025-07-12
|
* @date 2025-07-12
|
||||||
*/
|
*/
|
||||||
|
@Mapper
|
||||||
public interface SwMedicineUsageMapper
|
public interface SwMedicineUsageMapper
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
@ -3,6 +3,7 @@ package com.zhyc.module.biosafety.mapper;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
import com.zhyc.module.biosafety.domain.SwPrescription;
|
import com.zhyc.module.biosafety.domain.SwPrescription;
|
||||||
import com.zhyc.module.biosafety.domain.SwPresDetail;
|
import com.zhyc.module.biosafety.domain.SwPresDetail;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 处方Mapper接口
|
* 处方Mapper接口
|
||||||
@ -10,6 +11,7 @@ import com.zhyc.module.biosafety.domain.SwPresDetail;
|
|||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
* @date 2025-07-11
|
* @date 2025-07-11
|
||||||
*/
|
*/
|
||||||
|
@Mapper
|
||||||
public interface SwPrescriptionMapper
|
public interface SwPrescriptionMapper
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
package com.zhyc.module.biosafety.mapper;
|
package com.zhyc.module.biosafety.mapper;
|
||||||
|
|
||||||
import com.zhyc.module.biosafety.domain.SwUnit;
|
import com.zhyc.module.biosafety.domain.SwUnit;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@ -10,6 +11,7 @@ import java.util.List;
|
|||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
* @date 2025-07-11
|
* @date 2025-07-11
|
||||||
*/
|
*/
|
||||||
|
@Mapper
|
||||||
public interface SwUnitMapper
|
public interface SwUnitMapper
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
@ -2,6 +2,7 @@ package com.zhyc.module.biosafety.mapper;
|
|||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import com.zhyc.module.biosafety.domain.SwUsage;
|
import com.zhyc.module.biosafety.domain.SwUsage;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 药品使用方法Mapper接口
|
* 药品使用方法Mapper接口
|
||||||
@ -9,6 +10,7 @@ import com.zhyc.module.biosafety.domain.SwUsage;
|
|||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
* @date 2025-07-11
|
* @date 2025-07-11
|
||||||
*/
|
*/
|
||||||
|
@Mapper
|
||||||
public interface SwUsageMapper
|
public interface SwUsageMapper
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
@ -3,6 +3,7 @@ package com.zhyc.module.biosafety.mapper;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import com.zhyc.module.biosafety.domain.Treatment;
|
import com.zhyc.module.biosafety.domain.Treatment;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 治疗记录Mapper接口
|
* 治疗记录Mapper接口
|
||||||
@ -10,6 +11,7 @@ import com.zhyc.module.biosafety.domain.Treatment;
|
|||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
* @date 2025-07-15
|
* @date 2025-07-15
|
||||||
*/
|
*/
|
||||||
|
@Mapper
|
||||||
public interface TreatmentMapper
|
public interface TreatmentMapper
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
@ -1,12 +1,22 @@
|
|||||||
package com.zhyc.module.biosafety.service.impl;
|
package com.zhyc.module.biosafety.service.impl;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import com.zhyc.common.utils.DateUtils;
|
import com.zhyc.common.utils.DateUtils;
|
||||||
|
import com.zhyc.common.utils.SecurityUtils;
|
||||||
|
import com.zhyc.common.utils.bean.BeanUtils;
|
||||||
|
import com.zhyc.module.base.domain.SheepFile;
|
||||||
|
import com.zhyc.module.base.mapper.SheepFileMapper;
|
||||||
import com.zhyc.module.biosafety.domain.Deworm;
|
import com.zhyc.module.biosafety.domain.Deworm;
|
||||||
|
import com.zhyc.module.biosafety.domain.SwMedicineUsage;
|
||||||
|
import com.zhyc.module.biosafety.domain.SwMedicineUsageDetails;
|
||||||
|
import com.zhyc.module.biosafety.domain.Treatment;
|
||||||
|
import com.zhyc.module.biosafety.mapper.SwMedicineUsageMapper;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import com.zhyc.module.biosafety.mapper.DewormMapper;
|
import com.zhyc.module.biosafety.mapper.DewormMapper;
|
||||||
import com.zhyc.module.biosafety.service.IDewormService;
|
import com.zhyc.module.biosafety.service.IDewormService;
|
||||||
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 驱虫Service业务层处理
|
* 驱虫Service业务层处理
|
||||||
@ -19,6 +29,12 @@ public class DewormServiceImpl implements IDewormService
|
|||||||
{
|
{
|
||||||
@Autowired
|
@Autowired
|
||||||
private DewormMapper dewormMapper;
|
private DewormMapper dewormMapper;
|
||||||
|
@Autowired
|
||||||
|
private SwMedicineUsageServiceImpl medicineUsageService;
|
||||||
|
@Autowired
|
||||||
|
private SwMedicineUsageMapper medicineUsageMapper;
|
||||||
|
@Autowired
|
||||||
|
private SheepFileMapper sheepFileMapper;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询驱虫
|
* 查询驱虫
|
||||||
@ -29,7 +45,10 @@ public class DewormServiceImpl implements IDewormService
|
|||||||
@Override
|
@Override
|
||||||
public Deworm selectDewormById(Long id)
|
public Deworm selectDewormById(Long id)
|
||||||
{
|
{
|
||||||
return dewormMapper.selectDewormById(id);
|
Deworm deworm = dewormMapper.selectDewormById(id);
|
||||||
|
SwMedicineUsage swMedicineUsage = medicineUsageMapper.selectSwMedicineUsageById(deworm.getUsageId());
|
||||||
|
deworm.setUsageDetails(swMedicineUsage.getSwMedicineUsageDetailsList());
|
||||||
|
return deworm;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -51,10 +70,40 @@ public class DewormServiceImpl implements IDewormService
|
|||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
|
@Transactional
|
||||||
public int insertDeworm(Deworm deworm)
|
public int insertDeworm(Deworm deworm)
|
||||||
{
|
{
|
||||||
|
String username = SecurityUtils.getUsername();
|
||||||
|
// 使用记录的文件
|
||||||
|
SwMedicineUsage medicineUsage = new SwMedicineUsage();
|
||||||
|
medicineUsage.setSwMedicineUsageDetailsList(deworm.getUsageDetails());
|
||||||
|
medicineUsage.setName("羊只驱虫");
|
||||||
|
medicineUsage.setUseType("1");
|
||||||
|
|
||||||
|
List<Deworm> deworms = new ArrayList<>();
|
||||||
|
|
||||||
|
deworm.setCreateBy(username);
|
||||||
deworm.setCreateTime(DateUtils.getNowDate());
|
deworm.setCreateTime(DateUtils.getNowDate());
|
||||||
return dewormMapper.insertDeworm(deworm);
|
for (Integer sheepId : deworm.getSheepIds()) {
|
||||||
|
SheepFile sheepFile = sheepFileMapper.selectSheepFileById(Long.valueOf(sheepId));
|
||||||
|
|
||||||
|
Deworm dew = new Deworm();
|
||||||
|
BeanUtils.copyProperties(deworm, dew);
|
||||||
|
dew.setSheepId(Long.valueOf(sheepId));
|
||||||
|
dew.setVariety(sheepFile.getVariety());
|
||||||
|
dew.setSheepType(sheepFile.getName());
|
||||||
|
dew.setMonthAge(sheepFile.getMonthAge());
|
||||||
|
dew.setGender(String.valueOf(sheepFile.getGender()));
|
||||||
|
dew.setBreed(sheepFile.getBreed());
|
||||||
|
dew.setParity(sheepFile.getParity());
|
||||||
|
// 获取药品使用记录的id
|
||||||
|
Integer usageId = medicineUsageService.insertSwMedicineUsage(medicineUsage);
|
||||||
|
dew.setUsageId(usageId);
|
||||||
|
deworms.add(dew);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
return dewormMapper.insertDeworm(deworms);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -64,8 +113,23 @@ public class DewormServiceImpl implements IDewormService
|
|||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
|
@Transactional
|
||||||
public int updateDeworm(Deworm deworm)
|
public int updateDeworm(Deworm deworm)
|
||||||
{
|
{
|
||||||
|
String username = SecurityUtils.getUsername();
|
||||||
|
for (SwMedicineUsageDetails usageDetail : deworm.getUsageDetails()) {
|
||||||
|
usageDetail.setMediUsage(deworm.getUsageId());
|
||||||
|
}
|
||||||
|
medicineUsageMapper.deleteSwMedicineUsageDetailsByMediUsage(deworm.getUsageId());
|
||||||
|
SwMedicineUsage swMedicineUsage = new SwMedicineUsage();
|
||||||
|
|
||||||
|
swMedicineUsage.setId(deworm.getUsageId());
|
||||||
|
swMedicineUsage.setUpdateBy(username);
|
||||||
|
swMedicineUsage.setUpdateTime(DateUtils.getNowDate());
|
||||||
|
medicineUsageMapper.updateSwMedicineUsage(swMedicineUsage);
|
||||||
|
|
||||||
|
medicineUsageMapper.batchSwMedicineUsageDetails(deworm.getUsageDetails());
|
||||||
|
deworm.setUpdateBy(username);
|
||||||
deworm.setUpdateTime(DateUtils.getNowDate());
|
deworm.setUpdateTime(DateUtils.getNowDate());
|
||||||
return dewormMapper.updateDeworm(deworm);
|
return dewormMapper.updateDeworm(deworm);
|
||||||
}
|
}
|
||||||
|
@ -1,12 +1,20 @@
|
|||||||
package com.zhyc.module.biosafety.service.impl;
|
package com.zhyc.module.biosafety.service.impl;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.Objects;
|
||||||
|
|
||||||
import com.zhyc.common.utils.DateUtils;
|
import com.zhyc.common.utils.DateUtils;
|
||||||
|
import com.zhyc.common.utils.SecurityUtils;
|
||||||
|
import com.zhyc.module.base.domain.BasSheep;
|
||||||
|
import com.zhyc.module.base.domain.SheepFile;
|
||||||
|
import com.zhyc.module.base.mapper.BasSheepMapper;
|
||||||
|
import com.zhyc.module.base.mapper.SheepFileMapper;
|
||||||
import com.zhyc.module.biosafety.mapper.DiagnosisMapper;
|
import com.zhyc.module.biosafety.mapper.DiagnosisMapper;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import com.zhyc.module.biosafety.domain.Diagnosis;
|
import com.zhyc.module.biosafety.domain.Diagnosis;
|
||||||
import com.zhyc.module.biosafety.service.IDiagnosisService;
|
import com.zhyc.module.biosafety.service.IDiagnosisService;
|
||||||
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 诊疗结果Service业务层处理
|
* 诊疗结果Service业务层处理
|
||||||
@ -19,6 +27,10 @@ public class DiagnosisServiceImpl implements IDiagnosisService
|
|||||||
{
|
{
|
||||||
@Autowired
|
@Autowired
|
||||||
private DiagnosisMapper diagnosisMapper;
|
private DiagnosisMapper diagnosisMapper;
|
||||||
|
@Autowired
|
||||||
|
private SheepFileMapper sheepFileMapper;
|
||||||
|
@Autowired
|
||||||
|
private BasSheepMapper sheepMapper;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询诊疗结果
|
* 查询诊疗结果
|
||||||
@ -51,9 +63,25 @@ public class DiagnosisServiceImpl implements IDiagnosisService
|
|||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
|
@Transactional
|
||||||
public int insertDiagnosis(Diagnosis diagnosis)
|
public int insertDiagnosis(Diagnosis diagnosis)
|
||||||
{
|
{
|
||||||
|
SheepFile sheepFile = sheepFileMapper.selectSheepFileById(diagnosis.getSheepId());
|
||||||
|
diagnosis.setSheepType(sheepFile.getName());
|
||||||
|
diagnosis.setParity(String.valueOf(sheepFile.getParity()));
|
||||||
|
diagnosis.setGender(String.valueOf(sheepFile.getGender()));
|
||||||
|
diagnosis.setMonthAge(sheepFile.getMonthAge());
|
||||||
|
|
||||||
|
String username = SecurityUtils.getUsername();
|
||||||
|
diagnosis.setCreateBy(username);
|
||||||
diagnosis.setCreateTime(DateUtils.getNowDate());
|
diagnosis.setCreateTime(DateUtils.getNowDate());
|
||||||
|
if (!Objects.equals(sheepFile.getSheepfoldId(), diagnosis.getSheepfoldId())){
|
||||||
|
BasSheep basSheep = new BasSheep();
|
||||||
|
basSheep.setId(diagnosis.getSheepId());
|
||||||
|
basSheep.setSheepfoldId(diagnosis.getSheepfoldId());
|
||||||
|
sheepMapper.updateBasSheep(basSheep);
|
||||||
|
}
|
||||||
|
// 转入其他羊舍
|
||||||
return diagnosisMapper.insertDiagnosis(diagnosis);
|
return diagnosisMapper.insertDiagnosis(diagnosis);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -64,8 +92,18 @@ public class DiagnosisServiceImpl implements IDiagnosisService
|
|||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
|
@Transactional
|
||||||
public int updateDiagnosis(Diagnosis diagnosis)
|
public int updateDiagnosis(Diagnosis diagnosis)
|
||||||
{
|
{
|
||||||
|
BasSheep basSheep = new BasSheep();
|
||||||
|
basSheep.setId(diagnosis.getSheepId());
|
||||||
|
basSheep.setSheepfoldId(diagnosis.getSheepfoldId());
|
||||||
|
String username = SecurityUtils.getUsername();
|
||||||
|
basSheep.setUpdateBy(username);
|
||||||
|
basSheep.setUpdateTime(DateUtils.getNowDate());
|
||||||
|
diagnosis.setUpdateBy(username);
|
||||||
|
diagnosis.setUpdateTime(DateUtils.getNowDate());
|
||||||
|
sheepMapper.updateBasSheep(basSheep);
|
||||||
return diagnosisMapper.updateDiagnosis(diagnosis);
|
return diagnosisMapper.updateDiagnosis(diagnosis);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,12 +1,22 @@
|
|||||||
package com.zhyc.module.biosafety.service.impl;
|
package com.zhyc.module.biosafety.service.impl;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import com.zhyc.common.utils.DateUtils;
|
import com.zhyc.common.utils.DateUtils;
|
||||||
|
import com.zhyc.common.utils.SecurityUtils;
|
||||||
|
import com.zhyc.common.utils.bean.BeanUtils;
|
||||||
|
import com.zhyc.module.base.domain.SheepFile;
|
||||||
|
import com.zhyc.module.base.mapper.SheepFileMapper;
|
||||||
|
import com.zhyc.module.biosafety.domain.Deworm;
|
||||||
|
import com.zhyc.module.biosafety.domain.SwMedicineUsage;
|
||||||
|
import com.zhyc.module.biosafety.domain.SwMedicineUsageDetails;
|
||||||
|
import com.zhyc.module.biosafety.mapper.SwMedicineUsageMapper;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import com.zhyc.module.biosafety.mapper.DisinfectMapper;
|
import com.zhyc.module.biosafety.mapper.DisinfectMapper;
|
||||||
import com.zhyc.module.biosafety.domain.Disinfect;
|
import com.zhyc.module.biosafety.domain.Disinfect;
|
||||||
import com.zhyc.module.biosafety.service.IDisinfectService;
|
import com.zhyc.module.biosafety.service.IDisinfectService;
|
||||||
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 消毒记录Service业务层处理
|
* 消毒记录Service业务层处理
|
||||||
@ -20,6 +30,15 @@ public class DisinfectServiceImpl implements IDisinfectService
|
|||||||
@Autowired
|
@Autowired
|
||||||
private DisinfectMapper disinfectMapper;
|
private DisinfectMapper disinfectMapper;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private SwMedicineUsageServiceImpl medicineUsageService;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private SwMedicineUsageMapper medicineUsageMapper;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private SheepFileMapper sheepFileMapper;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询消毒记录
|
* 查询消毒记录
|
||||||
*
|
*
|
||||||
@ -29,7 +48,10 @@ public class DisinfectServiceImpl implements IDisinfectService
|
|||||||
@Override
|
@Override
|
||||||
public Disinfect selectDisinfectById(Long id)
|
public Disinfect selectDisinfectById(Long id)
|
||||||
{
|
{
|
||||||
return disinfectMapper.selectDisinfectById(id);
|
Disinfect disinfect = disinfectMapper.selectDisinfectById(id);
|
||||||
|
SwMedicineUsage swMedicineUsage = medicineUsageService.selectSwMedicineUsageById(disinfect.getUsageId());
|
||||||
|
disinfect.setUsageDetails(swMedicineUsage.getSwMedicineUsageDetailsList());
|
||||||
|
return disinfect;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -53,8 +75,30 @@ public class DisinfectServiceImpl implements IDisinfectService
|
|||||||
@Override
|
@Override
|
||||||
public int insertDisinfect(Disinfect disinfect)
|
public int insertDisinfect(Disinfect disinfect)
|
||||||
{
|
{
|
||||||
|
String username = SecurityUtils.getUsername();
|
||||||
|
// 使用记录的文件
|
||||||
|
SwMedicineUsage medicineUsage = new SwMedicineUsage();
|
||||||
|
medicineUsage.setSwMedicineUsageDetailsList(disinfect.getUsageDetails());
|
||||||
|
medicineUsage.setName("羊舍消毒");
|
||||||
|
medicineUsage.setUseType("3");
|
||||||
|
|
||||||
|
|
||||||
|
List<Disinfect> disinfects = new ArrayList<>();
|
||||||
|
|
||||||
|
disinfect.setCreateBy(username);
|
||||||
disinfect.setCreateTime(DateUtils.getNowDate());
|
disinfect.setCreateTime(DateUtils.getNowDate());
|
||||||
return disinfectMapper.insertDisinfect(disinfect);
|
|
||||||
|
for (Integer sheepfold : disinfect.getSheepfoldIds()) {
|
||||||
|
Disinfect dis = new Disinfect();
|
||||||
|
BeanUtils.copyProperties(disinfect,dis);
|
||||||
|
dis.setSheepfoldId(sheepfold);
|
||||||
|
// 获取药品使用记录的id
|
||||||
|
Integer usageId = medicineUsageService.insertSwMedicineUsage(medicineUsage);
|
||||||
|
dis.setUsageId(usageId);
|
||||||
|
disinfects.add(dis);
|
||||||
|
}
|
||||||
|
|
||||||
|
return disinfectMapper.insertDisinfect(disinfects);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -64,8 +108,16 @@ public class DisinfectServiceImpl implements IDisinfectService
|
|||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
|
@Transactional
|
||||||
public int updateDisinfect(Disinfect disinfect)
|
public int updateDisinfect(Disinfect disinfect)
|
||||||
{
|
{
|
||||||
|
for (SwMedicineUsageDetails usageDetail : disinfect.getUsageDetails()) {
|
||||||
|
usageDetail.setMediUsage(disinfect.getUsageId());
|
||||||
|
}
|
||||||
|
medicineUsageMapper.deleteSwMedicineUsageDetailsByMediUsage(disinfect.getUsageId());
|
||||||
|
medicineUsageMapper.batchSwMedicineUsageDetails(disinfect.getUsageDetails());
|
||||||
|
String username = SecurityUtils.getUsername();
|
||||||
|
disinfect.setUpdateBy(username);
|
||||||
disinfect.setUpdateTime(DateUtils.getNowDate());
|
disinfect.setUpdateTime(DateUtils.getNowDate());
|
||||||
return disinfectMapper.updateDisinfect(disinfect);
|
return disinfectMapper.updateDisinfect(disinfect);
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,16 @@
|
|||||||
package com.zhyc.module.biosafety.service.impl;
|
package com.zhyc.module.biosafety.service.impl;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import com.zhyc.common.utils.DateUtils;
|
import com.zhyc.common.utils.DateUtils;
|
||||||
|
import com.zhyc.common.utils.SecurityUtils;
|
||||||
|
import com.zhyc.common.utils.bean.BeanUtils;
|
||||||
|
import com.zhyc.module.base.domain.SheepFile;
|
||||||
|
import com.zhyc.module.base.mapper.SheepFileMapper;
|
||||||
|
import com.zhyc.module.biosafety.domain.Health;
|
||||||
|
import com.zhyc.module.biosafety.domain.SwMedicineUsage;
|
||||||
|
import com.zhyc.module.biosafety.domain.SwMedicineUsageDetails;
|
||||||
|
import com.zhyc.module.biosafety.mapper.SwMedicineUsageMapper;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import com.zhyc.module.biosafety.mapper.HealthMapper;
|
import com.zhyc.module.biosafety.mapper.HealthMapper;
|
||||||
@ -20,6 +29,15 @@ public class HealthServiceImpl implements IHealthService
|
|||||||
@Autowired
|
@Autowired
|
||||||
private HealthMapper healthMapper;
|
private HealthMapper healthMapper;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private SwMedicineUsageServiceImpl medicineUsageService;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private SwMedicineUsageMapper medicineUsageMapper;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private SheepFileMapper sheepFileMapper;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询保健
|
* 查询保健
|
||||||
*
|
*
|
||||||
@ -29,7 +47,10 @@ public class HealthServiceImpl implements IHealthService
|
|||||||
@Override
|
@Override
|
||||||
public Health selectHealthById(Long id)
|
public Health selectHealthById(Long id)
|
||||||
{
|
{
|
||||||
return healthMapper.selectHealthById(id);
|
Health health = healthMapper.selectHealthById(id);
|
||||||
|
SwMedicineUsage swMedicineUsage = medicineUsageMapper.selectSwMedicineUsageById(health.getUsageId());
|
||||||
|
health.setUsageDetails(swMedicineUsage.getSwMedicineUsageDetailsList());
|
||||||
|
return health;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -53,8 +74,36 @@ public class HealthServiceImpl implements IHealthService
|
|||||||
@Override
|
@Override
|
||||||
public int insertHealth(Health health)
|
public int insertHealth(Health health)
|
||||||
{
|
{
|
||||||
|
String username = SecurityUtils.getUsername();
|
||||||
|
|
||||||
|
// 使用记录的文件
|
||||||
|
SwMedicineUsage medicineUsage = new SwMedicineUsage();
|
||||||
|
medicineUsage.setSwMedicineUsageDetailsList(health.getUsageDetails());
|
||||||
|
medicineUsage.setName("羊只保健");
|
||||||
|
medicineUsage.setUseType("2");
|
||||||
|
|
||||||
|
List<Health> healths = new ArrayList<>();
|
||||||
|
health.setCreateBy(username);
|
||||||
health.setCreateTime(DateUtils.getNowDate());
|
health.setCreateTime(DateUtils.getNowDate());
|
||||||
return healthMapper.insertHealth(health);
|
for (Integer sheepId : health.getSheepIds()) {
|
||||||
|
SheepFile sheepFile = sheepFileMapper.selectSheepFileById(Long.valueOf(sheepId));
|
||||||
|
Health heal = new Health();
|
||||||
|
BeanUtils.copyProperties(health, heal);
|
||||||
|
heal.setSheepId(Long.valueOf(sheepId));
|
||||||
|
heal.setVariety(sheepFile.getVariety());
|
||||||
|
heal.setSheepType(sheepFile.getName());
|
||||||
|
heal.setMonthAge(sheepFile.getMonthAge());
|
||||||
|
heal.setGender(String.valueOf(sheepFile.getGender()));
|
||||||
|
heal.setBreed(sheepFile.getBreed());
|
||||||
|
heal.setParity(sheepFile.getParity());
|
||||||
|
|
||||||
|
// 获取药品使用记录的id
|
||||||
|
Integer usageId = medicineUsageService.insertSwMedicineUsage(medicineUsage);
|
||||||
|
|
||||||
|
heal.setUsageId(usageId);
|
||||||
|
healths.add(heal);
|
||||||
|
}
|
||||||
|
return healthMapper.insertHealth(healths);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -66,6 +115,13 @@ public class HealthServiceImpl implements IHealthService
|
|||||||
@Override
|
@Override
|
||||||
public int updateHealth(Health health)
|
public int updateHealth(Health health)
|
||||||
{
|
{
|
||||||
|
for (SwMedicineUsageDetails usageDetail : health.getUsageDetails()) {
|
||||||
|
usageDetail.setMediUsage(health.getUsageId());
|
||||||
|
}
|
||||||
|
medicineUsageMapper.deleteSwMedicineUsageDetailsByMediUsage(health.getUsageId());
|
||||||
|
medicineUsageMapper.batchSwMedicineUsageDetails(health.getUsageDetails());
|
||||||
|
String username = SecurityUtils.getUsername();
|
||||||
|
health.setUpdateBy(username);
|
||||||
health.setUpdateTime(DateUtils.getNowDate());
|
health.setUpdateTime(DateUtils.getNowDate());
|
||||||
return healthMapper.updateHealth(health);
|
return healthMapper.updateHealth(health);
|
||||||
}
|
}
|
||||||
|
@ -1,12 +1,22 @@
|
|||||||
package com.zhyc.module.biosafety.service.impl;
|
package com.zhyc.module.biosafety.service.impl;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import com.zhyc.common.utils.DateUtils;
|
import com.zhyc.common.utils.DateUtils;
|
||||||
|
import com.zhyc.common.utils.SecurityUtils;
|
||||||
|
import com.zhyc.common.utils.bean.BeanUtils;
|
||||||
|
import com.zhyc.module.base.domain.SheepFile;
|
||||||
|
import com.zhyc.module.base.mapper.SheepFileMapper;
|
||||||
|
import com.zhyc.module.biosafety.domain.Deworm;
|
||||||
|
import com.zhyc.module.biosafety.domain.SwMedicineUsage;
|
||||||
|
import com.zhyc.module.biosafety.domain.SwMedicineUsageDetails;
|
||||||
|
import com.zhyc.module.biosafety.mapper.SwMedicineUsageMapper;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import com.zhyc.module.biosafety.mapper.ImmunityMapper;
|
import com.zhyc.module.biosafety.mapper.ImmunityMapper;
|
||||||
import com.zhyc.module.biosafety.domain.Immunity;
|
import com.zhyc.module.biosafety.domain.Immunity;
|
||||||
import com.zhyc.module.biosafety.service.IImmunityService;
|
import com.zhyc.module.biosafety.service.IImmunityService;
|
||||||
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 免疫Service业务层处理
|
* 免疫Service业务层处理
|
||||||
@ -20,6 +30,16 @@ public class ImmunityServiceImpl implements IImmunityService
|
|||||||
@Autowired
|
@Autowired
|
||||||
private ImmunityMapper immunityMapper;
|
private ImmunityMapper immunityMapper;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private SwMedicineUsageServiceImpl medicineUsageService;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private SwMedicineUsageMapper medicineUsageMapper;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private SheepFileMapper sheepFileMapper;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询免疫
|
* 查询免疫
|
||||||
*
|
*
|
||||||
@ -29,7 +49,10 @@ public class ImmunityServiceImpl implements IImmunityService
|
|||||||
@Override
|
@Override
|
||||||
public Immunity selectImmunityById(Long id)
|
public Immunity selectImmunityById(Long id)
|
||||||
{
|
{
|
||||||
return immunityMapper.selectImmunityById(id);
|
Immunity immunity = immunityMapper.selectImmunityById(id);
|
||||||
|
SwMedicineUsage swMedicineUsage = medicineUsageMapper.selectSwMedicineUsageById(immunity.getUsageId());
|
||||||
|
immunity.setUsageDetails(swMedicineUsage.getSwMedicineUsageDetailsList());
|
||||||
|
return immunity;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -53,8 +76,42 @@ public class ImmunityServiceImpl implements IImmunityService
|
|||||||
@Override
|
@Override
|
||||||
public int insertImmunity(Immunity immunity)
|
public int insertImmunity(Immunity immunity)
|
||||||
{
|
{
|
||||||
|
String username = SecurityUtils.getUsername();
|
||||||
|
|
||||||
|
// 使用记录的文件
|
||||||
|
SwMedicineUsage medicineUsage = new SwMedicineUsage();
|
||||||
|
medicineUsage.setSwMedicineUsageDetailsList(immunity.getUsageDetails());
|
||||||
|
medicineUsage.setName("羊只免疫");
|
||||||
|
medicineUsage.setUseType("0");
|
||||||
|
medicineUsage.setCreateBy(username);
|
||||||
|
|
||||||
|
List<Immunity> immunities = new ArrayList<>();
|
||||||
|
|
||||||
|
immunity.setUpdateBy(username);
|
||||||
immunity.setCreateTime(DateUtils.getNowDate());
|
immunity.setCreateTime(DateUtils.getNowDate());
|
||||||
return immunityMapper.insertImmunity(immunity);
|
|
||||||
|
for (Integer sheepId : immunity.getSheepIds()) {
|
||||||
|
SheepFile sheepFile = sheepFileMapper.selectSheepFileById(Long.valueOf(sheepId));
|
||||||
|
|
||||||
|
Immunity imm = new Immunity();
|
||||||
|
BeanUtils.copyProperties(immunity, imm);
|
||||||
|
imm.setSheepId(Long.valueOf(sheepId));
|
||||||
|
imm.setVariety(sheepFile.getVariety());
|
||||||
|
imm.setSheepType(sheepFile.getName());
|
||||||
|
imm.setMonthAge(sheepFile.getMonthAge());
|
||||||
|
imm.setGender(String.valueOf(sheepFile.getGender()));
|
||||||
|
imm.setBreed(sheepFile.getBreed());
|
||||||
|
imm.setParity(sheepFile.getParity());
|
||||||
|
// 获取药品使用记录的id
|
||||||
|
Integer usageId = medicineUsageService.insertSwMedicineUsage(medicineUsage);
|
||||||
|
|
||||||
|
imm.setUsageId(usageId);
|
||||||
|
immunities.add(imm);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
immunity.setCreateTime(DateUtils.getNowDate());
|
||||||
|
return immunityMapper.insertImmunity(immunities);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -64,8 +121,14 @@ public class ImmunityServiceImpl implements IImmunityService
|
|||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
|
@Transactional
|
||||||
public int updateImmunity(Immunity immunity)
|
public int updateImmunity(Immunity immunity)
|
||||||
{
|
{
|
||||||
|
for (SwMedicineUsageDetails usageDetail : immunity.getUsageDetails()) {
|
||||||
|
usageDetail.setMediUsage(immunity.getUsageId());
|
||||||
|
}
|
||||||
|
medicineUsageMapper.deleteSwMedicineUsageDetailsByMediUsage(immunity.getUsageId());
|
||||||
|
medicineUsageMapper.batchSwMedicineUsageDetails(immunity.getUsageDetails());
|
||||||
immunity.setUpdateTime(DateUtils.getNowDate());
|
immunity.setUpdateTime(DateUtils.getNowDate());
|
||||||
return immunityMapper.updateImmunity(immunity);
|
return immunityMapper.updateImmunity(immunity);
|
||||||
}
|
}
|
||||||
|
@ -3,6 +3,7 @@ package com.zhyc.module.biosafety.service.impl;
|
|||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import com.zhyc.common.utils.DateUtils;
|
import com.zhyc.common.utils.DateUtils;
|
||||||
|
import com.zhyc.common.utils.SecurityUtils;
|
||||||
import com.zhyc.common.utils.StringUtils;
|
import com.zhyc.common.utils.StringUtils;
|
||||||
import com.zhyc.common.utils.bean.BeanUtils;
|
import com.zhyc.common.utils.bean.BeanUtils;
|
||||||
import com.zhyc.module.base.domain.SheepFile;
|
import com.zhyc.module.base.domain.SheepFile;
|
||||||
@ -60,6 +61,8 @@ public class QuarantineReportServiceImpl implements IQuarantineReportService
|
|||||||
@Override
|
@Override
|
||||||
public int insertQuarantineReport(QuarantineReport quarantineReport)
|
public int insertQuarantineReport(QuarantineReport quarantineReport)
|
||||||
{
|
{
|
||||||
|
String username = SecurityUtils.getUsername();
|
||||||
|
quarantineReport.setCreateBy(username);
|
||||||
quarantineReport.setCreateTime(DateUtils.getNowDate());
|
quarantineReport.setCreateTime(DateUtils.getNowDate());
|
||||||
if (quarantineReport.getResult()==null){
|
if (quarantineReport.getResult()==null){
|
||||||
quarantineReport.setStatus(0);
|
quarantineReport.setStatus(0);
|
||||||
@ -94,6 +97,8 @@ public class QuarantineReportServiceImpl implements IQuarantineReportService
|
|||||||
@Override
|
@Override
|
||||||
public int updateQuarantineReport(QuarantineReport quarantineReport)
|
public int updateQuarantineReport(QuarantineReport quarantineReport)
|
||||||
{
|
{
|
||||||
|
String username = SecurityUtils.getUsername();
|
||||||
|
quarantineReport.setUpdateBy(username);
|
||||||
quarantineReport.setUpdateTime(DateUtils.getNowDate());
|
quarantineReport.setUpdateTime(DateUtils.getNowDate());
|
||||||
return quarantineReportMapper.updateQuarantineReport(quarantineReport);
|
return quarantineReportMapper.updateQuarantineReport(quarantineReport);
|
||||||
}
|
}
|
||||||
|
@ -2,6 +2,7 @@ package com.zhyc.module.biosafety.service.impl;
|
|||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import com.zhyc.common.utils.DateUtils;
|
import com.zhyc.common.utils.DateUtils;
|
||||||
|
import com.zhyc.common.utils.SecurityUtils;
|
||||||
import com.zhyc.module.biosafety.service.ISwMedicineUsageService;
|
import com.zhyc.module.biosafety.service.ISwMedicineUsageService;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
@ -58,6 +59,8 @@ public class SwMedicineUsageServiceImpl implements ISwMedicineUsageService
|
|||||||
@Override
|
@Override
|
||||||
public int insertSwMedicineUsage(SwMedicineUsage swMedicineUsage)
|
public int insertSwMedicineUsage(SwMedicineUsage swMedicineUsage)
|
||||||
{
|
{
|
||||||
|
String username = SecurityUtils.getUsername();
|
||||||
|
swMedicineUsage.setCreateBy(username);
|
||||||
swMedicineUsage.setCreateTime(DateUtils.getNowDate());
|
swMedicineUsage.setCreateTime(DateUtils.getNowDate());
|
||||||
int rows = swMedicineUsageMapper.insertSwMedicineUsage(swMedicineUsage);
|
int rows = swMedicineUsageMapper.insertSwMedicineUsage(swMedicineUsage);
|
||||||
insertSwMedicineUsageDetails(swMedicineUsage);
|
insertSwMedicineUsageDetails(swMedicineUsage);
|
||||||
@ -74,6 +77,8 @@ public class SwMedicineUsageServiceImpl implements ISwMedicineUsageService
|
|||||||
@Override
|
@Override
|
||||||
public int updateSwMedicineUsage(SwMedicineUsage swMedicineUsage)
|
public int updateSwMedicineUsage(SwMedicineUsage swMedicineUsage)
|
||||||
{
|
{
|
||||||
|
String username = SecurityUtils.getUsername();
|
||||||
|
swMedicineUsage.setUpdateBy(username);
|
||||||
swMedicineUsage.setUpdateTime(DateUtils.getNowDate());
|
swMedicineUsage.setUpdateTime(DateUtils.getNowDate());
|
||||||
swMedicineUsageMapper.deleteSwMedicineUsageDetailsByMediUsage(swMedicineUsage.getId());
|
swMedicineUsageMapper.deleteSwMedicineUsageDetailsByMediUsage(swMedicineUsage.getId());
|
||||||
insertSwMedicineUsageDetails(swMedicineUsage);
|
insertSwMedicineUsageDetails(swMedicineUsage);
|
||||||
|
@ -2,6 +2,7 @@ package com.zhyc.module.biosafety.service.impl;
|
|||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import com.zhyc.common.utils.DateUtils;
|
import com.zhyc.common.utils.DateUtils;
|
||||||
|
import com.zhyc.common.utils.SecurityUtils;
|
||||||
import com.zhyc.module.biosafety.domain.SwPresDetail;
|
import com.zhyc.module.biosafety.domain.SwPresDetail;
|
||||||
import com.zhyc.module.biosafety.domain.SwPrescription;
|
import com.zhyc.module.biosafety.domain.SwPrescription;
|
||||||
import com.zhyc.module.biosafety.mapper.SwPrescriptionMapper;
|
import com.zhyc.module.biosafety.mapper.SwPrescriptionMapper;
|
||||||
@ -58,6 +59,8 @@ public class SwPrescriptionServiceImpl implements ISwPrescriptionService
|
|||||||
@Override
|
@Override
|
||||||
public int insertSwPrescription(SwPrescription swPrescription)
|
public int insertSwPrescription(SwPrescription swPrescription)
|
||||||
{
|
{
|
||||||
|
String username = SecurityUtils.getUsername();
|
||||||
|
swPrescription.setCreateBy(username);
|
||||||
swPrescription.setCreateTime(DateUtils.getNowDate());
|
swPrescription.setCreateTime(DateUtils.getNowDate());
|
||||||
int rows = swPrescriptionMapper.insertSwPrescription(swPrescription);
|
int rows = swPrescriptionMapper.insertSwPrescription(swPrescription);
|
||||||
insertSwPresDetail(swPrescription);
|
insertSwPresDetail(swPrescription);
|
||||||
@ -74,6 +77,8 @@ public class SwPrescriptionServiceImpl implements ISwPrescriptionService
|
|||||||
@Override
|
@Override
|
||||||
public int updateSwPrescription(SwPrescription swPrescription)
|
public int updateSwPrescription(SwPrescription swPrescription)
|
||||||
{
|
{
|
||||||
|
String username = SecurityUtils.getUsername();
|
||||||
|
swPrescription.setUpdateBy(username);
|
||||||
swPrescription.setUpdateTime(DateUtils.getNowDate());
|
swPrescription.setUpdateTime(DateUtils.getNowDate());
|
||||||
swPrescriptionMapper.deleteSwPresDetailByPersId(swPrescription.getId());
|
swPrescriptionMapper.deleteSwPresDetailByPersId(swPrescription.getId());
|
||||||
insertSwPresDetail(swPrescription);
|
insertSwPresDetail(swPrescription);
|
||||||
|
@ -3,6 +3,7 @@ package com.zhyc.module.biosafety.service.impl;
|
|||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import com.zhyc.common.utils.DateUtils;
|
import com.zhyc.common.utils.DateUtils;
|
||||||
|
import com.zhyc.common.utils.SecurityUtils;
|
||||||
import com.zhyc.common.utils.bean.BeanUtils;
|
import com.zhyc.common.utils.bean.BeanUtils;
|
||||||
import com.zhyc.module.base.domain.SheepFile;
|
import com.zhyc.module.base.domain.SheepFile;
|
||||||
import com.zhyc.module.base.mapper.SheepFileMapper;
|
import com.zhyc.module.base.mapper.SheepFileMapper;
|
||||||
@ -73,12 +74,14 @@ public class TreatmentServiceImpl implements ITreatmentService
|
|||||||
@Transactional
|
@Transactional
|
||||||
public int insertTreatment(Treatment treatment)
|
public int insertTreatment(Treatment treatment)
|
||||||
{
|
{
|
||||||
|
String username = SecurityUtils.getUsername();
|
||||||
// 使用记录的文件
|
// 使用记录的文件
|
||||||
SwMedicineUsage medicineUsage = new SwMedicineUsage();
|
SwMedicineUsage medicineUsage = new SwMedicineUsage();
|
||||||
medicineUsage.setSwMedicineUsageDetailsList(treatment.getUsageDetails());
|
medicineUsage.setSwMedicineUsageDetailsList(treatment.getUsageDetails());
|
||||||
medicineUsage.setName("羊只治疗");
|
medicineUsage.setName("羊只治疗");
|
||||||
medicineUsage.setUseType("4");
|
medicineUsage.setUseType("4");
|
||||||
|
medicineUsage.setCreateBy(username);
|
||||||
|
medicineUsage.setCreateTime(DateUtils.getNowDate());
|
||||||
// 新增单挑数据
|
// 新增单挑数据
|
||||||
if (treatment.getSheepId()!=null){
|
if (treatment.getSheepId()!=null){
|
||||||
// 药品使用记录
|
// 药品使用记录
|
||||||
@ -129,13 +132,20 @@ public class TreatmentServiceImpl implements ITreatmentService
|
|||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
|
@Transactional
|
||||||
public int updateTreatment(Treatment treatment)
|
public int updateTreatment(Treatment treatment)
|
||||||
{
|
{
|
||||||
|
String username = SecurityUtils.getUsername();
|
||||||
for (SwMedicineUsageDetails usageDetail : treatment.getUsageDetails()) {
|
for (SwMedicineUsageDetails usageDetail : treatment.getUsageDetails()) {
|
||||||
usageDetail.setMediUsage(treatment.getUsageId());
|
usageDetail.setMediUsage(treatment.getUsageId());
|
||||||
}
|
}
|
||||||
medicineUsageMapper.deleteSwMedicineUsageDetailsByMediUsage(treatment.getUsageId());
|
medicineUsageMapper.deleteSwMedicineUsageDetailsByMediUsage(treatment.getUsageId());
|
||||||
|
SwMedicineUsage swMedicineUsage = new SwMedicineUsage();
|
||||||
|
swMedicineUsage.setId(treatment.getUsageId());
|
||||||
|
swMedicineUsage.setUpdateBy(username);
|
||||||
|
medicineUsageMapper.updateSwMedicineUsage(swMedicineUsage);
|
||||||
medicineUsageMapper.batchSwMedicineUsageDetails(treatment.getUsageDetails());
|
medicineUsageMapper.batchSwMedicineUsageDetails(treatment.getUsageDetails());
|
||||||
|
treatment.setUpdateBy(username);
|
||||||
treatment.setUpdateTime(DateUtils.getNowDate());
|
treatment.setUpdateTime(DateUtils.getNowDate());
|
||||||
return treatmentMapper.updateTreatment(treatment);
|
return treatmentMapper.updateTreatment(treatment);
|
||||||
}
|
}
|
||||||
|
@ -2,6 +2,9 @@ package com.zhyc.module.dairyProducts.domain;
|
|||||||
|
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
import com.zhyc.common.annotation.Excel;
|
import com.zhyc.common.annotation.Excel;
|
||||||
@ -13,6 +16,9 @@ import com.zhyc.common.core.domain.BaseEntity;
|
|||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
* @date 2025-07-18
|
* @date 2025-07-18
|
||||||
*/
|
*/
|
||||||
|
@Data
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
public class NpFreshMilkInsp extends BaseEntity
|
public class NpFreshMilkInsp extends BaseEntity
|
||||||
{
|
{
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
@ -81,187 +87,4 @@ public class NpFreshMilkInsp extends BaseEntity
|
|||||||
@Excel(name = "备注")
|
@Excel(name = "备注")
|
||||||
private String commnet;
|
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();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -344,6 +344,9 @@ package com.zhyc.module.dairyProducts.domain;
|
|||||||
|
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
import com.zhyc.common.annotation.Excel;
|
import com.zhyc.common.annotation.Excel;
|
||||||
@ -355,6 +358,9 @@ import com.zhyc.common.core.domain.BaseEntity;
|
|||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
* @date 2025-07-15
|
* @date 2025-07-15
|
||||||
*/
|
*/
|
||||||
|
@Data
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
public class NpRawMilkInspe extends BaseEntity
|
public class NpRawMilkInspe extends BaseEntity
|
||||||
{
|
{
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
@ -447,201 +453,4 @@ public class NpRawMilkInspe extends BaseEntity
|
|||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
private Date createTime;
|
private Date createTime;
|
||||||
|
|
||||||
// Getters and Setters
|
|
||||||
public void setId(Long id) {
|
|
||||||
this.id = id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getId() {
|
|
||||||
return id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setDatetime(Date datetime) {
|
|
||||||
this.datetime = datetime;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Date getDatetime() {
|
|
||||||
return datetime;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setSource(String source) {
|
|
||||||
this.source = source;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getSource() {
|
|
||||||
return source;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setFreeze(Double freeze) {
|
|
||||||
this.freeze = freeze;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Double getFreeze() {
|
|
||||||
return freeze;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setDensity(Double density) {
|
|
||||||
this.density = density;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Double getDensity() {
|
|
||||||
return density;
|
|
||||||
}
|
|
||||||
|
|
||||||
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 setDryMatter(Double dryMatter) {
|
|
||||||
this.dryMatter = dryMatter;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Double getDryMatter() {
|
|
||||||
return dryMatter;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setImpurityDegree(Double impurityDegree) {
|
|
||||||
this.impurityDegree = impurityDegree;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Double getImpurityDegree() {
|
|
||||||
return impurityDegree;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setLactose(Double lactose) {
|
|
||||||
this.lactose = lactose;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Double getLactose() {
|
|
||||||
return lactose;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setAshContent(Double ashContent) {
|
|
||||||
this.ashContent = ashContent;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Double getAshContent() {
|
|
||||||
return ashContent;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setAcidity(Double acidity) {
|
|
||||||
this.acidity = acidity;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Double getAcidity() {
|
|
||||||
return acidity;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setPh(Double ph) {
|
|
||||||
this.ph = ph;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Double getPh() {
|
|
||||||
return ph;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setBacterialColony(Double bacterialColony) {
|
|
||||||
this.bacterialColony = bacterialColony;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Double getBacterialColony() {
|
|
||||||
return bacterialColony;
|
|
||||||
}
|
|
||||||
|
|
||||||
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 setSomaticCell(Double somaticCell) {
|
|
||||||
this.somaticCell = somaticCell;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Double getSomaticCell() {
|
|
||||||
return somaticCell;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setUsea(Double usea) {
|
|
||||||
this.usea = usea;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Double getUsea() {
|
|
||||||
return usea;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setFatRatio(Double fatRatio) {
|
|
||||||
this.fatRatio = fatRatio;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Double getFatRatio() {
|
|
||||||
return fatRatio;
|
|
||||||
}
|
|
||||||
|
|
||||||
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("datetime", getDatetime())
|
|
||||||
.append("source", getSource())
|
|
||||||
.append("freeze", getFreeze())
|
|
||||||
.append("density", getDensity())
|
|
||||||
.append("fat", getFat())
|
|
||||||
.append("protein", getProtein())
|
|
||||||
.append("nonFat", getNonFat())
|
|
||||||
.append("dryMatter", getDryMatter())
|
|
||||||
.append("impurityDegree", getImpurityDegree())
|
|
||||||
.append("lactose", getLactose())
|
|
||||||
.append("ashContent", getAshContent())
|
|
||||||
.append("acidity", getAcidity())
|
|
||||||
.append("ph", getPh())
|
|
||||||
.append("bacterialColony", getBacterialColony())
|
|
||||||
.append("lactoferrin", getLactoferrin())
|
|
||||||
.append("ig", getIg())
|
|
||||||
.append("somaticCell", getSomaticCell())
|
|
||||||
.append("usea", getUsea())
|
|
||||||
.append("fatRatio", getFatRatio())
|
|
||||||
.append("comment", getComment())
|
|
||||||
.append("createBy", getCreateBy())
|
|
||||||
.append("createTime", getCreateTime())
|
|
||||||
.toString();
|
|
||||||
}
|
|
||||||
}
|
}
|
@ -2,6 +2,9 @@ package com.zhyc.module.dairyProducts.domain;
|
|||||||
|
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
import com.zhyc.common.annotation.Excel;
|
import com.zhyc.common.annotation.Excel;
|
||||||
@ -13,6 +16,9 @@ import com.zhyc.common.core.domain.BaseEntity;
|
|||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
* @date 2025-07-17
|
* @date 2025-07-17
|
||||||
*/
|
*/
|
||||||
|
@Data
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
public class NpYogurtInsp extends BaseEntity
|
public class NpYogurtInsp extends BaseEntity
|
||||||
{
|
{
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
@ -82,187 +88,4 @@ public class NpYogurtInsp extends BaseEntity
|
|||||||
@Excel(name = "备注")
|
@Excel(name = "备注")
|
||||||
private String comment;
|
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();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -2,11 +2,17 @@ package com.zhyc.module.dairyProducts.domain;
|
|||||||
|
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
import com.zhyc.common.annotation.Excel;
|
import com.zhyc.common.annotation.Excel;
|
||||||
import com.zhyc.common.core.domain.BaseEntity;
|
import com.zhyc.common.core.domain.BaseEntity;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
public class XzDryMatterCorrection extends BaseEntity {
|
public class XzDryMatterCorrection extends BaseEntity {
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
@ -28,29 +34,4 @@ public class XzDryMatterCorrection extends BaseEntity {
|
|||||||
@Excel(name = "干物质系数")
|
@Excel(name = "干物质系数")
|
||||||
private Double coefficient;
|
private Double coefficient;
|
||||||
|
|
||||||
// getters and setters...
|
|
||||||
public Long getId() { return id; }
|
|
||||||
public void setId(Long id) { this.id = id; }
|
|
||||||
public Date getDatetime() { return datetime; }
|
|
||||||
public void setDatetime(Date datetime) { this.datetime = datetime; }
|
|
||||||
public String getFactory() { return factory; }
|
|
||||||
public void setFactory(String factory) { this.factory = factory; }
|
|
||||||
public Double getContent() { return content; }
|
|
||||||
public void setContent(Double content) { this.content = content; }
|
|
||||||
public Double getStandard() { return standard; }
|
|
||||||
public void setStandard(Double standard) { this.standard = standard; }
|
|
||||||
public Double getCoefficient() { return coefficient; }
|
|
||||||
public void setCoefficient(Double coefficient) { this.coefficient = coefficient; }
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
|
|
||||||
.append("id", id)
|
|
||||||
.append("datetime", datetime)
|
|
||||||
.append("factory", factory)
|
|
||||||
.append("content", content)
|
|
||||||
.append("standard", standard)
|
|
||||||
.append("coefficient", coefficient)
|
|
||||||
.toString();
|
|
||||||
}
|
|
||||||
}
|
}
|
@ -1,5 +1,8 @@
|
|||||||
package com.zhyc.module.dairyProducts.domain;
|
package com.zhyc.module.dairyProducts.domain;
|
||||||
|
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
import com.zhyc.common.annotation.Excel;
|
import com.zhyc.common.annotation.Excel;
|
||||||
@ -11,6 +14,9 @@ import com.zhyc.common.core.domain.BaseEntity;
|
|||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
* @date 2025-07-14
|
* @date 2025-07-14
|
||||||
*/
|
*/
|
||||||
|
@Data
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
public class XzParityCorrection extends BaseEntity
|
public class XzParityCorrection extends BaseEntity
|
||||||
{
|
{
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
@ -26,42 +32,4 @@ public class XzParityCorrection extends BaseEntity
|
|||||||
@Excel(name = "系数")
|
@Excel(name = "系数")
|
||||||
private Double coef;
|
private Double coef;
|
||||||
|
|
||||||
public void setId(Long id)
|
|
||||||
{
|
|
||||||
this.id = id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getId()
|
|
||||||
{
|
|
||||||
return id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setParity(Integer parity)
|
|
||||||
{
|
|
||||||
this.parity = parity;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getParity()
|
|
||||||
{
|
|
||||||
return parity;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setCoef(Double coef)
|
|
||||||
{
|
|
||||||
this.coef = coef;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Double getCoef()
|
|
||||||
{
|
|
||||||
return coef;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
|
||||||
.append("id", getId())
|
|
||||||
.append("parity", getParity())
|
|
||||||
.append("coef", getCoef())
|
|
||||||
.toString();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -2,6 +2,9 @@ package com.zhyc.module.dairyProducts.domain;
|
|||||||
|
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
import com.zhyc.common.annotation.Excel;
|
import com.zhyc.common.annotation.Excel;
|
||||||
@ -13,6 +16,9 @@ import com.zhyc.common.core.domain.BaseEntity;
|
|||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
* @date 2025-07-12
|
* @date 2025-07-12
|
||||||
*/
|
*/
|
||||||
|
@Data
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
public class XzWegihCorrection extends BaseEntity
|
public class XzWegihCorrection extends BaseEntity
|
||||||
{
|
{
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
@ -41,73 +47,5 @@ public class XzWegihCorrection extends BaseEntity
|
|||||||
@Excel(name = "称重系数")
|
@Excel(name = "称重系数")
|
||||||
private Double coefficient;
|
private Double coefficient;
|
||||||
|
|
||||||
public void setId(Long id)
|
|
||||||
{
|
|
||||||
this.id = id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getId()
|
|
||||||
{
|
|
||||||
return id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setDatetime(Date datetime)
|
|
||||||
{
|
|
||||||
this.datetime = datetime;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Date getDatetime()
|
|
||||||
{
|
|
||||||
return datetime;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setFactory(String factory)
|
|
||||||
{
|
|
||||||
this.factory = factory;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getFactory()
|
|
||||||
{
|
|
||||||
return factory;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setActual(Double actual)
|
|
||||||
{
|
|
||||||
this.actual = actual;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Double getActual()
|
|
||||||
{
|
|
||||||
return actual;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setSystemMilk(Double systemMilk)
|
|
||||||
{
|
|
||||||
this.systemMilk = systemMilk;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Double getSystemMilk()
|
|
||||||
{
|
|
||||||
return systemMilk;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Double getCoefficient() {
|
|
||||||
return coefficient;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setCoefficient(Double coefficient) {
|
|
||||||
this.coefficient = coefficient;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
|
||||||
.append("id", getId())
|
|
||||||
.append("datetime", getDatetime())
|
|
||||||
.append("factory", getFactory())
|
|
||||||
.append("actual", getActual())
|
|
||||||
.append("systemMilk", getSystemMilk())
|
|
||||||
.append("coefficient", getCoefficient())
|
|
||||||
.toString();
|
|
||||||
}
|
|
||||||
}
|
}
|
@ -2,6 +2,7 @@ package com.zhyc.module.dairyProducts.mapper;
|
|||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import com.zhyc.module.dairyProducts.domain.NpFreshMilkInsp;
|
import com.zhyc.module.dairyProducts.domain.NpFreshMilkInsp;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 鲜奶生产,成品检验记录Mapper接口
|
* 鲜奶生产,成品检验记录Mapper接口
|
||||||
@ -9,6 +10,7 @@ import com.zhyc.module.dairyProducts.domain.NpFreshMilkInsp;
|
|||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
* @date 2025-07-18
|
* @date 2025-07-18
|
||||||
*/
|
*/
|
||||||
|
@Mapper
|
||||||
public interface NpFreshMilkInspMapper
|
public interface NpFreshMilkInspMapper
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
@ -2,6 +2,7 @@ package com.zhyc.module.dairyProducts.mapper;
|
|||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import com.zhyc.module.dairyProducts.domain.NpRawMilkInspe;
|
import com.zhyc.module.dairyProducts.domain.NpRawMilkInspe;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 生乳检验记录Mapper接口
|
* 生乳检验记录Mapper接口
|
||||||
@ -9,6 +10,7 @@ import com.zhyc.module.dairyProducts.domain.NpRawMilkInspe;
|
|||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
* @date 2025-07-15
|
* @date 2025-07-15
|
||||||
*/
|
*/
|
||||||
|
@Mapper
|
||||||
public interface NpRawMilkInspeMapper
|
public interface NpRawMilkInspeMapper
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
@ -3,6 +3,7 @@ package com.zhyc.module.dairyProducts.mapper;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import com.zhyc.module.dairyProducts.domain.NpYogurtInsp;
|
import com.zhyc.module.dairyProducts.domain.NpYogurtInsp;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 酸奶生产,成品检疫记录Mapper接口
|
* 酸奶生产,成品检疫记录Mapper接口
|
||||||
@ -10,6 +11,7 @@ import com.zhyc.module.dairyProducts.domain.NpYogurtInsp;
|
|||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
* @date 2025-07-17
|
* @date 2025-07-17
|
||||||
*/
|
*/
|
||||||
|
@Mapper
|
||||||
public interface NpYogurtInspMapper
|
public interface NpYogurtInspMapper
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
@ -2,6 +2,7 @@ package com.zhyc.module.dairyProducts.mapper;
|
|||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import com.zhyc.module.dairyProducts.domain.XzDryMatterCorrection;
|
import com.zhyc.module.dairyProducts.domain.XzDryMatterCorrection;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 干物质校正Mapper接口
|
* 干物质校正Mapper接口
|
||||||
@ -9,6 +10,7 @@ import com.zhyc.module.dairyProducts.domain.XzDryMatterCorrection;
|
|||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
* @date 2025-07-12
|
* @date 2025-07-12
|
||||||
*/
|
*/
|
||||||
|
@Mapper
|
||||||
public interface XzDryMatterCorrectionMapper
|
public interface XzDryMatterCorrectionMapper
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
@ -2,6 +2,7 @@ package com.zhyc.module.dairyProducts.mapper;
|
|||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import com.zhyc.module.dairyProducts.domain.XzParityCorrection;
|
import com.zhyc.module.dairyProducts.domain.XzParityCorrection;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 胎次校正Mapper接口
|
* 胎次校正Mapper接口
|
||||||
@ -9,6 +10,7 @@ import com.zhyc.module.dairyProducts.domain.XzParityCorrection;
|
|||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
* @date 2025-07-14
|
* @date 2025-07-14
|
||||||
*/
|
*/
|
||||||
|
@Mapper
|
||||||
public interface XzParityCorrectionMapper
|
public interface XzParityCorrectionMapper
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
@ -2,6 +2,7 @@ package com.zhyc.module.dairyProducts.mapper;
|
|||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import com.zhyc.module.dairyProducts.domain.XzWegihCorrection;
|
import com.zhyc.module.dairyProducts.domain.XzWegihCorrection;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 称重校正Mapper接口
|
* 称重校正Mapper接口
|
||||||
@ -9,6 +10,7 @@ import com.zhyc.module.dairyProducts.domain.XzWegihCorrection;
|
|||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
* @date 2025-07-12
|
* @date 2025-07-12
|
||||||
*/
|
*/
|
||||||
|
@Mapper
|
||||||
public interface XzWegihCorrectionMapper
|
public interface XzWegihCorrectionMapper
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
@ -0,0 +1,137 @@
|
|||||||
|
package com.zhyc.module.produce.breed.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.common.utils.StringUtils;
|
||||||
|
import com.zhyc.module.produce.breed.domain.RawSpermRecord;
|
||||||
|
import com.zhyc.module.produce.breed.service.IRawSpermRecordService;
|
||||||
|
import com.zhyc.common.utils.poi.ExcelUtil;
|
||||||
|
import com.zhyc.common.core.page.TableDataInfo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 采精记录Controller
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2025-07-23
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/Sperm/Sperm")
|
||||||
|
public class RawSpermRecordController extends BaseController
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private IRawSpermRecordService rawSpermRecordService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询采精记录列表
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('Sperm:Sperm:list')")
|
||||||
|
@GetMapping("/list")
|
||||||
|
public TableDataInfo list(RawSpermRecord rawSpermRecord)
|
||||||
|
{
|
||||||
|
startPage();
|
||||||
|
List<RawSpermRecord> list = rawSpermRecordService.selectRawSpermRecordList(rawSpermRecord);
|
||||||
|
return getDataTable(list);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出采精记录列表
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('Sperm:Sperm:export')")
|
||||||
|
@Log(title = "采精记录", businessType = BusinessType.EXPORT)
|
||||||
|
@PostMapping("/export")
|
||||||
|
public void export(HttpServletResponse response, RawSpermRecord rawSpermRecord)
|
||||||
|
{
|
||||||
|
List<RawSpermRecord> list = rawSpermRecordService.selectRawSpermRecordList(rawSpermRecord);
|
||||||
|
ExcelUtil<RawSpermRecord> util = new ExcelUtil<RawSpermRecord>(RawSpermRecord.class);
|
||||||
|
util.exportExcel(response, list, "采精记录数据");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取采精记录详细信息
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('Sperm:Sperm:query')")
|
||||||
|
@GetMapping(value = "/{id}")
|
||||||
|
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||||
|
{
|
||||||
|
return success(rawSpermRecordService.selectRawSpermRecordById(id));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增采精记录
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('Sperm:Sperm:add')")
|
||||||
|
@Log(title = "采精记录", businessType = BusinessType.INSERT)
|
||||||
|
@PostMapping
|
||||||
|
public AjaxResult add(@RequestBody RawSpermRecord rawSpermRecord)
|
||||||
|
{
|
||||||
|
// 如果传入的是耳号,需要先根据耳号查询羊只ID
|
||||||
|
if (StringUtils.isNotEmpty(rawSpermRecord.getManageTags()) && rawSpermRecord.getSheepId() == null) {
|
||||||
|
Long sheepId = rawSpermRecordService.getSheepIdByManageTags(rawSpermRecord.getManageTags());
|
||||||
|
if (sheepId == null) {
|
||||||
|
return error("未找到对应耳号的羊只信息");
|
||||||
|
}
|
||||||
|
rawSpermRecord.setSheepId(sheepId);
|
||||||
|
}
|
||||||
|
|
||||||
|
return toAjax(rawSpermRecordService.insertRawSpermRecord(rawSpermRecord));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改采精记录
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('Sperm:Sperm:edit')")
|
||||||
|
@Log(title = "采精记录", businessType = BusinessType.UPDATE)
|
||||||
|
@PutMapping
|
||||||
|
public AjaxResult edit(@RequestBody RawSpermRecord rawSpermRecord)
|
||||||
|
{
|
||||||
|
// 如果传入的是耳号,需要先根据耳号查询羊只ID
|
||||||
|
if (StringUtils.isNotEmpty(rawSpermRecord.getManageTags()) && rawSpermRecord.getSheepId() == null) {
|
||||||
|
Long sheepId = rawSpermRecordService.getSheepIdByManageTags(rawSpermRecord.getManageTags());
|
||||||
|
if (sheepId == null) {
|
||||||
|
return error("未找到对应耳号的羊只信息");
|
||||||
|
}
|
||||||
|
rawSpermRecord.setSheepId(sheepId);
|
||||||
|
}
|
||||||
|
|
||||||
|
return toAjax(rawSpermRecordService.updateRawSpermRecord(rawSpermRecord));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除采精记录
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('Sperm:Sperm:remove')")
|
||||||
|
@Log(title = "采精记录", businessType = BusinessType.DELETE)
|
||||||
|
@DeleteMapping("/{ids}")
|
||||||
|
public AjaxResult remove(@PathVariable Long[] ids)
|
||||||
|
{
|
||||||
|
return toAjax(rawSpermRecordService.deleteRawSpermRecordByIds(ids));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据耳号查询羊只信息
|
||||||
|
*/
|
||||||
|
@GetMapping("/getSheepByManageTags/{manageTags}")
|
||||||
|
public AjaxResult getSheepByManageTags(@PathVariable("manageTags") String manageTags)
|
||||||
|
{
|
||||||
|
Long sheepId = rawSpermRecordService.getSheepIdByManageTags(manageTags);
|
||||||
|
if (sheepId != null) {
|
||||||
|
return success(sheepId);
|
||||||
|
} else {
|
||||||
|
return error("未找到对应耳号的羊只信息");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,158 @@
|
|||||||
|
package com.zhyc.module.produce.breed.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.produce.breed.domain.ScBreedRecord;
|
||||||
|
import com.zhyc.module.produce.breed.service.IScBreedRecordService;
|
||||||
|
import com.zhyc.common.utils.poi.ExcelUtil;
|
||||||
|
import com.zhyc.common.core.page.TableDataInfo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 配种记录Controller
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2025-07-23
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/Breeding_records/Breeding_records")
|
||||||
|
public class ScBreedRecordController extends BaseController
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private IScBreedRecordService scBreedRecordService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询配种记录列表
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('Breeding_records:Breeding_records:list')")
|
||||||
|
@GetMapping("/list")
|
||||||
|
public TableDataInfo list(ScBreedRecord scBreedRecord)
|
||||||
|
{
|
||||||
|
startPage();
|
||||||
|
List<ScBreedRecord> list = scBreedRecordService.selectScBreedRecordList(scBreedRecord);
|
||||||
|
return getDataTable(list);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出配种记录列表
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('Breeding_records:Breeding_records:export')")
|
||||||
|
@Log(title = "配种记录", businessType = BusinessType.EXPORT)
|
||||||
|
@PostMapping("/export")
|
||||||
|
public void export(HttpServletResponse response, ScBreedRecord scBreedRecord)
|
||||||
|
{
|
||||||
|
List<ScBreedRecord> list = scBreedRecordService.selectScBreedRecordList(scBreedRecord);
|
||||||
|
ExcelUtil<ScBreedRecord> util = new ExcelUtil<ScBreedRecord>(ScBreedRecord.class);
|
||||||
|
util.exportExcel(response, list, "配种记录数据");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取配种记录详细信息
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('Breeding_records:Breeding_records:query')")
|
||||||
|
@GetMapping(value = "/{id}")
|
||||||
|
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||||
|
{
|
||||||
|
return success(scBreedRecordService.selectScBreedRecordById(id));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据耳号查询羊只信息
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('Breeding_records:Breeding_records:query')")
|
||||||
|
@GetMapping(value = "/getSheepByTags/{manageTags}")
|
||||||
|
public AjaxResult getSheepInfoByTags(@PathVariable("manageTags") String manageTags)
|
||||||
|
{
|
||||||
|
return success(scBreedRecordService.getSheepInfoByTags(manageTags));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据母羊耳号获取配种计划信息
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('Breeding_records:Breeding_records:query')")
|
||||||
|
@GetMapping(value = "/getBreedPlan/{manageTags}")
|
||||||
|
public AjaxResult getBreedPlanByEweTags(@PathVariable("manageTags") String manageTags)
|
||||||
|
{
|
||||||
|
return success(scBreedRecordService.getBreedPlanByEweTags(manageTags));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增配种记录
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('Breeding_records:Breeding_records:add')")
|
||||||
|
@Log(title = "配种记录", businessType = BusinessType.INSERT)
|
||||||
|
@PostMapping
|
||||||
|
public AjaxResult add(@RequestBody ScBreedRecord scBreedRecord)
|
||||||
|
{
|
||||||
|
// 如果传入的是耳号,需要转换为羊只ID
|
||||||
|
if (scBreedRecord.getEweManageTags() != null && !scBreedRecord.getEweManageTags().isEmpty()) {
|
||||||
|
Long eweId = scBreedRecordService.getSheepIdByTags(scBreedRecord.getEweManageTags());
|
||||||
|
if (eweId == null) {
|
||||||
|
return error("未找到母羊耳号对应的羊只信息");
|
||||||
|
}
|
||||||
|
scBreedRecord.setEweId(eweId.toString());
|
||||||
|
}
|
||||||
|
|
||||||
|
if (scBreedRecord.getRamManageTags() != null && !scBreedRecord.getRamManageTags().isEmpty()) {
|
||||||
|
Long ramId = scBreedRecordService.getRamIdByTags(scBreedRecord.getRamManageTags());
|
||||||
|
if (ramId == null) {
|
||||||
|
return error("未找到公羊耳号对应的羊只信息");
|
||||||
|
}
|
||||||
|
scBreedRecord.setRamId(ramId.toString());
|
||||||
|
}
|
||||||
|
|
||||||
|
return toAjax(scBreedRecordService.insertScBreedRecord(scBreedRecord));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改配种记录
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('Breeding_records:Breeding_records:edit')")
|
||||||
|
@Log(title = "配种记录", businessType = BusinessType.UPDATE)
|
||||||
|
@PutMapping
|
||||||
|
public AjaxResult edit(@RequestBody ScBreedRecord scBreedRecord)
|
||||||
|
{
|
||||||
|
// 如果传入的是耳号,需要转换为羊只ID
|
||||||
|
if (scBreedRecord.getEweManageTags() != null && !scBreedRecord.getEweManageTags().isEmpty()) {
|
||||||
|
Long eweId = scBreedRecordService.getSheepIdByTags(scBreedRecord.getEweManageTags());
|
||||||
|
if (eweId == null) {
|
||||||
|
return error("未找到母羊耳号对应的羊只信息");
|
||||||
|
}
|
||||||
|
scBreedRecord.setEweId(eweId.toString());
|
||||||
|
}
|
||||||
|
|
||||||
|
if (scBreedRecord.getRamManageTags() != null && !scBreedRecord.getRamManageTags().isEmpty()) {
|
||||||
|
Long ramId = scBreedRecordService.getRamIdByTags(scBreedRecord.getRamManageTags());
|
||||||
|
if (ramId == null) {
|
||||||
|
return error("未找到公羊耳号对应的羊只信息");
|
||||||
|
}
|
||||||
|
scBreedRecord.setRamId(ramId.toString());
|
||||||
|
}
|
||||||
|
|
||||||
|
return toAjax(scBreedRecordService.updateScBreedRecord(scBreedRecord));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除配种记录
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('Breeding_records:Breeding_records:remove')")
|
||||||
|
@Log(title = "配种记录", businessType = BusinessType.DELETE)
|
||||||
|
@DeleteMapping("/{ids}")
|
||||||
|
public AjaxResult remove(@PathVariable Long[] ids)
|
||||||
|
{
|
||||||
|
return toAjax(scBreedRecordService.deleteScBreedRecordByIds(ids));
|
||||||
|
}
|
||||||
|
}
|
@ -1,10 +1,8 @@
|
|||||||
package com.zhyc.module.produce.breed.controller;
|
package com.zhyc.module.produce.breed.controller;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
import javax.servlet.http.HttpServletResponse;
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
|
||||||
import com.zhyc.module.produce.breed.domain.ScPregnancyRecord;
|
|
||||||
import com.zhyc.module.produce.breed.service.IScPregnancyRecordService;
|
|
||||||
import org.springframework.security.access.prepost.PreAuthorize;
|
import org.springframework.security.access.prepost.PreAuthorize;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
@ -14,20 +12,22 @@ import org.springframework.web.bind.annotation.DeleteMapping;
|
|||||||
import org.springframework.web.bind.annotation.PathVariable;
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
import org.springframework.web.bind.annotation.RequestBody;
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
import com.zhyc.common.annotation.Log;
|
import com.zhyc.common.annotation.Log;
|
||||||
import com.zhyc.common.core.controller.BaseController;
|
import com.zhyc.common.core.controller.BaseController;
|
||||||
import com.zhyc.common.core.domain.AjaxResult;
|
import com.zhyc.common.core.domain.AjaxResult;
|
||||||
import com.zhyc.common.enums.BusinessType;
|
import com.zhyc.common.enums.BusinessType;
|
||||||
|
import com.zhyc.module.produce.breed.domain.ScPregnancyRecord;
|
||||||
|
import com.zhyc.module.produce.breed.service.IScPregnancyRecordService;
|
||||||
import com.zhyc.common.utils.poi.ExcelUtil;
|
import com.zhyc.common.utils.poi.ExcelUtil;
|
||||||
import com.zhyc.common.core.page.TableDataInfo;
|
import com.zhyc.common.core.page.TableDataInfo;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 孕检记录Controller
|
* 孕检记录Controller
|
||||||
*
|
*
|
||||||
* @author ruoyi
|
* @author zhyc
|
||||||
* @date 2025-07-17
|
* @date 2025-01-21
|
||||||
*/
|
*/
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/Pregnancy_Test/Pregnancy_Test")
|
@RequestMapping("/Pregnancy_Test/Pregnancy_Test")
|
||||||
@ -103,4 +103,14 @@ public class ScPregnancyRecordController extends BaseController
|
|||||||
{
|
{
|
||||||
return toAjax(scPregnancyRecordService.deleteScPregnancyRecordByIds(ids));
|
return toAjax(scPregnancyRecordService.deleteScPregnancyRecordByIds(ids));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据耳号获取羊只信息
|
||||||
|
*/
|
||||||
|
@GetMapping("/getSheepByManageTags")
|
||||||
|
public AjaxResult getSheepByManageTags(@RequestParam("manageTags") String manageTags)
|
||||||
|
{
|
||||||
|
Map<String, Object> sheepInfo = scPregnancyRecordService.getSheepByManageTags(manageTags);
|
||||||
|
return success(sheepInfo);
|
||||||
|
}
|
||||||
}
|
}
|
@ -0,0 +1,83 @@
|
|||||||
|
package com.zhyc.module.produce.breed.domain;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
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;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 采精记录对象 raw_sperm_record
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2025-07-23
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
|
public class RawSpermRecord extends BaseEntity
|
||||||
|
{
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/** 主键ID */
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/** 羊只ID */
|
||||||
|
@Excel(name = "羊只ID")
|
||||||
|
private Long sheepId;
|
||||||
|
|
||||||
|
/** 耳号 */
|
||||||
|
@Excel(name = "耳号")
|
||||||
|
private String manageTags;
|
||||||
|
|
||||||
|
/** 电子耳号 */
|
||||||
|
@Excel(name = "电子耳号")
|
||||||
|
private String electronicTags;
|
||||||
|
|
||||||
|
/** 月龄 */
|
||||||
|
@Excel(name = "月龄")
|
||||||
|
private Long monthAge;
|
||||||
|
|
||||||
|
/** 采精日期 */
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
@Excel(name = "采精日期", width = 30, dateFormat = "yyyy-MM-dd")
|
||||||
|
private Date pickDate;
|
||||||
|
|
||||||
|
/** 采精量 */
|
||||||
|
@Excel(name = "采精量")
|
||||||
|
private Long amount;
|
||||||
|
|
||||||
|
/** 精液密度 */
|
||||||
|
@Excel(name = "精液密度")
|
||||||
|
private String density;
|
||||||
|
|
||||||
|
/** 精液活力 */
|
||||||
|
@Excel(name = "精液活力")
|
||||||
|
private String vitallity;
|
||||||
|
|
||||||
|
/** 是否性控(0否1是) */
|
||||||
|
@Excel(name = "是否性控", readConverterExp = "0=否,1=是")
|
||||||
|
private Long controlled;
|
||||||
|
|
||||||
|
/** 性欲情况 */
|
||||||
|
@Excel(name = "性欲情况")
|
||||||
|
private String sexualStatus;
|
||||||
|
|
||||||
|
/** 诊疗信息 */
|
||||||
|
@Excel(name = "诊疗信息")
|
||||||
|
private String info;
|
||||||
|
|
||||||
|
/** 技术员 */
|
||||||
|
@Excel(name = "技术员")
|
||||||
|
private String technician;
|
||||||
|
|
||||||
|
/** 采集备注 */
|
||||||
|
@Excel(name = "采集备注")
|
||||||
|
private String comment;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
@ -1,5 +1,8 @@
|
|||||||
package com.zhyc.module.produce.breed.domain;
|
package com.zhyc.module.produce.breed.domain;
|
||||||
|
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
import com.zhyc.common.annotation.Excel;
|
import com.zhyc.common.annotation.Excel;
|
||||||
@ -11,6 +14,9 @@ import com.zhyc.common.core.domain.BaseEntity;
|
|||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
* @date 2025-07-16
|
* @date 2025-07-16
|
||||||
*/
|
*/
|
||||||
|
@Data
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
public class ScBreedPlan extends BaseEntity
|
public class ScBreedPlan extends BaseEntity
|
||||||
{
|
{
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
@ -30,53 +36,4 @@ public class ScBreedPlan extends BaseEntity
|
|||||||
@Excel(name = "配种类型")
|
@Excel(name = "配种类型")
|
||||||
private Long breedType;
|
private Long breedType;
|
||||||
|
|
||||||
public void setId(Long id)
|
|
||||||
{
|
|
||||||
this.id = id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getId()
|
|
||||||
{
|
|
||||||
return id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setRamId(String ramId)
|
|
||||||
{
|
|
||||||
this.ramId = ramId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getRamId()
|
|
||||||
{
|
|
||||||
return ramId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setEweId(String eweId)
|
|
||||||
{
|
|
||||||
this.eweId = eweId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getEweId()
|
|
||||||
{
|
|
||||||
return eweId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setBreedType(Long breedType)
|
|
||||||
{
|
|
||||||
this.breedType = breedType;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getBreedType()
|
|
||||||
{
|
|
||||||
return breedType;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
|
||||||
.append("id", getId())
|
|
||||||
.append("ramId", getRamId())
|
|
||||||
.append("eweId", getEweId())
|
|
||||||
.append("breedType", getBreedType())
|
|
||||||
.toString();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -2,6 +2,9 @@ package com.zhyc.module.produce.breed.domain;
|
|||||||
|
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
import com.zhyc.common.annotation.Excel;
|
import com.zhyc.common.annotation.Excel;
|
||||||
@ -13,6 +16,9 @@ import com.zhyc.common.core.domain.BaseEntity;
|
|||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
* @date 2025-07-16
|
* @date 2025-07-16
|
||||||
*/
|
*/
|
||||||
|
@Data
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
public class ScBreedPlanGenerate extends BaseEntity
|
public class ScBreedPlanGenerate extends BaseEntity
|
||||||
{
|
{
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
@ -61,134 +67,4 @@ public class ScBreedPlanGenerate extends BaseEntity
|
|||||||
/** 审批意见 */
|
/** 审批意见 */
|
||||||
private String approveRemark;
|
private String approveRemark;
|
||||||
|
|
||||||
public void setId(Long id)
|
|
||||||
{
|
|
||||||
this.id = id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getId()
|
|
||||||
{
|
|
||||||
return id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setPlanName(String planName)
|
|
||||||
{
|
|
||||||
this.planName = planName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getPlanName()
|
|
||||||
{
|
|
||||||
return planName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setPlanType(Integer planType)
|
|
||||||
{
|
|
||||||
this.planType = planType;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getPlanType()
|
|
||||||
{
|
|
||||||
return planType;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setPlanDate(Date planDate)
|
|
||||||
{
|
|
||||||
this.planDate = planDate;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Date getPlanDate()
|
|
||||||
{
|
|
||||||
return planDate;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setTotalEweCount(Integer totalEweCount)
|
|
||||||
{
|
|
||||||
this.totalEweCount = totalEweCount;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getTotalEweCount()
|
|
||||||
{
|
|
||||||
return totalEweCount;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setTotalRamCount(Integer totalRamCount)
|
|
||||||
{
|
|
||||||
this.totalRamCount = totalRamCount;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getTotalRamCount()
|
|
||||||
{
|
|
||||||
return totalRamCount;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setBreedRatio(String breedRatio)
|
|
||||||
{
|
|
||||||
this.breedRatio = breedRatio;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getBreedRatio()
|
|
||||||
{
|
|
||||||
return breedRatio;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setStatus(Integer status)
|
|
||||||
{
|
|
||||||
this.status = status;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getStatus()
|
|
||||||
{
|
|
||||||
return status;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setApprover(String approver)
|
|
||||||
{
|
|
||||||
this.approver = approver;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getApprover()
|
|
||||||
{
|
|
||||||
return approver;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setApproveTime(Date approveTime)
|
|
||||||
{
|
|
||||||
this.approveTime = approveTime;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Date getApproveTime()
|
|
||||||
{
|
|
||||||
return approveTime;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setApproveRemark(String approveRemark)
|
|
||||||
{
|
|
||||||
this.approveRemark = approveRemark;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getApproveRemark()
|
|
||||||
{
|
|
||||||
return approveRemark;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
|
||||||
.append("id", getId())
|
|
||||||
.append("planName", getPlanName())
|
|
||||||
.append("planType", getPlanType())
|
|
||||||
.append("planDate", getPlanDate())
|
|
||||||
.append("totalEweCount", getTotalEweCount())
|
|
||||||
.append("totalRamCount", getTotalRamCount())
|
|
||||||
.append("breedRatio", getBreedRatio())
|
|
||||||
.append("status", getStatus())
|
|
||||||
.append("approver", getApprover())
|
|
||||||
.append("approveTime", getApproveTime())
|
|
||||||
.append("approveRemark", getApproveRemark())
|
|
||||||
.append("createBy", getCreateBy())
|
|
||||||
.append("createTime", getCreateTime())
|
|
||||||
.append("updateBy", getUpdateBy())
|
|
||||||
.append("updateTime", getUpdateTime())
|
|
||||||
.toString();
|
|
||||||
}
|
|
||||||
}
|
}
|
@ -1,5 +1,8 @@
|
|||||||
package com.zhyc.module.produce.breed.domain;
|
package com.zhyc.module.produce.breed.domain;
|
||||||
|
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
import com.zhyc.common.annotation.Excel;
|
import com.zhyc.common.annotation.Excel;
|
||||||
@ -11,6 +14,9 @@ import com.zhyc.common.core.domain.BaseEntity;
|
|||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
* @date 2025-07-16
|
* @date 2025-07-16
|
||||||
*/
|
*/
|
||||||
|
@Data
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
public class ScBreedPlanTemp extends BaseEntity
|
public class ScBreedPlanTemp extends BaseEntity
|
||||||
{
|
{
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
@ -63,110 +69,5 @@ public class ScBreedPlanTemp extends BaseEntity
|
|||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setPlanGenerateId(Long planGenerateId)
|
|
||||||
{
|
|
||||||
this.planGenerateId = planGenerateId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getPlanGenerateId()
|
|
||||||
{
|
|
||||||
return planGenerateId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setRamId(String ramId)
|
|
||||||
{
|
|
||||||
this.ramId = ramId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getRamId()
|
|
||||||
{
|
|
||||||
return ramId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setEweId(String eweId)
|
|
||||||
{
|
|
||||||
this.eweId = eweId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getEweId()
|
|
||||||
{
|
|
||||||
return eweId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setBreedType(Long breedType)
|
|
||||||
{
|
|
||||||
this.breedType = breedType;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getBreedType()
|
|
||||||
{
|
|
||||||
return breedType;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setRamManageTags(String ramManageTags)
|
|
||||||
{
|
|
||||||
this.ramManageTags = ramManageTags;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getRamManageTags()
|
|
||||||
{
|
|
||||||
return ramManageTags;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setRamVariety(String ramVariety)
|
|
||||||
{
|
|
||||||
this.ramVariety = ramVariety;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getRamVariety()
|
|
||||||
{
|
|
||||||
return ramVariety;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setEweManageTags(String eweManageTags)
|
|
||||||
{
|
|
||||||
this.eweManageTags = eweManageTags;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getEweManageTags()
|
|
||||||
{
|
|
||||||
return eweManageTags;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setEweVariety(String eweVariety)
|
|
||||||
{
|
|
||||||
this.eweVariety = eweVariety;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getEweVariety()
|
|
||||||
{
|
|
||||||
return eweVariety;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setEweWeight(Double eweWeight)
|
|
||||||
{
|
|
||||||
this.eweWeight = eweWeight;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Double getEweWeight()
|
|
||||||
{
|
|
||||||
return eweWeight;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
|
||||||
.append("id", getId())
|
|
||||||
.append("planGenerateId", getPlanGenerateId())
|
|
||||||
.append("ramId", getRamId())
|
|
||||||
.append("eweId", getEweId())
|
|
||||||
.append("breedType", getBreedType())
|
|
||||||
.append("ramManageTags", getRamManageTags())
|
|
||||||
.append("ramVariety", getRamVariety())
|
|
||||||
.append("eweManageTags", getEweManageTags())
|
|
||||||
.append("eweVariety", getEweVariety())
|
|
||||||
.append("eweWeight", getEweWeight())
|
|
||||||
.append("createTime", getCreateTime())
|
|
||||||
.toString();
|
|
||||||
}
|
|
||||||
}
|
}
|
@ -0,0 +1,116 @@
|
|||||||
|
package com.zhyc.module.produce.breed.domain;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
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;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 配种记录对象 sc_breed_record
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2025-07-23
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
|
public class ScBreedRecord extends BaseEntity
|
||||||
|
{
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/** 主键ID */
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/** 羊只id */
|
||||||
|
@Excel(name = "羊只id")
|
||||||
|
private Long sheepId;
|
||||||
|
|
||||||
|
/** 配种公羊id */
|
||||||
|
@Excel(name = "配种公羊id")
|
||||||
|
private String ramId;
|
||||||
|
|
||||||
|
/** 配种母羊id */
|
||||||
|
@Excel(name = "配种母羊id")
|
||||||
|
private String eweId;
|
||||||
|
|
||||||
|
/** 技术员 */
|
||||||
|
@Excel(name = "技术员")
|
||||||
|
private String technician;
|
||||||
|
|
||||||
|
/** 繁殖用药/耗精量 */
|
||||||
|
@Excel(name = "耗精量")
|
||||||
|
private String breedDrugs;
|
||||||
|
|
||||||
|
// ============ 显示字段 ============
|
||||||
|
|
||||||
|
/** 母羊耳号 */
|
||||||
|
@Excel(name = "耳号")
|
||||||
|
private String eweManageTags;
|
||||||
|
|
||||||
|
/** 母羊品种 */
|
||||||
|
@Excel(name = "品种")
|
||||||
|
private String eweVariety;
|
||||||
|
|
||||||
|
/** 公羊耳号 */
|
||||||
|
@Excel(name = "配种公羊")
|
||||||
|
private String ramManageTags;
|
||||||
|
|
||||||
|
/** 公羊品种 */
|
||||||
|
@Excel(name = "配种公羊品种")
|
||||||
|
private String ramVariety;
|
||||||
|
|
||||||
|
/** 胎次 */
|
||||||
|
@Excel(name = "胎次")
|
||||||
|
private Integer eweParity;
|
||||||
|
|
||||||
|
/** 月龄 */
|
||||||
|
@Excel(name = "月龄")
|
||||||
|
private Integer eweMonthAge;
|
||||||
|
|
||||||
|
/** 羊舍名称 */
|
||||||
|
@Excel(name = "当前羊舍")
|
||||||
|
private String eweSheepfoldName;
|
||||||
|
|
||||||
|
/** 繁育状态 */
|
||||||
|
@Excel(name = "繁育状态")
|
||||||
|
private String eweBreedStatus;
|
||||||
|
|
||||||
|
/** 是否性控 */
|
||||||
|
@Excel(name = "是否性控", readConverterExp = "0=否,1=是")
|
||||||
|
private Integer eweControlled;
|
||||||
|
|
||||||
|
/** 羊只备注 */
|
||||||
|
@Excel(name = "羊只备注")
|
||||||
|
private String eweComment;
|
||||||
|
|
||||||
|
/** 牧场名称 */
|
||||||
|
@Excel(name = "所在牧场")
|
||||||
|
private String ranchName;
|
||||||
|
|
||||||
|
/** 配种方式 */
|
||||||
|
@Excel(name = "配种方式")
|
||||||
|
private String matingType;
|
||||||
|
|
||||||
|
/** 羊只类别 */
|
||||||
|
@Excel(name = "配种时羊只类别")
|
||||||
|
private String sheepType;
|
||||||
|
|
||||||
|
/** 配次 */
|
||||||
|
@Excel(name = "配次")
|
||||||
|
private Integer matingCount;
|
||||||
|
|
||||||
|
/** 发情后配种时间 */
|
||||||
|
@Excel(name = "发情后配种时间(小时)")
|
||||||
|
private Long timeSincePlanning;
|
||||||
|
|
||||||
|
/** 牧场ID */
|
||||||
|
private Long ranchId;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
@ -2,6 +2,9 @@ package com.zhyc.module.produce.breed.domain;
|
|||||||
|
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
import com.zhyc.common.annotation.Excel;
|
import com.zhyc.common.annotation.Excel;
|
||||||
@ -13,6 +16,9 @@ import com.zhyc.common.core.domain.BaseEntity;
|
|||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
* @date 2025-07-15
|
* @date 2025-07-15
|
||||||
*/
|
*/
|
||||||
|
@Data
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
public class ScDryMilk extends BaseEntity
|
public class ScDryMilk extends BaseEntity
|
||||||
{
|
{
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
@ -63,127 +69,5 @@ public class ScDryMilk extends BaseEntity
|
|||||||
@Excel(name = "事件类型")
|
@Excel(name = "事件类型")
|
||||||
private String eventType;
|
private String eventType;
|
||||||
|
|
||||||
public void setId(Long id)
|
|
||||||
{
|
|
||||||
this.id = id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getId()
|
|
||||||
{
|
|
||||||
return id;
|
|
||||||
}
|
|
||||||
public void setSheepId(String sheepId)
|
|
||||||
{
|
|
||||||
this.sheepId = sheepId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getSheepId()
|
|
||||||
{
|
|
||||||
return sheepId;
|
|
||||||
}
|
|
||||||
public void setDatetime(Date datetime)
|
|
||||||
{
|
|
||||||
this.datetime = datetime;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Date getDatetime()
|
|
||||||
{
|
|
||||||
return datetime;
|
|
||||||
}
|
|
||||||
public void setStatus(Long status)
|
|
||||||
{
|
|
||||||
this.status = status;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getStatus()
|
|
||||||
{
|
|
||||||
return status;
|
|
||||||
}
|
|
||||||
public void setSheepfold(Long sheepfold)
|
|
||||||
{
|
|
||||||
this.sheepfold = sheepfold;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getSheepfold()
|
|
||||||
{
|
|
||||||
return sheepfold;
|
|
||||||
}
|
|
||||||
public void setTecahnician(String tecahnician)
|
|
||||||
{
|
|
||||||
this.tecahnician = tecahnician;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getTecahnician()
|
|
||||||
{
|
|
||||||
return tecahnician;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setComment(String comment)
|
|
||||||
{
|
|
||||||
this.comment = comment;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getComment()
|
|
||||||
{
|
|
||||||
return comment;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setManageTags(String manageTags)
|
|
||||||
{
|
|
||||||
this.manageTags = manageTags;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getManageTags()
|
|
||||||
{
|
|
||||||
return manageTags;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setVariety(String variety)
|
|
||||||
{
|
|
||||||
this.variety = variety;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getVariety()
|
|
||||||
{
|
|
||||||
return variety;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setSheepfoldName(String sheepfoldName)
|
|
||||||
{
|
|
||||||
this.sheepfoldName = sheepfoldName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getSheepfoldName()
|
|
||||||
{
|
|
||||||
return sheepfoldName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setEventType(String eventType)
|
|
||||||
{
|
|
||||||
this.eventType = eventType;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getEventType()
|
|
||||||
{
|
|
||||||
return eventType;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
|
||||||
.append("id", getId())
|
|
||||||
.append("sheepId", getSheepId())
|
|
||||||
.append("datetime", getDatetime())
|
|
||||||
.append("status", getStatus())
|
|
||||||
.append("sheepfold", getSheepfold())
|
|
||||||
.append("tecahnician", getTecahnician())
|
|
||||||
.append("comment", getComment())
|
|
||||||
.append("manageTags", getManageTags())
|
|
||||||
.append("variety", getVariety())
|
|
||||||
.append("sheepfoldName", getSheepfoldName())
|
|
||||||
.append("eventType", getEventType())
|
|
||||||
.append("createBy", getCreateBy())
|
|
||||||
.append("createTime", getCreateTime())
|
|
||||||
.toString();
|
|
||||||
}
|
|
||||||
}
|
}
|
@ -5,6 +5,9 @@ import java.util.Date;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
import com.zhyc.common.annotation.Excel;
|
import com.zhyc.common.annotation.Excel;
|
||||||
@ -16,6 +19,9 @@ import com.zhyc.common.core.domain.BaseEntity;
|
|||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
* @date 2025-07-11
|
* @date 2025-07-11
|
||||||
*/
|
*/
|
||||||
|
@Data
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
public class ScLambDetail extends BaseEntity
|
public class ScLambDetail extends BaseEntity
|
||||||
{
|
{
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
@ -84,159 +90,5 @@ public class ScLambDetail extends BaseEntity
|
|||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setLambingRecordId(Long lambingRecordId)
|
|
||||||
{
|
|
||||||
this.lambingRecordId = lambingRecordId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getLambingRecordId()
|
|
||||||
{
|
|
||||||
return lambingRecordId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setLambEarNumber(String lambEarNumber)
|
|
||||||
{
|
|
||||||
this.lambEarNumber = lambEarNumber;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getLambEarNumber()
|
|
||||||
{
|
|
||||||
return lambEarNumber;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setLambBreed(Integer lambBreed) // 改为Integer类型
|
|
||||||
{
|
|
||||||
this.lambBreed = lambBreed;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getLambBreed() // 改为Integer类型
|
|
||||||
{
|
|
||||||
return lambBreed;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setGender(Integer gender)
|
|
||||||
{
|
|
||||||
this.gender = gender;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getGender()
|
|
||||||
{
|
|
||||||
return gender;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setBirthWeight(BigDecimal birthWeight)
|
|
||||||
{
|
|
||||||
this.birthWeight = birthWeight;
|
|
||||||
}
|
|
||||||
|
|
||||||
public BigDecimal getBirthWeight()
|
|
||||||
{
|
|
||||||
return birthWeight;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setIsRetained(Boolean isRetained)
|
|
||||||
{
|
|
||||||
this.isRetained = isRetained;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Boolean getIsRetained()
|
|
||||||
{
|
|
||||||
return isRetained;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setLineage(String lineage)
|
|
||||||
{
|
|
||||||
this.lineage = lineage;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getLineage()
|
|
||||||
{
|
|
||||||
return lineage;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setBirthday(Date birthday)
|
|
||||||
{
|
|
||||||
this.birthday = birthday;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Date getBirthday()
|
|
||||||
{
|
|
||||||
return birthday;
|
|
||||||
}
|
|
||||||
|
|
||||||
public List<ScLambDetail> getLambDetails()
|
|
||||||
{
|
|
||||||
return lambDetails;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setLambDetails(List<ScLambDetail> lambDetails)
|
|
||||||
{
|
|
||||||
this.lambDetails = lambDetails;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getMotherId()
|
|
||||||
{
|
|
||||||
return motherId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setMotherId(Long motherId)
|
|
||||||
{
|
|
||||||
this.motherId = motherId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getFatherId()
|
|
||||||
{
|
|
||||||
return fatherId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setFatherId(Long fatherId)
|
|
||||||
{
|
|
||||||
this.fatherId = fatherId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getRanchId()
|
|
||||||
{
|
|
||||||
return ranchId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setRanchId(Integer ranchId)
|
|
||||||
{
|
|
||||||
this.ranchId = ranchId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getSheepfoldId()
|
|
||||||
{
|
|
||||||
return sheepfoldId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setSheepfoldId(Integer sheepfoldId)
|
|
||||||
{
|
|
||||||
this.sheepfoldId = sheepfoldId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getParity()
|
|
||||||
{
|
|
||||||
return parity;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setParity(Integer parity)
|
|
||||||
{
|
|
||||||
this.parity = parity;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
|
||||||
.append("id", getId())
|
|
||||||
.append("lambingRecordId", getLambingRecordId())
|
|
||||||
.append("lambEarNumber", getLambEarNumber())
|
|
||||||
.append("lambBreed", getLambBreed())
|
|
||||||
.append("gender", getGender())
|
|
||||||
.append("birthWeight", getBirthWeight())
|
|
||||||
.append("isRetained", getIsRetained())
|
|
||||||
.append("lineage", getLineage())
|
|
||||||
.append("birthday", getBirthday())
|
|
||||||
.append("createTime", getCreateTime())
|
|
||||||
.toString();
|
|
||||||
}
|
|
||||||
}
|
}
|
@ -385,17 +385,3 @@ public class ScLambingRecord extends BaseEntity
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 羊只羔羊信息对象(用于产羔详情显示)
|
|
||||||
*/
|
|
||||||
class SheepLambInfo {
|
|
||||||
private String lambEarNumber; // 羔羊耳号
|
|
||||||
private String lambBreed; // 羔羊品种
|
|
||||||
private Integer gender; // 性别
|
|
||||||
private Double birthWeight; // 出生重量
|
|
||||||
private Boolean isRetained; // 是否留养
|
|
||||||
private String lineage; // 家系
|
|
||||||
private Date birthday; // 生日
|
|
||||||
|
|
||||||
// getter和setter方法...
|
|
||||||
}
|
|
@ -1,7 +1,11 @@
|
|||||||
package com.zhyc.module.produce.breed.domain;
|
package com.zhyc.module.produce.breed.domain;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
import com.zhyc.common.annotation.Excel;
|
import com.zhyc.common.annotation.Excel;
|
||||||
@ -10,16 +14,27 @@ import com.zhyc.common.core.domain.BaseEntity;
|
|||||||
/**
|
/**
|
||||||
* 孕检记录对象 sc_pregnancy_record
|
* 孕检记录对象 sc_pregnancy_record
|
||||||
*
|
*
|
||||||
* @author ruoyi
|
* @author zhyc
|
||||||
* @date 2025-07-17
|
* @date 2025-01-21
|
||||||
*/
|
*/
|
||||||
|
@Data
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
public class ScPregnancyRecord extends BaseEntity
|
public class ScPregnancyRecord extends BaseEntity
|
||||||
{
|
{
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/** $column.columnComment */
|
/** 主键ID */
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
|
/** 羊只ID */
|
||||||
|
@Excel(name = "羊只ID")
|
||||||
|
private Long sheepId;
|
||||||
|
|
||||||
|
/** 耳号 */
|
||||||
|
@Excel(name = "耳号")
|
||||||
|
private String manageTags;
|
||||||
|
|
||||||
/** 孕检日期 */
|
/** 孕检日期 */
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
@Excel(name = "孕检日期", width = 30, dateFormat = "yyyy-MM-dd")
|
@Excel(name = "孕检日期", width = 30, dateFormat = "yyyy-MM-dd")
|
||||||
@ -29,89 +44,79 @@ public class ScPregnancyRecord extends BaseEntity
|
|||||||
@Excel(name = "孕检结果")
|
@Excel(name = "孕检结果")
|
||||||
private String result;
|
private String result;
|
||||||
|
|
||||||
/** $column.columnComment */
|
/** 胎儿数量 */
|
||||||
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
|
@Excel(name = "胎儿数量")
|
||||||
private Long number;
|
private Integer fetusCount;
|
||||||
|
|
||||||
/** 技术员 */
|
/** 技术员 */
|
||||||
@Excel(name = "技术员")
|
@Excel(name = "技术员")
|
||||||
private String technician;
|
private String technician;
|
||||||
|
|
||||||
/** $column.columnComment */
|
/** 孕检方式 */
|
||||||
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
|
@Excel(name = "孕检方式")
|
||||||
private Long way;
|
private String way;
|
||||||
|
|
||||||
public void setId(Long id)
|
/** 备注 */
|
||||||
{
|
@Excel(name = "备注")
|
||||||
this.id = id;
|
private String remark;
|
||||||
}
|
|
||||||
|
|
||||||
public Long getId()
|
/** 是否删除 */
|
||||||
{
|
private Integer isDelete;
|
||||||
return id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setDatetime(Date datetime)
|
// 关联查询字段
|
||||||
{
|
/** 品种 */
|
||||||
this.datetime = datetime;
|
@Excel(name = "品种")
|
||||||
}
|
private String variety;
|
||||||
|
|
||||||
public Date getDatetime()
|
/** 月龄 */
|
||||||
{
|
@Excel(name = "月龄")
|
||||||
return datetime;
|
private Long monthAge;
|
||||||
}
|
|
||||||
|
|
||||||
public void setResult(String result)
|
/** 胎次 */
|
||||||
{
|
@Excel(name = "胎次")
|
||||||
this.result = result;
|
private Integer parity;
|
||||||
}
|
|
||||||
|
|
||||||
public String getResult()
|
/** 配次 */
|
||||||
{
|
@Excel(name = "配次")
|
||||||
return result;
|
private Integer matingCounts;
|
||||||
}
|
|
||||||
|
|
||||||
public void setNumber(Long number)
|
/** 当前羊舍 */
|
||||||
{
|
@Excel(name = "当前羊舍")
|
||||||
this.number = number;
|
private String sheepfoldName;
|
||||||
}
|
|
||||||
|
|
||||||
public Long getNumber()
|
/** 繁育状态 */
|
||||||
{
|
@Excel(name = "繁育状态")
|
||||||
return number;
|
private String breedStatus;
|
||||||
}
|
|
||||||
|
|
||||||
public void setTechnician(String technician)
|
/** 配种公羊耳号 */
|
||||||
{
|
@Excel(name = "配种公羊")
|
||||||
this.technician = technician;
|
private String fatherManageTags;
|
||||||
}
|
|
||||||
|
|
||||||
public String getTechnician()
|
/** 配种公羊品种 */
|
||||||
{
|
@Excel(name = "配种公羊品种")
|
||||||
return technician;
|
private String fatherVariety;
|
||||||
}
|
|
||||||
|
|
||||||
public void setWay(Long way)
|
/** 配种类型 */
|
||||||
{
|
@Excel(name = "配种类型")
|
||||||
this.way = way;
|
private String matingTypeName;
|
||||||
}
|
|
||||||
|
|
||||||
public Long getWay()
|
/** 配种日期 */
|
||||||
{
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
return way;
|
@Excel(name = "配种日期", width = 30, dateFormat = "yyyy-MM-dd")
|
||||||
}
|
private Date matingDate;
|
||||||
|
|
||||||
|
/** 预产日期 */
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
@Excel(name = "预产日期", width = 30, dateFormat = "yyyy-MM-dd")
|
||||||
|
private Date expectedDate;
|
||||||
|
|
||||||
|
/** 上次事件日期 */
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
@Excel(name = "上次事件日期", width = 30, dateFormat = "yyyy-MM-dd")
|
||||||
|
private Date lastEventDate;
|
||||||
|
|
||||||
|
/** 所在牧场 */
|
||||||
|
@Excel(name = "所在牧场")
|
||||||
|
private String ranchName;
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
|
||||||
.append("id", getId())
|
|
||||||
.append("datetime", getDatetime())
|
|
||||||
.append("result", getResult())
|
|
||||||
.append("number", getNumber())
|
|
||||||
.append("technician", getTechnician())
|
|
||||||
.append("way", getWay())
|
|
||||||
.append("createBy", getCreateBy())
|
|
||||||
.append("createTime", getCreateTime())
|
|
||||||
.toString();
|
|
||||||
}
|
|
||||||
}
|
}
|
@ -5,6 +5,9 @@ import java.util.Date;
|
|||||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
import com.zhyc.common.annotation.Excel;
|
import com.zhyc.common.annotation.Excel;
|
||||||
import com.zhyc.common.core.domain.BaseEntity;
|
import com.zhyc.common.core.domain.BaseEntity;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
|
|
||||||
@ -14,6 +17,9 @@ import org.apache.commons.lang3.builder.ToStringStyle;
|
|||||||
* @author zhyc
|
* @author zhyc
|
||||||
* @date 2024-01-01
|
* @date 2024-01-01
|
||||||
*/
|
*/
|
||||||
|
@Data
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
public class ScWeanRecord extends BaseEntity {
|
public class ScWeanRecord extends BaseEntity {
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
@ -90,173 +96,5 @@ public class ScWeanRecord extends BaseEntity {
|
|||||||
@Excel(name = "繁育状态")
|
@Excel(name = "繁育状态")
|
||||||
private String breedingStatus;
|
private String breedingStatus;
|
||||||
|
|
||||||
public void setId(Long id) {
|
|
||||||
this.id = id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getId() {
|
|
||||||
return id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setSheepId(Long sheepId) {
|
|
||||||
this.sheepId = sheepId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getSheepId() {
|
|
||||||
return sheepId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setDatetime(Date datetime) {
|
|
||||||
this.datetime = datetime;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Date getDatetime() {
|
|
||||||
return datetime;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setWeight(BigDecimal weight) {
|
|
||||||
this.weight = weight;
|
|
||||||
}
|
|
||||||
|
|
||||||
public BigDecimal getWeight() {
|
|
||||||
return weight;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setStatus(String status) {
|
|
||||||
this.status = status;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getStatus() {
|
|
||||||
return status;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setTechnician(String technician) {
|
|
||||||
this.technician = technician;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getTechnician() {
|
|
||||||
return technician;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setComment(String comment) {
|
|
||||||
this.comment = comment;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getComment() {
|
|
||||||
return comment;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setElectronicTags(String electronicTags) {
|
|
||||||
this.electronicTags = electronicTags;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getElectronicTags() {
|
|
||||||
return electronicTags;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setEarNumber(String earNumber) {
|
|
||||||
this.earNumber = earNumber;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getEarNumber() {
|
|
||||||
return earNumber;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setBreed(String breed) {
|
|
||||||
this.breed = breed;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getBreed() {
|
|
||||||
return breed;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setEventType(String eventType) {
|
|
||||||
this.eventType = eventType;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getEventType() {
|
|
||||||
return eventType;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setGender(String gender) {
|
|
||||||
this.gender = gender;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getGender() {
|
|
||||||
return gender;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setFatherNumber(String fatherNumber) {
|
|
||||||
this.fatherNumber = fatherNumber;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getFatherNumber() {
|
|
||||||
return fatherNumber;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setMotherNumber(String motherNumber) {
|
|
||||||
this.motherNumber = motherNumber;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getMotherNumber() {
|
|
||||||
return motherNumber;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setMonthAge(Integer monthAge) {
|
|
||||||
this.monthAge = monthAge;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getMonthAge() {
|
|
||||||
return monthAge;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setBirthWeight(BigDecimal birthWeight) {
|
|
||||||
this.birthWeight = birthWeight;
|
|
||||||
}
|
|
||||||
|
|
||||||
public BigDecimal getBirthWeight() {
|
|
||||||
return birthWeight;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setSheepPen(String sheepPen) {
|
|
||||||
this.sheepPen = sheepPen;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getSheepPen() {
|
|
||||||
return sheepPen;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setBreedingStatus(String breedingStatus) {
|
|
||||||
this.breedingStatus = breedingStatus;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getBreedingStatus() {
|
|
||||||
return breedingStatus;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
|
|
||||||
.append("id", getId())
|
|
||||||
.append("sheepId", getSheepId())
|
|
||||||
.append("datetime", getDatetime())
|
|
||||||
.append("weight", getWeight())
|
|
||||||
.append("status", getStatus())
|
|
||||||
.append("technician", getTechnician())
|
|
||||||
.append("comment", getComment())
|
|
||||||
.append("createBy", getCreateBy())
|
|
||||||
.append("createTime", getCreateTime())
|
|
||||||
.append("electronicTags", getElectronicTags())
|
|
||||||
.append("earNumber", getEarNumber())
|
|
||||||
.append("breed", getBreed())
|
|
||||||
.append("eventType", getEventType())
|
|
||||||
.append("gender", getGender())
|
|
||||||
.append("fatherNumber", getFatherNumber())
|
|
||||||
.append("motherNumber", getMotherNumber())
|
|
||||||
.append("monthAge", getMonthAge())
|
|
||||||
.append("birthWeight", getBirthWeight())
|
|
||||||
.append("sheepPen", getSheepPen())
|
|
||||||
.append("breedingStatus", getBreedingStatus())
|
|
||||||
.toString();
|
|
||||||
}
|
|
||||||
}
|
}
|
@ -0,0 +1,25 @@
|
|||||||
|
package com.zhyc.module.produce.breed.domain;
|
||||||
|
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 羊只羔羊信息对象(用于产羔详情显示)
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
|
class SheepLambInfo {
|
||||||
|
private String lambEarNumber; // 羔羊耳号
|
||||||
|
private String lambBreed; // 羔羊品种
|
||||||
|
private Integer gender; // 性别
|
||||||
|
private Double birthWeight; // 出生重量
|
||||||
|
private Boolean isRetained; // 是否留养
|
||||||
|
private String lineage; // 家系
|
||||||
|
private Date birthday; // 生日
|
||||||
|
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,69 @@
|
|||||||
|
package com.zhyc.module.produce.breed.mapper;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.zhyc.module.produce.breed.domain.RawSpermRecord;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 采精记录Mapper接口
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2025-07-23
|
||||||
|
*/
|
||||||
|
public interface RawSpermRecordMapper
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询采精记录
|
||||||
|
*
|
||||||
|
* @param id 采精记录主键
|
||||||
|
* @return 采精记录
|
||||||
|
*/
|
||||||
|
public RawSpermRecord selectRawSpermRecordById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询采精记录列表
|
||||||
|
*
|
||||||
|
* @param rawSpermRecord 采精记录
|
||||||
|
* @return 采精记录集合
|
||||||
|
*/
|
||||||
|
public List<RawSpermRecord> selectRawSpermRecordList(RawSpermRecord rawSpermRecord);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增采精记录
|
||||||
|
*
|
||||||
|
* @param rawSpermRecord 采精记录
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertRawSpermRecord(RawSpermRecord rawSpermRecord);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改采精记录
|
||||||
|
*
|
||||||
|
* @param rawSpermRecord 采精记录
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateRawSpermRecord(RawSpermRecord rawSpermRecord);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除采精记录
|
||||||
|
*
|
||||||
|
* @param id 采精记录主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteRawSpermRecordById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除采精记录
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteRawSpermRecordByIds(Long[] ids);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据耳号查询羊只ID
|
||||||
|
*
|
||||||
|
* @param manageTags 耳号
|
||||||
|
* @return 羊只ID
|
||||||
|
*/
|
||||||
|
public Long selectSheepIdByManageTags(String manageTags);
|
||||||
|
}
|
@ -2,6 +2,8 @@ package com.zhyc.module.produce.breed.mapper;
|
|||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
import org.apache.ibatis.annotations.Param;
|
import org.apache.ibatis.annotations.Param;
|
||||||
import com.zhyc.module.produce.breed.domain.ScBreedPlanGenerate;
|
import com.zhyc.module.produce.breed.domain.ScBreedPlanGenerate;
|
||||||
import com.zhyc.module.produce.breed.domain.ScBreedPlan;
|
import com.zhyc.module.produce.breed.domain.ScBreedPlan;
|
||||||
@ -12,6 +14,7 @@ import com.zhyc.module.produce.breed.domain.ScBreedPlan;
|
|||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
* @date 2025-07-16
|
* @date 2025-07-16
|
||||||
*/
|
*/
|
||||||
|
@Mapper
|
||||||
public interface ScBreedPlanGenerateMapper
|
public interface ScBreedPlanGenerateMapper
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
@ -2,6 +2,7 @@ package com.zhyc.module.produce.breed.mapper;
|
|||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import com.zhyc.module.produce.breed.domain.ScBreedPlan;
|
import com.zhyc.module.produce.breed.domain.ScBreedPlan;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 配种计划Mapper接口
|
* 配种计划Mapper接口
|
||||||
@ -9,6 +10,7 @@ import com.zhyc.module.produce.breed.domain.ScBreedPlan;
|
|||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
* @date 2025-07-16
|
* @date 2025-07-16
|
||||||
*/
|
*/
|
||||||
|
@Mapper
|
||||||
public interface ScBreedPlanMapper
|
public interface ScBreedPlanMapper
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
@ -0,0 +1,94 @@
|
|||||||
|
package com.zhyc.module.produce.breed.mapper;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
import com.zhyc.module.produce.breed.domain.ScBreedRecord;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 配种记录Mapper接口
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2025-07-23
|
||||||
|
*/
|
||||||
|
public interface ScBreedRecordMapper
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询配种记录
|
||||||
|
*
|
||||||
|
* @param id 配种记录主键
|
||||||
|
* @return 配种记录
|
||||||
|
*/
|
||||||
|
public ScBreedRecord selectScBreedRecordById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询配种记录列表
|
||||||
|
*
|
||||||
|
* @param scBreedRecord 配种记录
|
||||||
|
* @return 配种记录集合
|
||||||
|
*/
|
||||||
|
public List<ScBreedRecord> selectScBreedRecordList(ScBreedRecord scBreedRecord);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增配种记录
|
||||||
|
*
|
||||||
|
* @param scBreedRecord 配种记录
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertScBreedRecord(ScBreedRecord scBreedRecord);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改配种记录
|
||||||
|
*
|
||||||
|
* @param scBreedRecord 配种记录
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateScBreedRecord(ScBreedRecord scBreedRecord);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除配种记录
|
||||||
|
*
|
||||||
|
* @param id 配种记录主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteScBreedRecordById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除配种记录
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteScBreedRecordByIds(Long[] ids);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据耳号查询羊只ID
|
||||||
|
*
|
||||||
|
* @param manageTags 管理耳号
|
||||||
|
* @return 羊只ID
|
||||||
|
*/
|
||||||
|
public Long getSheepIdByManageTags(String manageTags);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据公羊耳号查询羊只ID
|
||||||
|
*
|
||||||
|
* @param manageTags 管理耳号
|
||||||
|
* @return 羊只ID
|
||||||
|
*/
|
||||||
|
public Long getRamIdByManageTags(String manageTags);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据耳号查询羊只详细信息
|
||||||
|
*
|
||||||
|
* @param manageTags 管理耳号
|
||||||
|
* @return 羊只信息
|
||||||
|
*/
|
||||||
|
public Map<String, Object> getSheepInfoByTags(String manageTags);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据母羊耳号获取配种计划信息
|
||||||
|
*
|
||||||
|
* @param manageTags 母羊管理耳号
|
||||||
|
* @return 配种计划信息
|
||||||
|
*/
|
||||||
|
public Map<String, Object> getBreedPlanByEweTags(String manageTags);
|
||||||
|
}
|
@ -2,6 +2,7 @@ package com.zhyc.module.produce.breed.mapper;
|
|||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import com.zhyc.module.produce.breed.domain.ScDryMilk;
|
import com.zhyc.module.produce.breed.domain.ScDryMilk;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 干奶记录Mapper接口
|
* 干奶记录Mapper接口
|
||||||
@ -9,6 +10,7 @@ import com.zhyc.module.produce.breed.domain.ScDryMilk;
|
|||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
* @date 2025-07-15
|
* @date 2025-07-15
|
||||||
*/
|
*/
|
||||||
|
@Mapper
|
||||||
public interface ScDryMilkMapper
|
public interface ScDryMilkMapper
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
@ -3,6 +3,7 @@ package com.zhyc.module.produce.breed.mapper;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
import com.zhyc.module.produce.breed.domain.ScLambingRecord;
|
import com.zhyc.module.produce.breed.domain.ScLambingRecord;
|
||||||
import com.zhyc.module.produce.breed.domain.ScLambDetail;
|
import com.zhyc.module.produce.breed.domain.ScLambDetail;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 产羔记录Mapper接口
|
* 产羔记录Mapper接口
|
||||||
@ -10,6 +11,7 @@ import com.zhyc.module.produce.breed.domain.ScLambDetail;
|
|||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
* @date 2025-07-11
|
* @date 2025-07-11
|
||||||
*/
|
*/
|
||||||
|
@Mapper
|
||||||
public interface ScLambingRecordMapper
|
public interface ScLambingRecordMapper
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
@ -1,14 +1,14 @@
|
|||||||
package com.zhyc.module.produce.breed.mapper;
|
package com.zhyc.module.produce.breed.mapper;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
import com.zhyc.module.produce.breed.domain.ScPregnancyRecord;
|
import com.zhyc.module.produce.breed.domain.ScPregnancyRecord;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 孕检记录Mapper接口
|
* 孕检记录Mapper接口
|
||||||
*
|
*
|
||||||
* @author ruoyi
|
* @author zhyc
|
||||||
* @date 2025-07-17
|
* @date 2025-01-21
|
||||||
*/
|
*/
|
||||||
public interface ScPregnancyRecordMapper
|
public interface ScPregnancyRecordMapper
|
||||||
{
|
{
|
||||||
@ -59,4 +59,20 @@ public interface ScPregnancyRecordMapper
|
|||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int deleteScPregnancyRecordByIds(Long[] ids);
|
public int deleteScPregnancyRecordByIds(Long[] ids);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据耳号查询羊只信息
|
||||||
|
*
|
||||||
|
* @param manageTags 耳号
|
||||||
|
* @return 羊只信息
|
||||||
|
*/
|
||||||
|
public Map<String, Object> selectSheepByManageTags(String manageTags);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新羊只基础表中的孕检相关字段
|
||||||
|
*
|
||||||
|
* @param params 更新参数
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateSheepPregnancyInfo(Map<String, Object> params);
|
||||||
}
|
}
|
@ -2,6 +2,7 @@ package com.zhyc.module.produce.breed.mapper;
|
|||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import com.zhyc.module.produce.breed.domain.ScWeanRecord;
|
import com.zhyc.module.produce.breed.domain.ScWeanRecord;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 断奶记录Mapper接口
|
* 断奶记录Mapper接口
|
||||||
@ -9,6 +10,7 @@ import com.zhyc.module.produce.breed.domain.ScWeanRecord;
|
|||||||
* @author zhyc
|
* @author zhyc
|
||||||
* @date 2024-01-01
|
* @date 2024-01-01
|
||||||
*/
|
*/
|
||||||
|
@Mapper
|
||||||
public interface ScWeanRecordMapper {
|
public interface ScWeanRecordMapper {
|
||||||
/**
|
/**
|
||||||
* 查询断奶记录
|
* 查询断奶记录
|
||||||
|
@ -0,0 +1,69 @@
|
|||||||
|
package com.zhyc.module.produce.breed.service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.zhyc.module.produce.breed.domain.RawSpermRecord;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 采精记录Service接口
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2025-07-23
|
||||||
|
*/
|
||||||
|
public interface IRawSpermRecordService
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询采精记录
|
||||||
|
*
|
||||||
|
* @param id 采精记录主键
|
||||||
|
* @return 采精记录
|
||||||
|
*/
|
||||||
|
public RawSpermRecord selectRawSpermRecordById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询采精记录列表
|
||||||
|
*
|
||||||
|
* @param rawSpermRecord 采精记录
|
||||||
|
* @return 采精记录集合
|
||||||
|
*/
|
||||||
|
public List<RawSpermRecord> selectRawSpermRecordList(RawSpermRecord rawSpermRecord);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增采精记录
|
||||||
|
*
|
||||||
|
* @param rawSpermRecord 采精记录
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertRawSpermRecord(RawSpermRecord rawSpermRecord);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改采精记录
|
||||||
|
*
|
||||||
|
* @param rawSpermRecord 采精记录
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateRawSpermRecord(RawSpermRecord rawSpermRecord);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除采精记录
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的采精记录主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteRawSpermRecordByIds(Long[] ids);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除采精记录信息
|
||||||
|
*
|
||||||
|
* @param id 采精记录主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteRawSpermRecordById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据耳号查询羊只ID
|
||||||
|
*
|
||||||
|
* @param manageTags 耳号
|
||||||
|
* @return 羊只ID
|
||||||
|
*/
|
||||||
|
public Long getSheepIdByManageTags(String manageTags);
|
||||||
|
}
|
@ -0,0 +1,94 @@
|
|||||||
|
package com.zhyc.module.produce.breed.service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
import com.zhyc.module.produce.breed.domain.ScBreedRecord;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 配种记录Service接口
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2025-07-23
|
||||||
|
*/
|
||||||
|
public interface IScBreedRecordService
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询配种记录
|
||||||
|
*
|
||||||
|
* @param id 配种记录主键
|
||||||
|
* @return 配种记录
|
||||||
|
*/
|
||||||
|
public ScBreedRecord selectScBreedRecordById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询配种记录列表
|
||||||
|
*
|
||||||
|
* @param scBreedRecord 配种记录
|
||||||
|
* @return 配种记录集合
|
||||||
|
*/
|
||||||
|
public List<ScBreedRecord> selectScBreedRecordList(ScBreedRecord scBreedRecord);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增配种记录
|
||||||
|
*
|
||||||
|
* @param scBreedRecord 配种记录
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertScBreedRecord(ScBreedRecord scBreedRecord);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改配种记录
|
||||||
|
*
|
||||||
|
* @param scBreedRecord 配种记录
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateScBreedRecord(ScBreedRecord scBreedRecord);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除配种记录
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的配种记录主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteScBreedRecordByIds(Long[] ids);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除配种记录信息
|
||||||
|
*
|
||||||
|
* @param id 配种记录主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteScBreedRecordById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据耳号查询羊只ID
|
||||||
|
*
|
||||||
|
* @param manageTags 管理耳号
|
||||||
|
* @return 羊只ID
|
||||||
|
*/
|
||||||
|
public Long getSheepIdByTags(String manageTags);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据公羊耳号查询羊只ID
|
||||||
|
*
|
||||||
|
* @param manageTags 管理耳号
|
||||||
|
* @return 羊只ID
|
||||||
|
*/
|
||||||
|
public Long getRamIdByTags(String manageTags);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据耳号查询羊只详细信息
|
||||||
|
*
|
||||||
|
* @param manageTags 管理耳号
|
||||||
|
* @return 羊只信息
|
||||||
|
*/
|
||||||
|
public Map<String, Object> getSheepInfoByTags(String manageTags);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据母羊耳号获取配种计划信息
|
||||||
|
*
|
||||||
|
* @param manageTags 母羊管理耳号
|
||||||
|
* @return 配种计划信息
|
||||||
|
*/
|
||||||
|
public Map<String, Object> getBreedPlanByEweTags(String manageTags);
|
||||||
|
}
|
@ -1,15 +1,14 @@
|
|||||||
package com.zhyc.module.produce.breed.service;
|
package com.zhyc.module.produce.breed.service;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
import com.zhyc.module.produce.breed.domain.ScPregnancyRecord;
|
import com.zhyc.module.produce.breed.domain.ScPregnancyRecord;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 孕检记录Service接口
|
* 孕检记录Service接口
|
||||||
*
|
*
|
||||||
* @author ruoyi
|
* @author zhyc
|
||||||
* @date 2025-07-17
|
* @date 2025-01-21
|
||||||
*/
|
*/
|
||||||
public interface IScPregnancyRecordService
|
public interface IScPregnancyRecordService
|
||||||
{
|
{
|
||||||
@ -60,4 +59,12 @@ public interface IScPregnancyRecordService
|
|||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int deleteScPregnancyRecordById(Long id);
|
public int deleteScPregnancyRecordById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据耳号查询羊只信息
|
||||||
|
*
|
||||||
|
* @param manageTags 耳号
|
||||||
|
* @return 羊只信息
|
||||||
|
*/
|
||||||
|
public Map<String, Object> getSheepByManageTags(String manageTags);
|
||||||
}
|
}
|
@ -0,0 +1,120 @@
|
|||||||
|
package com.zhyc.module.produce.breed.service.impl;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.zhyc.common.utils.DateUtils;
|
||||||
|
import com.zhyc.common.utils.StringUtils;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import com.zhyc.module.produce.breed.mapper.RawSpermRecordMapper;
|
||||||
|
import com.zhyc.module.produce.breed.domain.RawSpermRecord;
|
||||||
|
import com.zhyc.module.produce.breed.service.IRawSpermRecordService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 采精记录Service业务层处理
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2025-07-23
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class RawSpermRecordServiceImpl implements IRawSpermRecordService
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private RawSpermRecordMapper rawSpermRecordMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询采精记录
|
||||||
|
*
|
||||||
|
* @param id 采精记录主键
|
||||||
|
* @return 采精记录
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public RawSpermRecord selectRawSpermRecordById(Long id)
|
||||||
|
{
|
||||||
|
return rawSpermRecordMapper.selectRawSpermRecordById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询采精记录列表
|
||||||
|
*
|
||||||
|
* @param rawSpermRecord 采精记录
|
||||||
|
* @return 采精记录
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<RawSpermRecord> selectRawSpermRecordList(RawSpermRecord rawSpermRecord)
|
||||||
|
{
|
||||||
|
return rawSpermRecordMapper.selectRawSpermRecordList(rawSpermRecord);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增采精记录
|
||||||
|
*
|
||||||
|
* @param rawSpermRecord 采精记录
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int insertRawSpermRecord(RawSpermRecord rawSpermRecord)
|
||||||
|
{
|
||||||
|
// 如果传入的是耳号,需要先根据耳号查询羊只ID
|
||||||
|
if (StringUtils.isNotEmpty(rawSpermRecord.getManageTags()) && rawSpermRecord.getSheepId() == null) {
|
||||||
|
Long sheepId = getSheepIdByManageTags(rawSpermRecord.getManageTags());
|
||||||
|
rawSpermRecord.setSheepId(sheepId);
|
||||||
|
}
|
||||||
|
|
||||||
|
rawSpermRecord.setCreateTime(DateUtils.getNowDate());
|
||||||
|
return rawSpermRecordMapper.insertRawSpermRecord(rawSpermRecord);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改采精记录
|
||||||
|
*
|
||||||
|
* @param rawSpermRecord 采精记录
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int updateRawSpermRecord(RawSpermRecord rawSpermRecord)
|
||||||
|
{
|
||||||
|
// 如果传入的是耳号,需要先根据耳号查询羊只ID
|
||||||
|
if (StringUtils.isNotEmpty(rawSpermRecord.getManageTags()) && rawSpermRecord.getSheepId() == null) {
|
||||||
|
Long sheepId = getSheepIdByManageTags(rawSpermRecord.getManageTags());
|
||||||
|
rawSpermRecord.setSheepId(sheepId);
|
||||||
|
}
|
||||||
|
|
||||||
|
return rawSpermRecordMapper.updateRawSpermRecord(rawSpermRecord);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除采精记录
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的采精记录主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteRawSpermRecordByIds(Long[] ids)
|
||||||
|
{
|
||||||
|
return rawSpermRecordMapper.deleteRawSpermRecordByIds(ids);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除采精记录信息
|
||||||
|
*
|
||||||
|
* @param id 采精记录主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteRawSpermRecordById(Long id)
|
||||||
|
{
|
||||||
|
return rawSpermRecordMapper.deleteRawSpermRecordById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据耳号查询羊只ID
|
||||||
|
*
|
||||||
|
* @param manageTags 耳号
|
||||||
|
* @return 羊只ID
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Long getSheepIdByManageTags(String manageTags)
|
||||||
|
{
|
||||||
|
return rawSpermRecordMapper.selectSheepIdByManageTags(manageTags);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,164 @@
|
|||||||
|
package com.zhyc.module.produce.breed.service.impl;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
import com.zhyc.common.utils.DateUtils;
|
||||||
|
import com.zhyc.common.utils.StringUtils;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import com.zhyc.module.produce.breed.mapper.ScBreedRecordMapper;
|
||||||
|
import com.zhyc.module.produce.breed.domain.ScBreedRecord;
|
||||||
|
import com.zhyc.module.produce.breed.service.IScBreedRecordService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 配种记录Service业务层处理
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2025-07-23
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class ScBreedRecordServiceImpl implements IScBreedRecordService
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private ScBreedRecordMapper scBreedRecordMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询配种记录
|
||||||
|
*
|
||||||
|
* @param id 配种记录主键
|
||||||
|
* @return 配种记录
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public ScBreedRecord selectScBreedRecordById(Long id)
|
||||||
|
{
|
||||||
|
return scBreedRecordMapper.selectScBreedRecordById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询配种记录列表
|
||||||
|
*
|
||||||
|
* @param scBreedRecord 配种记录
|
||||||
|
* @return 配种记录
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<ScBreedRecord> selectScBreedRecordList(ScBreedRecord scBreedRecord)
|
||||||
|
{
|
||||||
|
// 如果查询条件中有耳号,需要先转换为ID
|
||||||
|
if (StringUtils.isNotEmpty(scBreedRecord.getEweManageTags()))
|
||||||
|
{
|
||||||
|
Long eweId = scBreedRecordMapper.getSheepIdByManageTags(scBreedRecord.getEweManageTags());
|
||||||
|
if (eweId != null)
|
||||||
|
{
|
||||||
|
scBreedRecord.setEweId(eweId.toString());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (StringUtils.isNotEmpty(scBreedRecord.getRamManageTags()))
|
||||||
|
{
|
||||||
|
Long ramId = scBreedRecordMapper.getRamIdByManageTags(scBreedRecord.getRamManageTags());
|
||||||
|
if (ramId != null)
|
||||||
|
{
|
||||||
|
scBreedRecord.setRamId(ramId.toString());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return scBreedRecordMapper.selectScBreedRecordList(scBreedRecord);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增配种记录
|
||||||
|
*
|
||||||
|
* @param scBreedRecord 配种记录
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int insertScBreedRecord(ScBreedRecord scBreedRecord)
|
||||||
|
{
|
||||||
|
scBreedRecord.setCreateTime(DateUtils.getNowDate());
|
||||||
|
return scBreedRecordMapper.insertScBreedRecord(scBreedRecord);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改配种记录
|
||||||
|
*
|
||||||
|
* @param scBreedRecord 配种记录
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int updateScBreedRecord(ScBreedRecord scBreedRecord)
|
||||||
|
{
|
||||||
|
return scBreedRecordMapper.updateScBreedRecord(scBreedRecord);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除配种记录
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的配种记录主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteScBreedRecordByIds(Long[] ids)
|
||||||
|
{
|
||||||
|
return scBreedRecordMapper.deleteScBreedRecordByIds(ids);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除配种记录信息
|
||||||
|
*
|
||||||
|
* @param id 配种记录主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteScBreedRecordById(Long id)
|
||||||
|
{
|
||||||
|
return scBreedRecordMapper.deleteScBreedRecordById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据耳号查询羊只ID
|
||||||
|
*
|
||||||
|
* @param manageTags 管理耳号
|
||||||
|
* @return 羊只ID
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Long getSheepIdByTags(String manageTags)
|
||||||
|
{
|
||||||
|
return scBreedRecordMapper.getSheepIdByManageTags(manageTags);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据公羊耳号查询羊只ID
|
||||||
|
*
|
||||||
|
* @param manageTags 管理耳号
|
||||||
|
* @return 羊只ID
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Long getRamIdByTags(String manageTags)
|
||||||
|
{
|
||||||
|
return scBreedRecordMapper.getRamIdByManageTags(manageTags);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据耳号查询羊只详细信息
|
||||||
|
*
|
||||||
|
* @param manageTags 管理耳号
|
||||||
|
* @return 羊只信息
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Map<String, Object> getSheepInfoByTags(String manageTags)
|
||||||
|
{
|
||||||
|
return scBreedRecordMapper.getSheepInfoByTags(manageTags);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据母羊耳号获取配种计划信息
|
||||||
|
*
|
||||||
|
* @param manageTags 母羊管理耳号
|
||||||
|
* @return 配种计划信息
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Map<String, Object> getBreedPlanByEweTags(String manageTags)
|
||||||
|
{
|
||||||
|
return scBreedRecordMapper.getBreedPlanByEweTags(manageTags);
|
||||||
|
}
|
||||||
|
}
|
@ -1,19 +1,24 @@
|
|||||||
package com.zhyc.module.produce.breed.service.impl;
|
package com.zhyc.module.produce.breed.service.impl;
|
||||||
|
|
||||||
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.Date;
|
||||||
|
import java.util.Calendar;
|
||||||
|
|
||||||
import com.zhyc.common.utils.DateUtils;
|
import com.zhyc.common.utils.DateUtils;
|
||||||
import com.zhyc.module.produce.breed.domain.ScPregnancyRecord;
|
|
||||||
import com.zhyc.module.produce.breed.mapper.ScPregnancyRecordMapper;
|
|
||||||
import com.zhyc.module.produce.breed.service.IScPregnancyRecordService;
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
import com.zhyc.module.produce.breed.mapper.ScPregnancyRecordMapper;
|
||||||
|
import com.zhyc.module.produce.breed.domain.ScPregnancyRecord;
|
||||||
|
import com.zhyc.module.produce.breed.service.IScPregnancyRecordService;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 孕检记录Service业务层处理
|
* 孕检记录Service业务层处理
|
||||||
*
|
*
|
||||||
* @author ruoyi
|
* @author zhyc
|
||||||
* @date 2025-07-17
|
* @date 2025-01-21
|
||||||
*/
|
*/
|
||||||
@Service
|
@Service
|
||||||
public class ScPregnancyRecordServiceImpl implements IScPregnancyRecordService
|
public class ScPregnancyRecordServiceImpl implements IScPregnancyRecordService
|
||||||
@ -52,10 +57,28 @@ public class ScPregnancyRecordServiceImpl implements IScPregnancyRecordService
|
|||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
|
@Transactional
|
||||||
public int insertScPregnancyRecord(ScPregnancyRecord scPregnancyRecord)
|
public int insertScPregnancyRecord(ScPregnancyRecord scPregnancyRecord)
|
||||||
{
|
{
|
||||||
scPregnancyRecord.setCreateTime(DateUtils.getNowDate());
|
scPregnancyRecord.setCreateTime(DateUtils.getNowDate());
|
||||||
return scPregnancyRecordMapper.insertScPregnancyRecord(scPregnancyRecord);
|
scPregnancyRecord.setIsDelete(0);
|
||||||
|
|
||||||
|
// 根据耳号获取羊只ID
|
||||||
|
if (scPregnancyRecord.getManageTags() != null) {
|
||||||
|
Map<String, Object> sheepInfo = scPregnancyRecordMapper.selectSheepByManageTags(scPregnancyRecord.getManageTags());
|
||||||
|
if (sheepInfo != null && sheepInfo.get("id") != null) {
|
||||||
|
scPregnancyRecord.setSheepId(Long.valueOf(sheepInfo.get("id").toString()));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
int result = scPregnancyRecordMapper.insertScPregnancyRecord(scPregnancyRecord);
|
||||||
|
|
||||||
|
// 如果孕检结果为怀孕,更新羊只基础表相关字段
|
||||||
|
if ("怀孕".equals(scPregnancyRecord.getResult()) && scPregnancyRecord.getSheepId() != null) {
|
||||||
|
updateSheepPregnancyStatus(scPregnancyRecord);
|
||||||
|
}
|
||||||
|
|
||||||
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -65,9 +88,27 @@ public class ScPregnancyRecordServiceImpl implements IScPregnancyRecordService
|
|||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
|
@Transactional
|
||||||
public int updateScPregnancyRecord(ScPregnancyRecord scPregnancyRecord)
|
public int updateScPregnancyRecord(ScPregnancyRecord scPregnancyRecord)
|
||||||
{
|
{
|
||||||
return scPregnancyRecordMapper.updateScPregnancyRecord(scPregnancyRecord);
|
scPregnancyRecord.setUpdateTime(DateUtils.getNowDate());
|
||||||
|
|
||||||
|
// 根据耳号获取羊只ID
|
||||||
|
if (scPregnancyRecord.getManageTags() != null) {
|
||||||
|
Map<String, Object> sheepInfo = scPregnancyRecordMapper.selectSheepByManageTags(scPregnancyRecord.getManageTags());
|
||||||
|
if (sheepInfo != null && sheepInfo.get("id") != null) {
|
||||||
|
scPregnancyRecord.setSheepId(Long.valueOf(sheepInfo.get("id").toString()));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
int result = scPregnancyRecordMapper.updateScPregnancyRecord(scPregnancyRecord);
|
||||||
|
|
||||||
|
// 如果孕检结果为怀孕,更新羊只基础表相关字段
|
||||||
|
if ("怀孕".equals(scPregnancyRecord.getResult()) && scPregnancyRecord.getSheepId() != null) {
|
||||||
|
updateSheepPregnancyStatus(scPregnancyRecord);
|
||||||
|
}
|
||||||
|
|
||||||
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -93,4 +134,46 @@ public class ScPregnancyRecordServiceImpl implements IScPregnancyRecordService
|
|||||||
{
|
{
|
||||||
return scPregnancyRecordMapper.deleteScPregnancyRecordById(id);
|
return scPregnancyRecordMapper.deleteScPregnancyRecordById(id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据耳号查询羊只信息
|
||||||
|
*
|
||||||
|
* @param manageTags 耳号
|
||||||
|
* @return 羊只信息
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Map<String, Object> getSheepByManageTags(String manageTags)
|
||||||
|
{
|
||||||
|
return scPregnancyRecordMapper.selectSheepByManageTags(manageTags);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新羊只怀孕状态
|
||||||
|
*
|
||||||
|
* @param scPregnancyRecord 孕检记录
|
||||||
|
*/
|
||||||
|
private void updateSheepPregnancyStatus(ScPregnancyRecord scPregnancyRecord) {
|
||||||
|
Map<String, Object> params = new HashMap<>();
|
||||||
|
params.put("sheepId", scPregnancyRecord.getSheepId());
|
||||||
|
params.put("pregDate", scPregnancyRecord.getDatetime());
|
||||||
|
|
||||||
|
// 设置繁育状态为怀孕状态(假设怀孕状态ID为2)
|
||||||
|
params.put("breedStatusId", 2);
|
||||||
|
|
||||||
|
// 计算预产日期(羊的妊娠期大约150天)
|
||||||
|
if (scPregnancyRecord.getDatetime() != null) {
|
||||||
|
Calendar cal = Calendar.getInstance();
|
||||||
|
cal.setTime(scPregnancyRecord.getDatetime());
|
||||||
|
cal.add(Calendar.DAY_OF_YEAR, 150);
|
||||||
|
params.put("expectedDate", cal.getTime());
|
||||||
|
}
|
||||||
|
|
||||||
|
// 计算怀孕天数
|
||||||
|
if (scPregnancyRecord.getDatetime() != null) {
|
||||||
|
long days = (System.currentTimeMillis() - scPregnancyRecord.getDatetime().getTime()) / (1000 * 60 * 60 * 24);
|
||||||
|
params.put("gestationDay", (int) days);
|
||||||
|
}
|
||||||
|
|
||||||
|
scPregnancyRecordMapper.updateSheepPregnancyInfo(params);
|
||||||
|
}
|
||||||
}
|
}
|
@ -3,6 +3,7 @@ package com.zhyc.module.produce.manage_sheep.mapper;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import com.zhyc.module.produce.manage_sheep.domain.ScTransGroup;
|
import com.zhyc.module.produce.manage_sheep.domain.ScTransGroup;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 转群记录Mapper接口
|
* 转群记录Mapper接口
|
||||||
@ -10,6 +11,7 @@ import com.zhyc.module.produce.manage_sheep.domain.ScTransGroup;
|
|||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
* @date 2025-07-10
|
* @date 2025-07-10
|
||||||
*/
|
*/
|
||||||
|
@Mapper
|
||||||
public interface ScTransGroupMapper {
|
public interface ScTransGroupMapper {
|
||||||
/**
|
/**
|
||||||
* 查询转群记录
|
* 查询转群记录
|
||||||
|
@ -3,6 +3,7 @@ package com.zhyc.module.produce.other.mapper;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import com.zhyc.module.produce.other.domain.ScCastrate;
|
import com.zhyc.module.produce.other.domain.ScCastrate;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 去势Mapper接口
|
* 去势Mapper接口
|
||||||
@ -10,6 +11,7 @@ import com.zhyc.module.produce.other.domain.ScCastrate;
|
|||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
* @date 2025-07-09
|
* @date 2025-07-09
|
||||||
*/
|
*/
|
||||||
|
@Mapper
|
||||||
public interface ScCastrateMapper
|
public interface ScCastrateMapper
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user