1、修复白名单修改,auditstatus为string的bug
This commit is contained in:
@@ -60,5 +60,5 @@ public class WhiteListObject {
|
|||||||
@JsonProperty("audit_status")
|
@JsonProperty("audit_status")
|
||||||
@ExcelIgnore
|
@ExcelIgnore
|
||||||
@Schema(description = "白名单对象审核状态(0为未审核,1为已退回,2为审核通过)", example = "2")
|
@Schema(description = "白名单对象审核状态(0为未审核,1为已退回,2为审核通过)", example = "2")
|
||||||
private String whiteListAuditStatus;
|
private Integer whiteListAuditStatus;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -107,7 +107,7 @@ public class WhiteListService {
|
|||||||
throw new IllegalStateException("无法修改白名单信息,因为其并未处于" + AuditStatusEnum.AUDITED + "状态");
|
throw new IllegalStateException("无法修改白名单信息,因为其并未处于" + AuditStatusEnum.AUDITED + "状态");
|
||||||
}
|
}
|
||||||
|
|
||||||
object.setWhiteListAuditStatus(AuditStatusEnum.PENDING.toString());
|
object.setWhiteListAuditStatus(AuditStatusEnum.PENDING.getNum());
|
||||||
|
|
||||||
return whiteListMapper.updateWhiteListObject(id, object);
|
return whiteListMapper.updateWhiteListObject(id, object);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ class WhiteListServiceTest extends ProtectionApplicationTests {
|
|||||||
//object.setWhiteListId(7);
|
//object.setWhiteListId(7);
|
||||||
object.setWhiteListName("test_update");
|
object.setWhiteListName("test_update");
|
||||||
|
|
||||||
whiteListService.updateWhiteListObject(7, object);
|
whiteListService.updateWhiteListObject(7189, object);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|||||||
Reference in New Issue
Block a user