Commit 7f9b932c authored by suhuiguang's avatar suhuiguang

fixcm): 启用管理

1.停用增加原因校验必填
parent d32db48b
...@@ -415,10 +415,10 @@ public class TzBaseEnterpriseInfoController extends BaseController { ...@@ -415,10 +415,10 @@ public class TzBaseEnterpriseInfoController extends BaseController {
@RequireUserDetails @RequireUserDetails
public ResponseModel<ReginParams> disableBatch(@RequestParam String ids, @RequestBody(required = false) Map<String, Object> params) { public ResponseModel<ReginParams> disableBatch(@RequestParam String ids, @RequestBody(required = false) Map<String, Object> params) {
JSONObject psJson = new JSONObject(params); JSONObject psJson = new JSONObject(params);
if(StringUtils.isEmpty(psJson.getString("reason"))){ if(StringUtils.isBlank(psJson.getString("reason"))){
throw new BadRequest("停用原因不能为空!"); throw new BadRequest("停用原因不能为空!");
} }
return ResponseHelper.buildResponse(enterpriseManageService.disable(Arrays.asList(ids.split(",")), new JSONObject(params), getSelectedOrgInfo())); return ResponseHelper.buildResponse(enterpriseManageService.disable(Arrays.asList(ids.split(",")), psJson, getSelectedOrgInfo()));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment