Commit 8e59f8bf authored by jiawei's avatar jiawei

审核驳回原因填写过长,后台没有返回提示信息

parent 2bec894c
......@@ -48,6 +48,8 @@ public class AuditController extends BaseController {
@Resource
private AuditService auditService;
private final static int REMARK_LEN = 64;
@Resource
private TUserService userService;
......@@ -326,6 +328,12 @@ public class AuditController extends BaseController {
@ApiOperation(value = "审核管理===根据id修改审核信息", notes = "审核管理===根据id修改审核信息")
@MethodLog(operModule = OperModule.CHECKVIDEO, operType = OperType.AUDIT)
public Map<String, Object> updateAuditAllById(@RequestBody @Validated AuditStatusParam auditStatusParam) {
//校验备注过长报错问题
if (auditStatusParam.getRemarks() != null) {
if (auditStatusParam.getRemarks().length() > REMARK_LEN) {
return getFailResult("备注消息过长");
}
}
String id = auditStatusParam.getId();
Audit audit = auditService.getById(id);
if (audit == null) {
......
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