|
@@ -30,8 +30,6 @@
|
|
|
select
|
|
|
ci.user_id_ as userId,
|
|
|
ci.id_ as couponIssueId,
|
|
|
- su.real_name_ as realName,
|
|
|
- su.username_ as username,
|
|
|
ci.client_type_ as clientType,
|
|
|
ci.issue_way_ as issueWay,
|
|
|
ci.order_no_ as orderNo,
|
|
@@ -49,7 +47,9 @@
|
|
|
cou.use_limit_ as useLimit,
|
|
|
cou.discount_price_ as discountPrice
|
|
|
from coupon_issue ci
|
|
|
- left join sys_user su on ci.user_id_ = su.id_
|
|
|
+ <if test="query.userId != null or (query.keyword != null and query.keyword != '')">
|
|
|
+ left join sys_user su on ci.user_id_ = su.id_
|
|
|
+ </if>
|
|
|
left join coupon_info cou on cou.id_ = ci.coupon_id_
|
|
|
<where>
|
|
|
<if test="query.userId != null">
|