Commit a9a1ca7e authored by chenzhao's avatar chenzhao

修改代码

parent 8424d1c1
...@@ -614,7 +614,11 @@ public class CheckServiceImpl implements ICheckService { ...@@ -614,7 +614,11 @@ public class CheckServiceImpl implements ICheckService {
imgList.add(img); imgList.add(img);
} }
} }
List<CheckInput> checkInputList = checkInputDao.saveAll(checkItemList); List<CheckInput> checkInputList = new ArrayList<>();
for (CheckInput checkInput : checkItemList) {
checkInputDao.saveAndFlush(checkInput);
checkInputList.add(checkInput);
}
//规则请求结果 //规则请求结果
checkInputList.forEach(checkInput -> { checkInputList.forEach(checkInput -> {
InputItem inputItem = inputItemDao.findById(checkInput.getInputId()).get(); InputItem inputItem = inputItemDao.findById(checkInput.getInputId()).get();
......
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