Commit 4863bf0d by 张祺

修改审核过程没有计算值可以保存的问题处理

parent 9a55dcda
...@@ -487,7 +487,9 @@ public class TaskServiceImpl implements TaskService { ...@@ -487,7 +487,9 @@ public class TaskServiceImpl implements TaskService {
generateIndData(task, vt, lastVt, value, needLast, datas); generateIndData(task, vt, lastVt, value, needLast, datas);
} }
} }
taskIndValueMapper.batchInsert(newValues); if (!newValues.isEmpty()) {
taskIndValueMapper.batchInsert(newValues);
}
} else { } else {
LogManager.logError(Constants.LOG_CONTEXT_API, "上报数据出错,任务单位不存在或者内容为空" + task.getGroupId()); LogManager.logError(Constants.LOG_CONTEXT_API, "上报数据出错,任务单位不存在或者内容为空" + task.getGroupId());
} }
......
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