refactor(entity): 调整信用用户实体字段定义
- 将 id 类型从 Long 改为 Integer - 更新字段描述信息,如将“客户名称”改为“项目名称” - 删除 expirationTime 字段及相关逻辑 - 修改“招采单位名称”为“招采单位” - 修改“中标单位名称”为“中标单位” - 修改“中标单位名称”为“中标金额”以匹配实际用途
This commit is contained in:
@@ -245,7 +245,6 @@ public class CreditUserController extends BaseController {
|
||||
example.setWinningPrice("100000");
|
||||
example.setComments("这是示例数据,请删除后填入真实数据");
|
||||
example.setRecommend(0);
|
||||
example.setExpirationTime("2025-12-31 23:59:59");
|
||||
example.setSortNumber(1);
|
||||
example.setStatus(0);
|
||||
example.setUserId(1);
|
||||
@@ -299,14 +298,6 @@ public class CreditUserController extends BaseController {
|
||||
entity.setUserId(param.getUserId());
|
||||
entity.setTenantId(param.getTenantId());
|
||||
|
||||
if (param.getExpirationTime() != null && !param.getExpirationTime().trim().isEmpty()) {
|
||||
try {
|
||||
entity.setExpirationTime(LocalDateTime.parse(param.getExpirationTime().trim(), DATE_TIME_FORMATTER));
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException("到期时间格式错误,应为yyyy-MM-dd HH:mm:ss");
|
||||
}
|
||||
}
|
||||
|
||||
return entity;
|
||||
}
|
||||
|
||||
|
||||
@@ -24,9 +24,9 @@ public class CreditUser implements Serializable {
|
||||
|
||||
@Schema(description = "ID")
|
||||
@TableId(value = "id", type = IdType.AUTO)
|
||||
private Long id;
|
||||
private Integer id;
|
||||
|
||||
@Schema(description = "客户名称")
|
||||
@Schema(description = "项目名称")
|
||||
private String name;
|
||||
|
||||
@Schema(description = "唯一标识")
|
||||
@@ -59,13 +59,13 @@ public class CreditUser implements Serializable {
|
||||
@Schema(description = "街道地址")
|
||||
private String address;
|
||||
|
||||
@Schema(description = "招采单位名称")
|
||||
@Schema(description = "招采单位")
|
||||
private String procurementName;
|
||||
|
||||
@Schema(description = "中标单位名称")
|
||||
@Schema(description = "中标单位")
|
||||
private String winningName;
|
||||
|
||||
@Schema(description = "中标单位名称")
|
||||
@Schema(description = "中标金额")
|
||||
private String winningPrice;
|
||||
|
||||
@Schema(description = "备注")
|
||||
@@ -74,10 +74,6 @@ public class CreditUser implements Serializable {
|
||||
@Schema(description = "是否推荐")
|
||||
private Integer recommend;
|
||||
|
||||
@Schema(description = "到期时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private LocalDateTime expirationTime;
|
||||
|
||||
@Schema(description = "排序(数字越小越靠前)")
|
||||
private Integer sortNumber;
|
||||
|
||||
|
||||
@@ -48,10 +48,10 @@ public class CreditUserImportParam implements Serializable {
|
||||
@Excel(name = "街道地址")
|
||||
private String address;
|
||||
|
||||
@Excel(name = "招采单位名称")
|
||||
@Excel(name = "招采单位")
|
||||
private String procurementName;
|
||||
|
||||
@Excel(name = "中标单位名称")
|
||||
@Excel(name = "中标单位")
|
||||
private String winningName;
|
||||
|
||||
@Excel(name = "中标金额")
|
||||
|
||||
Reference in New Issue
Block a user