|
@@ -155,9 +155,9 @@ public class EnvRegularCallFeedingServiceImpl extends ServiceImpl<EnvRegularCall
|
|
|
queryWrapper2.in("d.unit_id",unitList).eq("f.farm_id",farmId).eq("f.event_type",0).between("f.call_date",startOfDay,endOfDay);
|
|
|
BigDecimal lastDayFeed = feedingMapper.getFeed(queryWrapper2);
|
|
|
//日环比
|
|
|
- if (lastDayFeed.toString().equals("0.00")){
|
|
|
+ if (lastDayFeed.toString().equals("0.0")){
|
|
|
dayGap = BigDecimal.valueOf(100);
|
|
|
- if (dayFeed.toString().equals("0.00")){
|
|
|
+ if (dayFeed.toString().equals("0.0")){
|
|
|
dayGap = BigDecimal.valueOf(0);
|
|
|
}
|
|
|
}else {
|
|
@@ -174,9 +174,9 @@ public class EnvRegularCallFeedingServiceImpl extends ServiceImpl<EnvRegularCall
|
|
|
queryWrapper4.in("d.unit_id",unitList).eq("f.farm_id",farmId).eq("f.event_type",0).between("f.call_date",lastMonthStartMorning,lastMonthEndNight);
|
|
|
BigDecimal lastMonthFeed = feedingMapper.getFeed(queryWrapper4);
|
|
|
//月环比
|
|
|
- if (lastMonthFeed.toString().equals("0.00")){
|
|
|
+ if (lastMonthFeed.toString().equals("0.0")){
|
|
|
monthGap = BigDecimal.valueOf(100);
|
|
|
- if (monthFeed.toString().equals("0.00")){
|
|
|
+ if (monthFeed.toString().equals("0.0")){
|
|
|
monthGap = BigDecimal.valueOf(0);
|
|
|
}
|
|
|
}else {
|