6 changed files with 103 additions and 1 deletions
@ -0,0 +1,49 @@
|
||||
package com.biutag.supervision.pojo.enums.complaintCollection; |
||||
|
||||
import com.biutag.supervision.constants.enums.CodeEnum; |
||||
import lombok.Getter; |
||||
|
||||
/** |
||||
* @ClassName ComplaintCollectionStatusEnum |
||||
* @Description TODO |
||||
* @Author shihao |
||||
* @Date 2026/2/10 12:00 |
||||
*/ |
||||
public enum ComplaintCollectionStatusEnum implements CodeEnum { |
||||
|
||||
|
||||
PROCEDURE_COMPLETED("0", "未办理"), |
||||
REASONABLE_DEMAND_RESOLVED("1", "已办结"), |
||||
FORCE_RESOLVED("2", "强制办结"); |
||||
|
||||
|
||||
private final String code; |
||||
private final String desc; |
||||
|
||||
ComplaintCollectionStatusEnum(String code, String desc) { |
||||
this.code = code; |
||||
this.desc = desc; |
||||
} |
||||
|
||||
@Override |
||||
public String getCode() { |
||||
return code; |
||||
} |
||||
|
||||
@Override |
||||
public String getDesc() { |
||||
return desc; |
||||
} |
||||
|
||||
public static String getDescByCode(String code) { |
||||
if (code == null) { |
||||
return null; |
||||
} |
||||
for (ComplaintCollectionStatusEnum e : values()) { |
||||
if (e.code.equals(code)) { |
||||
return e.desc; |
||||
} |
||||
} |
||||
return null; |
||||
} |
||||
} |
||||
@ -0,0 +1,29 @@
|
||||
package com.biutag.supervision.pojo.request.complaintCollection; |
||||
|
||||
import cn.hutool.core.util.StrUtil; |
||||
import com.biutag.supervision.aop.ParamChecked; |
||||
import io.swagger.v3.oas.annotations.media.Schema; |
||||
import lombok.Getter; |
||||
import lombok.Setter; |
||||
|
||||
/** |
||||
* @ClassName ComplaintCollectionForceTerminationRequest |
||||
* @Description 涉访涉诉强制终结请求 |
||||
* @Author shihao |
||||
* @Date 2026/2/10 11:46 |
||||
*/ |
||||
@Setter |
||||
@Getter |
||||
@Schema(description = "涉访涉诉强制终结请求") |
||||
public class ComplaintCollectionForceTerminationRequest implements ParamChecked { |
||||
|
||||
@Schema(description = "涉访涉诉编号id") |
||||
private String complaintId; |
||||
@Override |
||||
public void check() { |
||||
if (StrUtil.isBlank(complaintId)) { |
||||
throw new IllegalArgumentException("涉访涉诉id不能为空"); |
||||
} |
||||
|
||||
} |
||||
} |
||||
Loading…
Reference in new issue