|
@@ -79,7 +79,6 @@ public class EnvRegularCallFeedingServiceImpl extends ServiceImpl<EnvRegularCall
|
|
|
} else if ("3".equals(dateType)) {
|
|
|
Date timesMonthmorning = DataUill.getTimesMonthmorning();
|
|
|
queryWrapper.ge("call_date", timesMonthmorning);
|
|
|
-
|
|
|
} else {
|
|
|
String startDate = paramsMap.get("startDate");
|
|
|
String endDate = paramsMap.get("endDate");
|
|
@@ -119,13 +118,11 @@ public class EnvRegularCallFeedingServiceImpl extends ServiceImpl<EnvRegularCall
|
|
|
if ("".equals(unitName) || null == unitName) {
|
|
|
return new Result(ResultCode.SUCCESS, feedingMapper.listSelect(page, timesMonthmorning,farmId));
|
|
|
} else {
|
|
|
-
|
|
|
QueryWrapper<EnvRegularCallFeeding> queryWrapper = new QueryWrapper<>();
|
|
|
queryWrapper.eq("farm_id", farmId).like(StringUtils.isNotBlank(unitName), "unit_name", unitName)
|
|
|
.select("IFNULL(SUM(duck_weight),0) duckWeight,duck_num duckNum,call_date callDate,unit_name unitName,duck_id duckId,call_code callCode")
|
|
|
.ge("call_date", timesMonthmorning)
|
|
|
.orderByDesc("call_date");
|
|
|
-
|
|
|
return new Result(ResultCode.SUCCESS, feedingMapper.selectPage(page, queryWrapper));
|
|
|
}
|
|
|
|
|
@@ -157,6 +154,7 @@ public class EnvRegularCallFeedingServiceImpl extends ServiceImpl<EnvRegularCall
|
|
|
for (BaseBuilding building : baseBuildingList) {
|
|
|
unitList.add(building.getId());
|
|
|
}
|
|
|
+
|
|
|
//今日
|
|
|
QueryWrapper<EnvRegularCallFeeding> queryWrapper1 = new QueryWrapper<>();
|
|
|
queryWrapper1.in("d.unit_id", unitList).eq("f.farm_id", farmId).eq("f.event_type", 0).ge("f.call_date", timesmorning);
|
|
@@ -204,7 +202,6 @@ public class EnvRegularCallFeedingServiceImpl extends ServiceImpl<EnvRegularCall
|
|
|
resultMap.put("monthFeed", monthFeed);
|
|
|
resultMap.put("monthTrend", monthTrend);
|
|
|
resultMap.put("monthFeedGap", monthGap + "%");
|
|
|
-
|
|
|
return new Result(ResultCode.SUCCESS, resultMap);
|
|
|
}
|
|
|
|