Commit 776fcbc6 authored by suhuiguang's avatar suhuiguang

fixcm): 启用管理

1.停用增加原因
parent 84dc77f9
......@@ -414,6 +414,10 @@ public class TzBaseEnterpriseInfoController extends BaseController {
@RestEventTrigger(value = "operateLogRestEventHandler")
@RequireUserDetails
public ResponseModel<ReginParams> disableBatch(@RequestParam String ids, @RequestBody(required = false) Map<String, Object> params) {
JSONObject psJson = new JSONObject(params);
if(StringUtils.isEmpty(psJson.getString("reason"))){
throw new BadRequest("停用原因不能为空!");
}
return ResponseHelper.buildResponse(enterpriseManageService.disable(Arrays.asList(ids.split(",")), new JSONObject(params), 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