feat():优化导出接口

master
zhang chengzhi 2024-08-10 10:08:48 +08:00
parent 0dbcefefb3
commit 83a232d2b5
2 changed files with 14 additions and 11 deletions

View File

@ -10,6 +10,7 @@ import lombok.Builder;
import lombok.Data; import lombok.Data;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder; import lombok.experimental.SuperBuilder;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date; import java.util.Date;
import java.util.List; import java.util.List;
@ -44,7 +45,7 @@ public class CustomerResp {
* / * /
*/ */
@Excel( @Excel(
name = "登录名称" name = "客户名称"
) )
@Schema(description = "客户名称", defaultValue = "商品服务", type = "String") @Schema(description = "客户名称", defaultValue = "商品服务", type = "String")
private String appName; private String appName;
@ -53,9 +54,9 @@ public class CustomerResp {
* / * /
*/ */
@Excel( @Excel(
name = "登录名称" name = "客户编码"
) )
@Schema(description = "客户ID", defaultValue = "cloud_order", type = "String") @Schema(description = "客户编码", defaultValue = "cloud_order", type = "String")
private String appCode; private String appCode;
@ -63,19 +64,20 @@ public class CustomerResp {
* *
*/ */
@Excel( @Excel(
name = "登录名称" name = "客户状态"
) )
@Schema(description = "客户状态,同数据字典-系统是否", defaultValue = "Y", type = "String") @Schema(description = "客户状态,同数据字典-系统是否", defaultValue = "Y", type = "String")
private String status; private String status;
@Excel( @Excel(
name = "登录名称" name = "创建人"
) )
@Schema(description = "创建人", defaultValue = "muyu", type = "String") @Schema(description = "创建人", defaultValue = "muyu", type = "String")
private String createBy; private String createBy;
@Excel( @Excel(
name = "登录名称" name = "创建时间"
) )
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@Schema(description = "创建时间", defaultValue = "2024-8-1 0:22:36", type = "Date") @Schema(description = "创建时间", defaultValue = "2024-8-1 0:22:36", type = "Date")
private Date createTime; private Date createTime;

View File

@ -11,11 +11,12 @@
<artifactId>cloud-pay-server</artifactId> <artifactId>cloud-pay-server</artifactId>
<!-- <properties>--> <properties>
<!-- <maven.compiler.source>17</maven.compiler.source>--> <maven.compiler.source>17</maven.compiler.source>
<!-- <maven.compiler.target>17</maven.compiler.target>--> <maven.compiler.target>17</maven.compiler.target>
<!-- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>--> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<!-- </properties>--> </properties>
<dependencies> <dependencies>
<!-- SpringCloud Alibaba Nacos --> <!-- SpringCloud Alibaba Nacos -->