feat():更新内容

master
Yueng 2024-08-07 19:40:49 +08:00
parent edf47ce9f1
commit 0eb48326db
3 changed files with 7 additions and 7 deletions

View File

@ -19,7 +19,7 @@ import lombok.experimental.SuperBuilder;
@NoArgsConstructor @NoArgsConstructor
@AllArgsConstructor @AllArgsConstructor
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)
@TableName(value = "order_pay_customer") @TableName(value = "order_pay_customer",autoResultMap = true)
public class OrderPayCustomer extends BaseEntity { public class OrderPayCustomer extends BaseEntity {
/** /**

View File

@ -27,20 +27,20 @@ public class CustomerListReq {
/** /**
* / * /
*/ */
@Schema(name = "服务/客户名称",type = "String",description = "客户名称,为微服务中文名称") @Schema(type = "String",defaultValue = "客户名称1",description = "客户名称,为微服务中文名称")
private String appName; private String appName;
/** /**
*/ */
*/ */
@Schema(name = "服务/客户编码",type = "String",description = "客户名称,为微服务名称") @Schema(type = "String",defaultValue = "customer_code",description = "客户名称,为微服务名称")
private String appCode; private String appCode;
/** /**
* sys_yes_no * sys_yes_no
*/ */
@Schema(name = "是否开启",type = "String",description = "客户状态Y是开启 N是关闭") @Schema(type = "String",defaultValue = "Y",description = "客户状态Y是开启 N是关闭")
@NotNull // @NotNull
@IsSystemYesNo @IsSystemYesNo
private String status; private String status;
} }

View File

@ -32,11 +32,11 @@ public class OrderPayCustomerServiceImpl
OrderPayCustomer::getAppName,customerListReq.getClass() OrderPayCustomer::getAppName,customerListReq.getClass()
); );
queryWrapper.like( queryWrapper.like(
StringUtils.isNotEmpty(customerListReq.getAppName()), StringUtils.isNotEmpty(customerListReq.getAppCode()),
OrderPayCustomer::getAppCode,customerListReq.getClass() OrderPayCustomer::getAppCode,customerListReq.getClass()
); );
queryWrapper.eq( queryWrapper.eq(
StringUtils.isNotEmpty(customerListReq.getAppName()), StringUtils.isNotEmpty(customerListReq.getStatus()),
OrderPayCustomer::getStatus,customerListReq.getClass() OrderPayCustomer::getStatus,customerListReq.getClass()
); );
return this.list(queryWrapper); return this.list(queryWrapper);