|
@@ -77,7 +77,7 @@ public class DeptAssessmentDeclarationServiceImpl extends ServiceImpl<DeptAssess
|
|
|
|
|
|
String code = request.getHeader("code");
|
|
|
String auth = request.getHeader("Blade-Auth");
|
|
|
- JSONObject json = userService.getSysUser(code,auth);
|
|
|
+ JSONObject json = userService.getSysUser(code, auth);
|
|
|
MyuserResDTO user = JSONObject.parseObject(json.getJSONObject("data").toJSONString(), MyuserResDTO.class);
|
|
|
|
|
|
user.getDeptOrg().getType();
|
|
@@ -190,16 +190,21 @@ public class DeptAssessmentDeclarationServiceImpl extends ServiceImpl<DeptAssess
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public boolean removeByIds(List<String> ids) {
|
|
|
+ public String removeByIds(List<String> ids) {
|
|
|
+ int successfulCount = 0;
|
|
|
+ int loseCount = 0;
|
|
|
for (String id : ids) {
|
|
|
DeptAssessmentDeclaration deptAssessmentDeclaration = super.getById(id);
|
|
|
if ("流程未启动".equals(deptAssessmentDeclaration.getStage())) {
|
|
|
deptAssessmentDeclarationContentService.removeByAssessmentDeclarationId(id);
|
|
|
deptAssessmentDeclarationCompleteService.removeByAssessmentDeclarationId(id);
|
|
|
super.removeById(id);
|
|
|
+ successfulCount++;
|
|
|
+ } else {
|
|
|
+ loseCount++;
|
|
|
}
|
|
|
}
|
|
|
- return true;
|
|
|
+ return "成功删除" + successfulCount + "条,删除失败" + loseCount + "条";
|
|
|
}
|
|
|
|
|
|
@Override
|