|
@@ -344,5 +344,21 @@ public class ArchivesAutoController extends BladeController {
|
|
|
return R.status(archivesAutoService.slipt(ids));
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 案卷迁移
|
|
|
+ */
|
|
|
+ @PostMapping("/move")
|
|
|
+ @ApiOperationSupport(order = 15)
|
|
|
+ @ApiOperation(value = "案卷迁移", notes = "传入ids,nodeId")
|
|
|
+ public R move(@ApiParam(value = "主键集合", required = true) @RequestParam String ids, @RequestParam Long nodeId) {
|
|
|
+
|
|
|
+ List<ArchivesAuto> archivesAutos = archivesAutoService.listByIds(Func.toLongList(ids));
|
|
|
+ for (ArchivesAuto ar :archivesAutos) {
|
|
|
+ ar.setNodeId(nodeId);
|
|
|
+ }
|
|
|
+
|
|
|
+ return R.status(archivesAutoService.updateBatchById(archivesAutos));
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
}
|