|
@@ -90,6 +90,28 @@ public class FarmerAssetServiceImpl extends ServiceImpl<FarmerAssetMapper, Farme
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|
|
|
|
+ // for (int i = 0 ; i<6 ;i++){
|
|
|
|
+ // DateTime beginOfMonth = cn.hutool.core.date.DateUtil.beginOfMonth(now);
|
|
|
|
+ // wrapper.clear();
|
|
|
|
+ // wrapper.eq("farm_id",areaId);
|
|
|
|
+ //
|
|
|
|
+ // beginOfMonth = cn.hutool.core.date.DateUtil.offsetMonth(beginOfMonth,-i);
|
|
|
|
+ // DateTime endOfMonth = cn.hutool.core.date.DateUtil.endOfMonth(beginOfMonth);
|
|
|
|
+ // wrapper.between("first_time",beginOfMonth,endOfMonth);
|
|
|
|
+ // Long release = eartagEartagRegister2Mapper.selectCount(wrapper);
|
|
|
|
+ // wrapper.clear();
|
|
|
|
+ // wrapper.eq("farm_id",areaId);
|
|
|
|
+ // wrapper.between("first_time",cn.hutool.core.date.DateUtil.offsetMonth(beginOfMonth,-6),cn.hutool.core.date.DateUtil.offsetMonth(endOfMonth,-6));
|
|
|
|
+ // Long slaughter = eartagEartagRegister2Mapper.selectCount(wrapper);
|
|
|
|
+ //
|
|
|
|
+ // Map map = new HashMap();
|
|
|
|
+ // map.put("release",release);
|
|
|
|
+ // map.put("slaughter",slaughter);
|
|
|
|
+ // map.put("month",(cn.hutool.core.date.DateUtil.month(beginOfMonth) +1) +"月");
|
|
|
|
+ // endList.add(map);
|
|
|
|
+ //
|
|
|
|
+ //
|
|
|
|
+ // }
|
|
|
|
|
|
//{读取最后一批猪信息}
|
|
//{读取最后一批猪信息}
|
|
private JSONObject _getlastBatchAdoptPig(String deviceCode) throws ParseException {
|
|
private JSONObject _getlastBatchAdoptPig(String deviceCode) throws ParseException {
|