|
@ -41,7 +41,9 @@ public class CollectionInformationController extends BaseController { |
|
|
|
|
|
|
|
|
private final ISysOssService iSysOssService; |
|
|
private final ISysOssService iSysOssService; |
|
|
|
|
|
|
|
|
//"保存至分析成果") |
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* 保存至分析成果 |
|
|
|
|
|
*/ |
|
|
@PostMapping("/save2AnalysisResult") |
|
|
@PostMapping("/save2AnalysisResult") |
|
|
public R save2AnalysisResult(@RequestBody AnalysisDto dto) { |
|
|
public R save2AnalysisResult(@RequestBody AnalysisDto dto) { |
|
|
collectionInformationService.save2AnalysisResult(dto); |
|
|
collectionInformationService.save2AnalysisResult(dto); |
|
@ -61,7 +63,6 @@ public class CollectionInformationController extends BaseController { |
|
|
* |
|
|
* |
|
|
* @param id 主键 |
|
|
* @param id 主键 |
|
|
*/ |
|
|
*/ |
|
|
//"获取日常收集信息") |
|
|
|
|
|
@GetMapping("/{id}") |
|
|
@GetMapping("/{id}") |
|
|
public R<CollectionInformation> getInfo(@NotNull(message = "主键不能为空") |
|
|
public R<CollectionInformation> getInfo(@NotNull(message = "主键不能为空") |
|
|
@PathVariable String id) { |
|
|
@PathVariable String id) { |
|
@ -101,7 +102,9 @@ public class CollectionInformationController extends BaseController { |
|
|
return R.ok(collectionInformationService.deleteWithValidByIds(Arrays.asList(ids), true)); |
|
|
return R.ok(collectionInformationService.deleteWithValidByIds(Arrays.asList(ids), true)); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
//"批量修改日常收集信息") |
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* 批量修改日常收集信息 |
|
|
|
|
|
*/ |
|
|
@PutMapping("/updateBatch") |
|
|
@PutMapping("/updateBatch") |
|
|
public R updateBatch(@RequestBody CollectionInformation bo) { |
|
|
public R updateBatch(@RequestBody CollectionInformation bo) { |
|
|
List<String> ids = bo.getIds(); |
|
|
List<String> ids = bo.getIds(); |
|
@ -116,16 +119,6 @@ public class CollectionInformationController extends BaseController { |
|
|
return R.ok(collectionInformationService.updateBatch(list)); |
|
|
return R.ok(collectionInformationService.updateBatch(list)); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
//"批量修改日常收集信息对象集合") |
|
|
|
|
|
@PutMapping("/updateBatchByList") |
|
|
|
|
|
public R updateBatch(@RequestBody List<CollectionInformation> list) { |
|
|
|
|
|
list.stream().forEach(update ->{ |
|
|
|
|
|
update.setUpdateBy(getUsername()); |
|
|
|
|
|
update.setUpdateTime(new Date()); |
|
|
|
|
|
}); |
|
|
|
|
|
return R.ok(collectionInformationService.updateBatch(list)); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 导入日常收集信息 |
|
|
* 导入日常收集信息 |
|
|
*/ |
|
|
*/ |
|
@ -151,7 +144,9 @@ public class CollectionInformationController extends BaseController { |
|
|
return result ? R.ok() : R.fail(importResultStr); |
|
|
return result ? R.ok() : R.fail(importResultStr); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
//"分析成果-日常收集信息导入") |
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* 分析成果-日常收集信息导入 |
|
|
|
|
|
*/ |
|
|
@PostMapping(value = "/import4AnalysisResult", consumes = MediaType.MULTIPART_FORM_DATA_VALUE) |
|
|
@PostMapping(value = "/import4AnalysisResult", consumes = MediaType.MULTIPART_FORM_DATA_VALUE) |
|
|
public R importAnalysisResult(@RequestPart("file") MultipartFile file, String caseId, String analysisResultId) { |
|
|
public R importAnalysisResult(@RequestPart("file") MultipartFile file, String caseId, String analysisResultId) { |
|
|
boolean result = false; |
|
|
boolean result = false; |
|
@ -178,7 +173,6 @@ public class CollectionInformationController extends BaseController { |
|
|
/** |
|
|
/** |
|
|
* 导出交易对象列表 |
|
|
* 导出交易对象列表 |
|
|
*/ |
|
|
*/ |
|
|
//"导出日常收集信息") |
|
|
|
|
|
@PostMapping("/export") |
|
|
@PostMapping("/export") |
|
|
public void export(CollectionInformation bo, HttpServletResponse response) { |
|
|
public void export(CollectionInformation bo, HttpServletResponse response) { |
|
|
List<CollectionInformation> list = Collections.EMPTY_LIST; |
|
|
List<CollectionInformation> list = Collections.EMPTY_LIST; |
|
|