|
|
|
@ -768,7 +768,7 @@ public class ItemServiceImpl extends BaseServiceImpl<ItemDao, ItemEntity> implem |
|
|
|
|
|
|
|
// 处理详情获取存在多条1065的作物数据情况
|
|
|
|
Long handlerDeptId; |
|
|
|
if (resultDTO.getHandlerDeptId() == 0) { |
|
|
|
if (0L == resultDTO.getHandlerDeptId() || null == resultDTO.getHandlerDeptId()) { |
|
|
|
ItemDetailForPCEndResultDTO byItemId = baseDao.getHandlerDeptIdByItemId(id); |
|
|
|
handlerDeptId = byItemId.getHandlerDeptId(); |
|
|
|
} else { |
|
|
|
@ -963,7 +963,7 @@ public class ItemServiceImpl extends BaseServiceImpl<ItemDao, ItemEntity> implem |
|
|
|
|
|
|
|
// 处理详情获取存在多条1065的作物数据情况
|
|
|
|
Long handlerDeptId; |
|
|
|
if (resultDTO.getHandlerDeptId() == 0) { |
|
|
|
if (0L == resultDTO.getHandlerDeptId() || null == resultDTO.getHandlerDeptId()) { |
|
|
|
ItemDetailForPCEndResultDTO byItemId = baseDao.getHandlerDeptIdByItemId(id); |
|
|
|
handlerDeptId = byItemId.getHandlerDeptId(); |
|
|
|
} else { |
|
|
|
@ -3959,25 +3959,25 @@ public class ItemServiceImpl extends BaseServiceImpl<ItemDao, ItemEntity> implem |
|
|
|
List<String> jbmyArr = new ArrayList<>(); |
|
|
|
|
|
|
|
List<EvaluationTotalLineDetailResultDTO> dataList = new ArrayList<>(); |
|
|
|
if(formDTO.getYearMonth().length() > 4){ |
|
|
|
if (formDTO.getYearMonth().length() > 4) { |
|
|
|
String[] arr = formDTO.getYearMonth().split("-"); |
|
|
|
// 按日统计
|
|
|
|
timeArr = YearMonthUtils.getMonthFullDay(Integer.parseInt(arr[0]),Integer.parseInt(arr[1])); |
|
|
|
timeArr = YearMonthUtils.getMonthFullDay(Integer.parseInt(arr[0]), Integer.parseInt(arr[1])); |
|
|
|
formDTO.setTimeArr(timeArr); |
|
|
|
dataList = baseDao.getEvaluationDataListByDays(formDTO); |
|
|
|
|
|
|
|
}else{ |
|
|
|
} else { |
|
|
|
// 按月统计
|
|
|
|
timeArr = YearMonthUtils.getMonthBetween(formDTO.getYearMonth() + "-01",formDTO.getYearMonth() + "-12"); |
|
|
|
timeArr = YearMonthUtils.getMonthBetween(formDTO.getYearMonth() + "-01", formDTO.getYearMonth() + "-12"); |
|
|
|
formDTO.setTimeArr(timeArr); |
|
|
|
dataList = baseDao.getEvaluationDataListByMonths(formDTO); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
for(int i = 0 ; i < timeArr.size() ; i++){ |
|
|
|
for (int i = 0; i < timeArr.size(); i++) { |
|
|
|
Boolean flag = false; // 是否完成该时间赋值
|
|
|
|
for(EvaluationTotalLineDetailResultDTO dto : dataList){ |
|
|
|
if(timeArr.get(i).equals(dto.getTime())){ |
|
|
|
for (EvaluationTotalLineDetailResultDTO dto : dataList) { |
|
|
|
if (timeArr.get(i).equals(dto.getTime())) { |
|
|
|
fcmyArr.add(dto.getFcmy()); |
|
|
|
jbmyArr.add(dto.getJbmy()); |
|
|
|
bmyArr.add(dto.getBmy()); |
|
|
|
@ -3986,7 +3986,7 @@ public class ItemServiceImpl extends BaseServiceImpl<ItemDao, ItemEntity> implem |
|
|
|
} |
|
|
|
} |
|
|
|
// 判断该时间是否赋值
|
|
|
|
if(!flag){ |
|
|
|
if (!flag) { |
|
|
|
fcmyArr.add("0"); |
|
|
|
jbmyArr.add("0"); |
|
|
|
bmyArr.add("0"); |
|
|
|
@ -4003,5 +4003,4 @@ public class ItemServiceImpl extends BaseServiceImpl<ItemDao, ItemEntity> implem |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|