新功能及bug修改
This commit is contained in:
+10
-14
@@ -38,7 +38,7 @@
|
||||
a.id,
|
||||
a.serial_no as serialNo,
|
||||
a.order_no as orderNo,
|
||||
c.realname as userName,
|
||||
IF(a.member_id = a.pay_member_id,c.realname,CONCAT(c.realname,'-',pay.realname)) as userName,
|
||||
sboi.serial_no as cardCode,
|
||||
sboi.business_model AS businessModel,
|
||||
pay.realname as payUserName,
|
||||
@@ -67,8 +67,8 @@
|
||||
LEFT JOIN st_client_member_balance AS b ON a.member_id = b.member_id
|
||||
LEFT JOIN st_bbzx_order_info AS sboi ON sboi.order_no = a.order_no
|
||||
LEFT JOIN st_base_restaurant AS br ON br.id = a.canteen_id
|
||||
LEFT JOIN sys_user_sub AS c ON a.member_id = c.id
|
||||
LEFT JOIN sys_user_sub AS pay ON a.pay_member_id = pay.id
|
||||
LEFT JOIN sys_user_sub AS c ON a.pay_member_id = c.id
|
||||
LEFT JOIN sys_user_sub AS pay ON a.member_id = pay.id
|
||||
LEFT JOIN sys_pay_depart direct_depart ON pay.depart_ids = direct_depart.id AND direct_depart.del_flag = '0'
|
||||
LEFT JOIN sys_pay_depart parent_depart ON direct_depart.parent_id = parent_depart.id AND parent_depart.del_flag = '0'
|
||||
WHERE a.is_del = 0
|
||||
@@ -140,8 +140,8 @@
|
||||
<if test="vo.dinnerType != null and vo.dinnerType != ''">
|
||||
LEFT JOIN st_bbzx_order_info sboi ON a.order_no = sboi.order_no
|
||||
</if>
|
||||
LEFT JOIN sys_user_sub AS c ON a.member_id = c.id
|
||||
LEFT JOIN sys_user_sub AS pay ON a.pay_member_id = pay.id
|
||||
LEFT JOIN sys_user_sub AS c ON a.pay_member_id = c.id
|
||||
LEFT JOIN sys_user_sub AS pay ON a.member_id = pay.id
|
||||
WHERE a.is_del = 0
|
||||
<if test="vo.startTime != null and vo.endTime !=''">
|
||||
<choose>
|
||||
@@ -176,9 +176,7 @@
|
||||
and c.work_no like CONCAT('%',#{vo.workNo,jdbcType=VARCHAR},'%')
|
||||
</if>
|
||||
<if test="vo.userName != null and vo.userName != ''">
|
||||
and (c.realname like CONCAT('%',#{vo.userName,jdbcType=VARCHAR},'%') or
|
||||
pay.realname like CONCAT('%',#{vo.userName,jdbcType=VARCHAR},'%')
|
||||
)
|
||||
and c.realname like CONCAT('%',#{vo.userName,jdbcType=VARCHAR},'%')
|
||||
</if>
|
||||
<if test="vo.canteenId != null and vo.canteenId != ''">
|
||||
and a.canteen_id = #{vo.canteenId}
|
||||
@@ -194,7 +192,7 @@
|
||||
a.id,
|
||||
a.serial_no as serialNo,
|
||||
a.order_no as orderNo,
|
||||
IF(a.member_id = a.pay_member_id,pay.realname,CONCAT(pay.realname,'-',c.realname)) as userName,
|
||||
IF(a.member_id = a.pay_member_id,c.realname,CONCAT(c.realname,'-',pay.realname)) as userName,
|
||||
c.phone,
|
||||
c.work_no as workNo,
|
||||
a.status,
|
||||
@@ -212,8 +210,8 @@
|
||||
<if test="vo.dinnerType != null and vo.dinnerType != ''">
|
||||
LEFT JOIN st_bbzx_order_info sboi ON a.order_no = sboi.order_no
|
||||
</if>
|
||||
LEFT JOIN sys_user_sub AS c ON a.member_id = c.id
|
||||
LEFT JOIN sys_user_sub AS pay ON a.pay_member_id = pay.id
|
||||
LEFT JOIN sys_user_sub AS c ON a.pay_member_id = c.id
|
||||
LEFT JOIN sys_user_sub AS pay ON a.member_id = pay.id
|
||||
WHERE a.is_del = 0
|
||||
<if test="vo.startTime != null and vo.endTime !=''">
|
||||
<choose>
|
||||
@@ -248,9 +246,7 @@
|
||||
and c.work_no like CONCAT('%',#{vo.workNo,jdbcType=VARCHAR},'%')
|
||||
</if>
|
||||
<if test="vo.userName != null and vo.userName != ''">
|
||||
and (c.realname like CONCAT('%',#{vo.userName,jdbcType=VARCHAR},'%') or
|
||||
pay.realname like CONCAT('%',#{vo.userName,jdbcType=VARCHAR},'%')
|
||||
)
|
||||
and c.realname like CONCAT('%',#{vo.userName,jdbcType=VARCHAR},'%')
|
||||
</if>
|
||||
<if test="vo.canteenId != null and vo.canteenId != ''">
|
||||
and a.canteen_id = #{vo.canteenId}
|
||||
|
||||
Reference in New Issue
Block a user