|
@@ -519,14 +519,14 @@ public class ArchivesAutoController extends BladeController {
|
|
@ApiOperationSupport(order = 13)
|
|
@ApiOperationSupport(order = 13)
|
|
@ApiOperation(value = "重新生成案卷", notes = "传入ids")
|
|
@ApiOperation(value = "重新生成案卷", notes = "传入ids")
|
|
@Transactional
|
|
@Transactional
|
|
- public R reCreateArchiveAuto(String ids){
|
|
|
|
|
|
+ public R reCreateArchiveAuto(@ApiParam(value = "主键集合", required = true) @RequestParam String ids){
|
|
//先查出勾选的案卷
|
|
//先查出勾选的案卷
|
|
- List<ArchivesAuto> archivesAutoList=archivesAutoService.selectArchiveAutosByIds(ids);
|
|
|
|
|
|
+ List<ArchivesAuto> archivesAutoList=archivesAutoService.listByIds(Func.toLongList(ids));
|
|
if(archivesAutoList.size()<=1){
|
|
if(archivesAutoList.size()<=1){
|
|
return R.fail("请选择多个案卷进行合并");
|
|
return R.fail("请选择多个案卷进行合并");
|
|
}
|
|
}
|
|
archivesAutoList.sort(Comparator.comparingInt(a -> {
|
|
archivesAutoList.sort(Comparator.comparingInt(a -> {
|
|
- String[] parts = a.getName().split("_");
|
|
|
|
|
|
+ String[] parts = a.getFileNumber().split("_");
|
|
return Integer.parseInt(parts[parts.length - 1]); // 取最后一个部分作为数字
|
|
return Integer.parseInt(parts[parts.length - 1]); // 取最后一个部分作为数字
|
|
}));
|
|
}));
|
|
//根据档号后缀排序 拿到第一个
|
|
//根据档号后缀排序 拿到第一个
|