|
|
|
@ -1,7 +1,7 @@ |
|
|
|
package com.biutag.supervision.pojo.request.reportProject; |
|
|
|
package com.biutag.supervision.pojo.request.reportProject; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import cn.hutool.core.util.StrUtil; |
|
|
|
import com.biutag.supervision.aop.ParamChecked; |
|
|
|
import com.biutag.supervision.aop.ParamChecked; |
|
|
|
import dm.jdbc.util.StringUtil; |
|
|
|
|
|
|
|
import io.swagger.v3.oas.annotations.media.Schema; |
|
|
|
import io.swagger.v3.oas.annotations.media.Schema; |
|
|
|
import lombok.Getter; |
|
|
|
import lombok.Getter; |
|
|
|
import lombok.Setter; |
|
|
|
import lombok.Setter; |
|
|
|
@ -25,8 +25,11 @@ public class ReportProjectDeleteRequest implements ParamChecked { |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void check() { |
|
|
|
public void check() { |
|
|
|
if (StringUtil.isEmpty(id)){ |
|
|
|
if (StrUtil.isBlank(id)){ |
|
|
|
throw new IllegalArgumentException("删除id不能为空!"); |
|
|
|
throw new IllegalArgumentException("删除id不能为空!"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (StrUtil.isBlank(deleteReason)) { |
|
|
|
|
|
|
|
throw new IllegalArgumentException("删除原因不能为空!"); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|