|
@@ -114,6 +114,11 @@ public class BaseDuckInfoServiceImpl extends ServiceImpl<BaseDuckInfoMapper, Bas
|
|
BigDecimal rate = new BigDecimal(paramsMap.get("hatchRate"));
|
|
BigDecimal rate = new BigDecimal(paramsMap.get("hatchRate"));
|
|
baseDuckInfo.setHatchRate(rate);
|
|
baseDuckInfo.setHatchRate(rate);
|
|
}
|
|
}
|
|
|
|
+ if (paramsMap.get("fatherNum").equals(paramsMap.get("motherNum")) ||
|
|
|
|
+ paramsMap.get("motherNum").equals(paramsMap.get("duckCode")) ||
|
|
|
|
+ paramsMap.get("fatherNum").equals(paramsMap.get("duckCode"))) {
|
|
|
|
+ return new Result(10001, "鸭只编号、父亲编号、母亲编号三者的编号不能相同!", false);
|
|
|
|
+ }
|
|
baseDuckInfo.setFatherNum(paramsMap.get("fatherNum"));
|
|
baseDuckInfo.setFatherNum(paramsMap.get("fatherNum"));
|
|
baseDuckInfo.setMotherNum(paramsMap.get("motherNum"));
|
|
baseDuckInfo.setMotherNum(paramsMap.get("motherNum"));
|
|
baseDuckInfo.setFatherGenotype(paramsMap.get("fatherGenotype"));
|
|
baseDuckInfo.setFatherGenotype(paramsMap.get("fatherGenotype"));
|