|
@@ -22,7 +22,9 @@ import org.springblade.resource.feign.IOSSClient;
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
|
|
|
|
|
|
+import java.util.ArrayList;
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
+import java.util.Map;
|
|
import java.util.stream.Collectors;
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
|
|
|
|
@@ -92,7 +94,7 @@ public class ArchiveFileController extends BladeController {
|
|
@PostMapping("/page")
|
|
@PostMapping("/page")
|
|
@ApiOperationSupport(order = 3)
|
|
@ApiOperationSupport(order = 3)
|
|
@ApiOperation(value = "分页")
|
|
@ApiOperation(value = "分页")
|
|
- public R<Object> page(ArchiveFileVO queryVo){
|
|
|
|
|
|
+ public R<Object> page( ArchiveFileVO queryVo){
|
|
if(queryVo.getNodeIds().isEmpty() || queryVo.getNodeIds().equals("")){
|
|
if(queryVo.getNodeIds().isEmpty() || queryVo.getNodeIds().equals("")){
|
|
return R.data(null);
|
|
return R.data(null);
|
|
}
|
|
}
|
|
@@ -127,9 +129,12 @@ public class ArchiveFileController extends BladeController {
|
|
@ApiOperationSupport(order = 5)
|
|
@ApiOperationSupport(order = 5)
|
|
@ApiOperation(value = "未分盒的显示")
|
|
@ApiOperation(value = "未分盒的显示")
|
|
public R<Object> pageByBoxName(ArchiveFileVO queryVo){
|
|
public R<Object> pageByBoxName(ArchiveFileVO queryVo){
|
|
- if(queryVo.getNodeIds().isEmpty() || queryVo.getNodeIds().equals("")){
|
|
|
|
|
|
+ if(queryVo == null || queryVo.getNodeIds() == null || queryVo.getNodeIds().equals("")){
|
|
return R.data(null);
|
|
return R.data(null);
|
|
}
|
|
}
|
|
|
|
+ List<String> ids = new ArrayList<>();
|
|
|
|
+ ids.add(queryVo.getNodeIds());
|
|
|
|
+ queryVo.setNodeIdArray(ids);
|
|
return R.data(this.archiveFileClient.selectArchiveFilePageByBoxName(queryVo));
|
|
return R.data(this.archiveFileClient.selectArchiveFilePageByBoxName(queryVo));
|
|
}
|
|
}
|
|
/**
|
|
/**
|
|
@@ -138,8 +143,8 @@ public class ArchiveFileController extends BladeController {
|
|
@PostMapping("/getIsBoxName")
|
|
@PostMapping("/getIsBoxName")
|
|
@ApiOperationSupport(order = 6)
|
|
@ApiOperationSupport(order = 6)
|
|
@ApiOperation(value = "分盒盒号验证", notes = "传入boxName")
|
|
@ApiOperation(value = "分盒盒号验证", notes = "传入boxName")
|
|
- public R getIsBoxName(@RequestParam String boxName) {
|
|
|
|
- return R.status(this.archiveFileClient.IsBoxName(boxName));
|
|
|
|
|
|
+ public R<String> getIsBoxName(@RequestParam String boxName) {
|
|
|
|
+ return R.data(this.archiveFileClient.isBoxName(boxName));
|
|
}
|
|
}
|
|
/**
|
|
/**
|
|
* 设置分盒
|
|
* 设置分盒
|
|
@@ -147,7 +152,29 @@ public class ArchiveFileController extends BladeController {
|
|
@PostMapping("/allocation")
|
|
@PostMapping("/allocation")
|
|
@ApiOperationSupport(order = 7)
|
|
@ApiOperationSupport(order = 7)
|
|
@ApiOperation(value = "设置分盒", notes = "传入ids")
|
|
@ApiOperation(value = "设置分盒", notes = "传入ids")
|
|
- public R allocation(@ApiParam(value = "主键集合", required = true) @RequestParam String ids, @RequestParam String boxName,@RequestParam Integer boxNumber) {
|
|
|
|
- return R.status(this.archiveFileClient.updateArchiveFileByBoxName(Func.toLongList(ids),boxName,boxNumber));
|
|
|
|
|
|
+ public R allocation(@RequestBody Map<String,Object> jsons) {
|
|
|
|
+ return R.status(this.archiveFileClient.updateArchiveFileByBoxName(jsons));
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 已有盒号和案卷名称
|
|
|
|
+ */
|
|
|
|
+ @PostMapping("/getBoxNameAndBoxNumber")
|
|
|
|
+ @ApiOperationSupport(order = 8)
|
|
|
|
+ @ApiOperation(value = "未分盒的显示")
|
|
|
|
+ public R<Object> getBoxNameAndBoxNumber(@ApiParam(value = "树节点", required = true) @RequestParam String nodeId){
|
|
|
|
+ if(nodeId.isEmpty() || nodeId.equals("")){
|
|
|
|
+ return R.data(null);
|
|
|
|
+ }
|
|
|
|
+ return R.data(this.archiveFileClient.selectBoxNameAndBoxNumber(nodeId));
|
|
|
|
+ }
|
|
|
|
+ /**
|
|
|
|
+ * 迁移文件
|
|
|
|
+ */
|
|
|
|
+ @PostMapping("/migrateFile")
|
|
|
|
+ @ApiOperationSupport(order = 9)
|
|
|
|
+ @ApiOperation(value = "迁移文件", notes = "传入ids")
|
|
|
|
+ public R migrateFile(@RequestParam String ids,@RequestParam String nodeId) {
|
|
|
|
+ return R.status(this.archiveFileClient.updateArchiveFileByNodeId(ids,nodeId));
|
|
}
|
|
}
|
|
}
|
|
}
|