@@ -663,7 +663,6 @@ public class ArchivesAutoController extends BladeController {
@PostMapping("/reCreateArchiveAuto")
@ApiOperationSupport(order = 13)
@ApiOperation(value = "重新生成案卷", notes = "传入ids")
- @Transactional
public R reCreateArchiveAuto(@ApiParam(value = "主键集合", required = true) @RequestParam String ids,@ApiParam(value = "合并后的文件题目", required = true)String name,Integer type){
if(type==1){
//先查出勾选的案卷
@@ -5185,6 +5185,12 @@ public class ArchivesAutoServiceImpl extends BaseServiceImpl<ArchivesAutoMapper,
@Override
@Async
public void reCreateArchiveAuto1(String ids) {
+ try {
+ // 等待事务提交
+ Thread.sleep(500);
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
for (Long id : Func.toLongList(ids)) {
try {