Commit 95d1d5d0 by 张祺

处理没有值可以插入的情况

parent 4863bf0d
...@@ -371,7 +371,9 @@ public class TaskServiceImpl implements TaskService { ...@@ -371,7 +371,9 @@ public class TaskServiceImpl implements TaskService {
status = Constants.APPLY_STATE_PASSED; status = Constants.APPLY_STATE_PASSED;
recordType = "审批通过"; recordType = "审批通过";
List<IndicatorsData> datas = createCountIndValues(task); List<IndicatorsData> datas = createCountIndValues(task);
this.baseIndDataService.batchInsertData(datas); if (CollectionUtils.isNotEmpty(datas)) {
this.baseIndDataService.batchInsertData(datas);
}
taskIndValueMapper.updateTaskValueToPass(task.getId()); taskIndValueMapper.updateTaskValueToPass(task.getId());
} }
task.setStatus(status); task.setStatus(status);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment