商铺名称

pull/4/head
perry 2023-05-30 16:29:24 +08:00
parent 26c44490cb
commit 3702a8b4ef
3 changed files with 10 additions and 1 deletions

View File

@ -22,7 +22,8 @@ public class RechargeOrderPageReqVO extends PageParam {
@Schema(description = "租户id") @Schema(description = "租户id")
private Long tenantId; private Long tenantId;
@Schema(description = "商铺名称")
private String tenantName;
@Schema(description = "用户id", example = "28969") @Schema(description = "用户id", example = "28969")
private Long uid; private Long uid;

View File

@ -19,6 +19,9 @@ public class RechargeOrderRespVO extends RechargeOrderBaseVO {
private String stringCreateTime; private String stringCreateTime;
@Schema(description = "档次") @Schema(description = "档次")
private String grade; private String grade;
@Schema(description = "商铺名称")
private String tenantName;
@Schema(description = "组织名称") @Schema(description = "组织名称")
private String parentOrganizationName; private String parentOrganizationName;
@Schema(description = "推广员名称") @Schema(description = "推广员名称")

View File

@ -39,6 +39,7 @@
select select
a.order_id, a.order_id,
a.pay_serial_number, a.pay_serial_number,
e.name as tenantName,
a.out_trade_no, a.out_trade_no,
a.pay_time, a.pay_time,
b.nickname, b.nickname,
@ -54,6 +55,7 @@
from cy_recharge_order a from cy_recharge_order a
left join member_user b on a.promoter_id = b.id left join member_user b on a.promoter_id = b.id
left join system_dept d on d.id = a.dept_id left join system_dept d on d.id = a.dept_id
left join system_tenant e on e.id = a.tenant_id
<include refid="baseWhere"> <include refid="baseWhere">
</include> </include>
</select> </select>
@ -108,6 +110,9 @@
<if test="data.tenantId !=null and data.tenantId!=1"> <if test="data.tenantId !=null and data.tenantId!=1">
and a.tenant_id =#{data.tenantId} and a.tenant_id =#{data.tenantId}
</if> </if>
<if test="data.tenantName !=null and data.tenantName!=''">
and d.name like CONCAT('%',#{data.tenantName},'%')
</if>
<if test="data.paySerialNumber !=null and data.paySerialNumber!=''"> <if test="data.paySerialNumber !=null and data.paySerialNumber!=''">
and a.pay_serial_number like CONCAT('%',#{data.paySerialNumber},'%') and a.pay_serial_number like CONCAT('%',#{data.paySerialNumber},'%')
</if> </if>