mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-11-04 04:08:43 +08:00 
			
		
		
		
	解决 MapStruct 的时区问题
This commit is contained in:
		@@ -1,8 +1,11 @@
 | 
			
		||||
package cn.iocoder.yudao.module.system.controller.admin.notify.vo.message;
 | 
			
		||||
 | 
			
		||||
import io.swagger.v3.oas.annotations.media.Schema;
 | 
			
		||||
import lombok.*;
 | 
			
		||||
import java.util.*;
 | 
			
		||||
import lombok.Data;
 | 
			
		||||
import lombok.EqualsAndHashCode;
 | 
			
		||||
import lombok.ToString;
 | 
			
		||||
 | 
			
		||||
import java.time.LocalDateTime;
 | 
			
		||||
 | 
			
		||||
@Schema(description = "管理后台 - 站内信 Response VO")
 | 
			
		||||
@Data
 | 
			
		||||
@@ -14,6 +17,6 @@ public class NotifyMessageRespVO extends NotifyMessageBaseVO {
 | 
			
		||||
    private Long id;
 | 
			
		||||
 | 
			
		||||
    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
 | 
			
		||||
    private Date createTime;
 | 
			
		||||
    private LocalDateTime createTime;
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -2,6 +2,8 @@ package cn.iocoder.yudao.module.system.controller.admin.notify.vo.template;
 | 
			
		||||
 | 
			
		||||
import io.swagger.v3.oas.annotations.media.Schema;
 | 
			
		||||
import lombok.*;
 | 
			
		||||
 | 
			
		||||
import java.time.LocalDateTime;
 | 
			
		||||
import java.util.*;
 | 
			
		||||
 | 
			
		||||
@Schema(description = "管理后台 - 站内信模版 Response VO")
 | 
			
		||||
@@ -17,6 +19,6 @@ public class NotifyTemplateRespVO extends NotifyTemplateBaseVO {
 | 
			
		||||
    private List<String> params;
 | 
			
		||||
 | 
			
		||||
    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
 | 
			
		||||
    private Date createTime;
 | 
			
		||||
    private LocalDateTime createTime;
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -1,7 +1,6 @@
 | 
			
		||||
package cn.iocoder.yudao.module.system.convert.notify;
 | 
			
		||||
 | 
			
		||||
import cn.iocoder.yudao.framework.common.pojo.PageResult;
 | 
			
		||||
import cn.iocoder.yudao.framework.common.util.date.DateUtils;
 | 
			
		||||
import cn.iocoder.yudao.module.system.controller.admin.notify.vo.message.NotifyMessageRespVO;
 | 
			
		||||
import cn.iocoder.yudao.module.system.dal.dataobject.notify.NotifyMessageDO;
 | 
			
		||||
import org.mapstruct.Mapper;
 | 
			
		||||
@@ -14,7 +13,7 @@ import java.util.List;
 | 
			
		||||
 *
 | 
			
		||||
 * @author xrcoder
 | 
			
		||||
 */
 | 
			
		||||
@Mapper(uses = DateUtils.class)
 | 
			
		||||
@Mapper
 | 
			
		||||
public interface NotifyMessageConvert {
 | 
			
		||||
 | 
			
		||||
    NotifyMessageConvert INSTANCE = Mappers.getMapper(NotifyMessageConvert.class);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user