新增羊只下载模板,导入修复,新增断奶体重字段

This commit is contained in:
zyh
2026-01-19 12:46:49 +08:00
parent c6d94f5a14
commit 32718378c9
2 changed files with 5 additions and 1 deletions

View File

@@ -90,7 +90,9 @@ public class ScAddSheep extends BaseEntity {
@Excel(name = "技术员") @Excel(name = "技术员")
private String technician; private String technician;
/** 断奶体重(仅接收,不入库) */
@Excel(name = "断奶体重")
private BigDecimal weaningWeight;
private String createBy; private String createBy;
private Date createTime; private Date createTime;

View File

@@ -61,6 +61,7 @@ public class ScAddSheepServiceImpl implements IScAddSheepService {
bs.setFatherId(null); bs.setFatherId(null);
bs.setMotherId(null); bs.setMotherId(null);
bs.setBirthWeight(scAddSheep.getBornWeight().longValue()); bs.setBirthWeight(scAddSheep.getBornWeight().longValue());
bs.setWeaningWeight(scAddSheep.getWeaningWeight().longValue());
bs.setSource(String.valueOf(2)); bs.setSource(String.valueOf(2));
bs.setBirthday(scAddSheep.getBirthday()); bs.setBirthday(scAddSheep.getBirthday());
bs.setGender(scAddSheep.getGender().longValue()); bs.setGender(scAddSheep.getGender().longValue());
@@ -72,6 +73,7 @@ public class ScAddSheepServiceImpl implements IScAddSheepService {
bs.setVarietyId(scAddSheep.getVarietyId().longValue()); bs.setVarietyId(scAddSheep.getVarietyId().longValue());
bs.setSourceDate(scAddSheep.getJoinDate()); bs.setSourceDate(scAddSheep.getJoinDate());
bs.setComment(scAddSheep.getComment()); bs.setComment(scAddSheep.getComment());
bs.setCreateBy(scAddSheep.getCreateBy()); bs.setCreateBy(scAddSheep.getCreateBy());
bs.setCreateTime(new Date()); bs.setCreateTime(new Date());
if (scAddSheep.getTypeId() != null) { if (scAddSheep.getTypeId() != null) {