diff --git a/src/main/java/com/biutag/supervision/pojo/dto/NegativeDto.java b/src/main/java/com/biutag/supervision/pojo/dto/NegativeDto.java index da16d23..cf12a50 100644 --- a/src/main/java/com/biutag/supervision/pojo/dto/NegativeDto.java +++ b/src/main/java/com/biutag/supervision/pojo/dto/NegativeDto.java @@ -45,6 +45,10 @@ public class NegativeDto { @NotBlank(message = "业务类别不能为空", groups = {AddGroup.class, EditGroup.class}) private String businessTypeCode; + @NotBlank(message = "业务类别不能为空", groups = {AddGroup.class, EditGroup.class}) + @Schema(description = "业务类别名称") + private String businessTypeName; + private String policeTypeName; diff --git a/src/main/java/com/biutag/supervision/service/NegativeService.java b/src/main/java/com/biutag/supervision/service/NegativeService.java index e3305a9..19efef4 100644 --- a/src/main/java/com/biutag/supervision/service/NegativeService.java +++ b/src/main/java/com/biutag/supervision/service/NegativeService.java @@ -503,6 +503,7 @@ public class NegativeService extends ServiceImpl { .set(Negative::getProblemSources, negativeDto.getProblemSources()) .set(Negative::getProblemSourcesCode, negativeDto.getProblemSourcesCode()) .set(Negative::getBusinessTypeCode, negativeDto.getBusinessTypeCode()) + .set(StrUtil.isNotBlank(negativeDto.getBusinessTypeName()), Negative::getBusinessTypeName, negativeDto.getBusinessTypeName()) .set(Negative::getCaseNumber, negativeDto.getCaseNumber()) .set(Negative::getInvolveProblem, com.biutag.supervision.util.JSON.toJSONString(negativeDto.getInvolveProblem())) .set(Negative::getPoliceType, negativeDto.getPoliceType())