fix: 修复租户管理日期格式问题并更新项目进度
修复内容: 1. 租户管理日期格式问题 - 问题:新增租户时过期时间字段报错 Cannot deserialize Date - 解决:SysTenantBo.expireTime 添加 @JsonFormat 和 @DateTimeFormat 注解 - 影响:租户管理功能可正常保存带过期时间的数据 2. 更新项目进度文档 - 记录本周完成的租户管理修复、局域网访问配置等关键成果 - 更新已解决问题列表 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package org.hzhub.system.domain.bo;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.github.linpeilie.annotations.AutoMapper;
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
@@ -9,6 +10,7 @@ import org.hzhub.common.core.validate.AddGroup;
|
||||
import org.hzhub.common.core.validate.EditGroup;
|
||||
import org.hzhub.common.mybatis.core.domain.BaseEntity;
|
||||
import org.hzhub.system.domain.SysTenant;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
@@ -99,6 +101,8 @@ public class SysTenantBo extends BaseEntity {
|
||||
/**
|
||||
* 过期时间
|
||||
*/
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date expireTime;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user