Browse Source

涉访涉诉--添加来源类型一级子类字段

master
buaixuexideshitongxue 1 month ago
parent
commit
596e4f50d5
  1. 5
      src/main/java/com/biutag/supervision/pojo/entity/ComplaintCollection.java
  2. 17
      src/main/java/com/biutag/supervision/pojo/request/complaintCollection/ComplaintCollectionAddRequest.java

5
src/main/java/com/biutag/supervision/pojo/entity/ComplaintCollection.java

@ -37,6 +37,11 @@ public class ComplaintCollection {
@TableField("source_table")
private String sourceTable;
@Schema(description = "来源类型子类一")
@TableField("source_table_sub_one")
private String sourceTableSubOne;
/* =========================
* 1) 三表合并字段3表都有/语义相同 -> 合并为1个
* ========================= */

17
src/main/java/com/biutag/supervision/pojo/request/complaintCollection/ComplaintCollectionAddRequest.java

@ -33,6 +33,9 @@ public class ComplaintCollectionAddRequest implements ParamChecked {
@Schema(description = "来源表类型")
private String sourceTable;
@Schema(description = "来源类型子一级")
private String sourceTableSubOne;
@Schema(description = "编号")
private String originId;
@ -93,7 +96,7 @@ public class ComplaintCollectionAddRequest implements ParamChecked {
@Override
public void check() {
if (StrUtil.isBlank(sourceTable)) {
if (StrUtil.hasBlank(sourceTable, sourceTableSubOne)) {
throw new IllegalArgumentException("来源不能为空");
}
if (ObjectUtil.isNull(discoveryTime)) {
@ -122,13 +125,13 @@ public class ComplaintCollectionAddRequest implements ParamChecked {
throw new IllegalArgumentException("是否重复不能为空");
}
if (StrUtil.isBlank((leadApproval))) {
throw new IllegalArgumentException("是否领导审批不能为空");
}
// if (StrUtil.isBlank((leadApproval))) {
// throw new IllegalArgumentException("是否领导审批不能为空");
// }
if (CollectionUtil.isEmpty(tags)){
throw new IllegalArgumentException("标签不能为空");
}
// if (CollectionUtil.isEmpty(tags)){
// throw new IllegalArgumentException("标签不能为空");
// }
if (StrUtil.isEmpty(handleMethod)){
throw new IllegalArgumentException("办理方法不能为空");
}

Loading…
Cancel
Save