|
@@ -77,7 +77,7 @@ public class DataUnionController {
|
|
|
query.put("nextVerifyDept", String.valueOf(currUser.getDeptId()));
|
|
|
}
|
|
|
String dataStatus = (String) params.get("dataStatus");
|
|
|
- if(StringUtils.isNotEmpty(dataStatus)) {
|
|
|
+ if (StringUtils.isNotEmpty(dataStatus)) {
|
|
|
query.put("dataStatusArrs", Lists.newArrayList((dataStatus)));
|
|
|
}
|
|
|
query.put("sendVerify", "3");
|
|
@@ -105,10 +105,10 @@ public class DataUnionController {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
+ * @param id
|
|
|
* @Description: 列表页面 审核通过
|
|
|
* @Author: wangp
|
|
|
* @Date: 2022/3/6 16:35
|
|
|
- * @param id
|
|
|
* @Return: R
|
|
|
*/
|
|
|
@PostMapping("/verify")
|
|
@@ -125,10 +125,10 @@ public class DataUnionController {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
+ * @param ids
|
|
|
* @Description: 批量审核
|
|
|
* @Author: wangp
|
|
|
* @Date: 2022/3/6 16:35
|
|
|
- * @param ids
|
|
|
* @Return: R
|
|
|
*/
|
|
|
@PostMapping("/batchVerify")
|
|
@@ -136,6 +136,7 @@ public class DataUnionController {
|
|
|
@RequiresPermissions("datas:unionVerify:verify")
|
|
|
public R batchVerify(@RequestParam("ids[]") Long[] ids) {
|
|
|
log.info("批量审核通过 ids:" + ids.toString());
|
|
|
+ List<String> failedDataNames = new ArrayList<>();
|
|
|
for (Long id : ids) {
|
|
|
log.info("审核通过 id:" + id);
|
|
|
GyDataImportDTO data = new GyDataImportDTO();
|
|
@@ -147,11 +148,17 @@ public class DataUnionController {
|
|
|
data.setId(id);
|
|
|
data.setDataStatus("3");
|
|
|
gyDataService.updateStatus(data);
|
|
|
+ } else {
|
|
|
+ failedDataNames.add(data.getDataName());
|
|
|
}
|
|
|
}
|
|
|
+ if (failedDataNames.size() > 0) {
|
|
|
+ return R.error(String.join(",", failedDataNames) + ",联合审核失败");
|
|
|
+ }
|
|
|
return R.ok();
|
|
|
}
|
|
|
|
|
|
+
|
|
|
/**
|
|
|
* @Description: 列表页面 驳回
|
|
|
* @Author: wangp
|