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
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName(value = "order_pay_customer")
@TableName(value = "order_pay_customer",autoResultMap = true)
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;
/**
*/
*/
@Schema(name = "服务/客户编码",type = "String",description = "客户名称,为微服务名称")
@Schema(type = "String",defaultValue = "customer_code",description = "客户名称,为微服务名称")
private String appCode;
/**
* sys_yes_no
*/
@Schema(name = "是否开启",type = "String",description = "客户状态Y是开启 N是关闭")
@NotNull
@Schema(type = "String",defaultValue = "Y",description = "客户状态Y是开启 N是关闭")
// @NotNull
@IsSystemYesNo
private String status;
}

View File

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