10-29-LocalDate修改
This commit is contained in:
		| @ -7,6 +7,7 @@ import lombok.EqualsAndHashCode; | |||||||
| import org.dromara.common.mybatis.core.domain.BaseEntity; | import org.dromara.common.mybatis.core.domain.BaseEntity; | ||||||
|  |  | ||||||
| import java.io.Serial; | import java.io.Serial; | ||||||
|  | import java.math.BigDecimal; | ||||||
| import java.time.LocalDate; | import java.time.LocalDate; | ||||||
|  |  | ||||||
| /** | /** | ||||||
| @ -82,7 +83,7 @@ public class XzdContractSkxx extends BaseEntity { | |||||||
|     /** |     /** | ||||||
|      * 累计审批金额 |      * 累计审批金额 | ||||||
|      */ |      */ | ||||||
|     private Long ljspje; |     private BigDecimal ljspje; | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * 数据来源 |      * 数据来源 | ||||||
|  | |||||||
| @ -2,11 +2,9 @@ package org.dromara.xzd.domain; | |||||||
|  |  | ||||||
| import com.baomidou.mybatisplus.annotation.TableId; | import com.baomidou.mybatisplus.annotation.TableId; | ||||||
| import com.baomidou.mybatisplus.annotation.TableName; | import com.baomidou.mybatisplus.annotation.TableName; | ||||||
| import com.fasterxml.jackson.annotation.JsonFormat; |  | ||||||
| import lombok.Data; | import lombok.Data; | ||||||
| import lombok.EqualsAndHashCode; | import lombok.EqualsAndHashCode; | ||||||
| import org.dromara.common.mybatis.core.domain.BaseEntity; | import org.dromara.common.mybatis.core.domain.BaseEntity; | ||||||
| import org.springframework.format.annotation.DateTimeFormat; |  | ||||||
|  |  | ||||||
| import java.io.Serial; | import java.io.Serial; | ||||||
| import java.time.LocalDate; | import java.time.LocalDate; | ||||||
| @ -69,8 +67,8 @@ public class XzdSupplierSupplement extends BaseEntity { | |||||||
|     /** |     /** | ||||||
|      * 创建日期 |      * 创建日期 | ||||||
|      */ |      */ | ||||||
|     @JsonFormat(pattern = "yyyy-MM-dd") | //    @JsonFormat(pattern = "yyyy-MM-dd") | ||||||
|     @DateTimeFormat(pattern = "yyyy-MM-dd") | //    @DateTimeFormat(pattern = "yyyy-MM-dd") | ||||||
|     private LocalDate createDate; |     private LocalDate createDate; | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|  | |||||||
| @ -8,6 +8,7 @@ import org.dromara.xzd.domain.XzdContractSkxx; | |||||||
|  |  | ||||||
| import java.io.Serial; | import java.io.Serial; | ||||||
| import java.io.Serializable; | import java.io.Serializable; | ||||||
|  | import java.math.BigDecimal; | ||||||
| import java.time.LocalDate; | import java.time.LocalDate; | ||||||
|  |  | ||||||
|  |  | ||||||
| @ -94,7 +95,7 @@ public class XzdContractSkxxVo implements Serializable { | |||||||
|      * 累计审批金额 |      * 累计审批金额 | ||||||
|      */ |      */ | ||||||
|     @ExcelProperty(value = "累计审批金额") |     @ExcelProperty(value = "累计审批金额") | ||||||
|     private LocalDate ljspje; |     private BigDecimal ljspje; | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * 数据来源 |      * 数据来源 | ||||||
|  | |||||||
| @ -34,6 +34,7 @@ import org.springframework.context.event.EventListener; | |||||||
| import org.springframework.stereotype.Service; | import org.springframework.stereotype.Service; | ||||||
| import org.springframework.transaction.annotation.Transactional; | import org.springframework.transaction.annotation.Transactional; | ||||||
|  |  | ||||||
|  | import java.time.LocalDate; | ||||||
| import java.util.*; | import java.util.*; | ||||||
|  |  | ||||||
| /** | /** | ||||||
| @ -237,7 +238,7 @@ public class XzdSupplierInfoServiceImpl extends ServiceImpl<XzdSupplierInfoMappe | |||||||
|             bo.getSupplement().setSupplierId(add.getId()); |             bo.getSupplement().setSupplierId(add.getId()); | ||||||
|             if (LoginHelper.getLoginUser() != null){ |             if (LoginHelper.getLoginUser() != null){ | ||||||
|                 bo.getSupplement().setCreator(LoginHelper.getLoginUser().getNickname()); |                 bo.getSupplement().setCreator(LoginHelper.getLoginUser().getNickname()); | ||||||
|                 bo.getSupplement().setCreateDate(new Date()); |                 bo.getSupplement().setCreateDate(LocalDate.now()); | ||||||
|             }else { |             }else { | ||||||
|                 bo.getSupplement().setCreator("暂无"); |                 bo.getSupplement().setCreator("暂无"); | ||||||
|             } |             } | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user