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.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
import java.util.List;
@ -44,7 +45,7 @@ public class CustomerResp {
* /
*/
@Excel(
name = "登录名称"
name = "客户名称"
)
@Schema(description = "客户名称", defaultValue = "商品服务", type = "String")
private String appName;
@ -53,9 +54,9 @@ public class CustomerResp {
* /
*/
@Excel(
name = "登录名称"
name = "客户编码"
)
@Schema(description = "客户ID", defaultValue = "cloud_order", type = "String")
@Schema(description = "客户编码", defaultValue = "cloud_order", type = "String")
private String appCode;
@ -63,19 +64,20 @@ public class CustomerResp {
*
*/
@Excel(
name = "登录名称"
name = "客户状态"
)
@Schema(description = "客户状态,同数据字典-系统是否", defaultValue = "Y", type = "String")
private String status;
@Excel(
name = "登录名称"
name = "创建人"
)
@Schema(description = "创建人", defaultValue = "muyu", type = "String")
private String createBy;
@Excel(
name = "登录名称"
name = "创建时间"
)
@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")
private Date createTime;

View File

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