Эх сурвалжийг харах

修改bug:
私有应收 导出的表签单日期没有显示

jiakai 2 сар өмнө
parent
commit
d4b793e964

+ 2 - 1
commons/src/main/java/com/jzg/commons/entity/finance/po/InsPlyIncome.java

@@ -3,6 +3,7 @@ package com.jzg.commons.entity.finance.po;
 import com.alibaba.excel.annotation.ExcelIgnore;
 import com.alibaba.excel.annotation.ExcelProperty;
 import com.baomidou.mybatisplus.annotation.TableField;
+import com.fasterxml.jackson.annotation.JsonFormat;
 import com.jzg.commons.core.base.BaseModel;
 import com.jzg.commons.entity.po.InsFeeOrders;
 import io.swagger.v3.oas.annotations.media.Schema;
@@ -56,7 +57,7 @@ public class InsPlyIncome extends BaseModel {
 
     @Schema(description = "签单时间")
     //@TableField(exist = false)
-    @ExcelIgnore
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
     private LocalDateTime signingTime;
 
     @Schema(description = "签单年份")

+ 1 - 0
tenant/organization/src/main/java/com/jzg/organization/service/impl/ReceivableServiceImpl.java

@@ -5418,6 +5418,7 @@ public class ReceivableServiceImpl extends ServiceImpl<ReceivableMapper, InsPlyI
         if(CollUtil.isNotEmpty(records)){
             exportOtherExcelDtos = records.stream().map(action->{
                 ExportOtherExcelDto dto = new  ExportOtherExcelDto();
+                dto.setSigningTime(null != action.getSigningTime() ? action.getSigningTime().format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss")) : "");
                 BeanUtils.copyProperties(action,dto);
                 return dto;
             }).toList();