|
@@ -80,7 +80,7 @@ public class BaseDuckInfoServiceImpl extends ServiceImpl<BaseDuckInfoMapper, Bas
|
|
|
}
|
|
|
QueryWrapper<BaseDuckInfo> queryWrapper = new QueryWrapper<>();
|
|
|
queryWrapper.like(StringUtils.isNotBlank(code), "duck_num", code)
|
|
|
- .eq(StringUtils.isNotBlank(location), "unit_name", location).eq("farm_id", farmId);
|
|
|
+ .eq(StringUtils.isNotBlank(location), "unit_name", location).eq("farm_id", farmId).orderByDesc("duck_birthday");
|
|
|
Page<BaseDuckInfo> page = new Page<>(Integer.parseInt(pageNum), Integer.parseInt(pageSize));
|
|
|
return new Result(ResultCode.SUCCESS, duckInfoMapper.selectPage(page, queryWrapper));
|
|
|
}
|
|
@@ -132,7 +132,7 @@ public class BaseDuckInfoServiceImpl extends ServiceImpl<BaseDuckInfoMapper, Bas
|
|
|
} else {
|
|
|
|
|
|
if (father.getDayAge() < 100) {
|
|
|
- return new Result(10001, "该鸭只日龄小于100天,暂不能作为种鸭!", false);
|
|
|
+ return new Result(10001, "该鸭只日龄小于100天,暂不能作为公种鸭!", false);
|
|
|
} else {
|
|
|
QueryWrapper<BaseDuckInfo> duckInfoQueryWrapper1 = new QueryWrapper<>();
|
|
|
duckInfoQueryWrapper1.eq("farm_id", paramsMap.get("farmId")).eq("duck_num", motherNum).eq("is_cage",0);
|
|
@@ -141,7 +141,7 @@ public class BaseDuckInfoServiceImpl extends ServiceImpl<BaseDuckInfoMapper, Bas
|
|
|
return new Result(10001, "母亲编号不存在,请重新输入!", false);
|
|
|
} else {
|
|
|
if (mother.getDayAge() < 100) {
|
|
|
- return new Result(10001, "该鸭只日龄小于100天,暂不能作为种鸭!", false);
|
|
|
+ return new Result(10001, "该鸭只日龄小于100天,暂不能作为母种鸭!", false);
|
|
|
} else {
|
|
|
baseDuckInfo.setFatherNum(paramsMap.get("fatherNum"));
|
|
|
baseDuckInfo.setMotherNum(paramsMap.get("motherNum"));
|