Commit b85690df by zhiwj

添加判断受审项是否启用的接口

parent 6c83161e
......@@ -97,4 +97,17 @@ public class AuditLogController {
return ResultControllerUtils.commonResult(serviceResponse);
}
@RequestMapping("/ensure-audit")
public RestResponse ensureAudit(String projectItemCode) {
// 是否需要审批 需要审批true 不需要审批false
if (UserDetailUtils.getUserDetail().getUserInfo().getSuperAdmin() == 1) {
return RestResponse.success(false);
}
ServiceResponse<ProjectItemDTO> serviceResponse = this.projectItemApiService.getByProjectItemCode(projectItemCode);
if (!serviceResponse.isSuccess()) {
return ResultControllerUtils.commonResult(serviceResponse);
}
return RestResponse.success(serviceResponse.getResult().getUseStatus() == 1);
}
}
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