| | |
| | | left JOIN sys_users c on c.su_id=a.STAFF_ID |
| | | left JOIN sys_users e on e.su_id=a.cashier_id |
| | | left JOIN sys_shop_info d on d.ID=a.SHOP_ID |
| | | where 1=1 and (b.IS_DELETE is null or b.IS_DELETE = '') |
| | | where 1=1 |
| | | <if test="record!=null"> |
| | | <if test="record.keyWordVo != null and record.keyWordVo!='' "> |
| | | and (b.PHONE like concat('%',#{record.keyWordVo},'%') |
| | |
| | | LEFT JOIN sys_vip_info b on b.ID=a.VIP_ID |
| | | left JOIN sys_users c on c.su_id=a.STAFF_ID |
| | | left JOIN sys_shop_info d on d.ID=a.SHOP_ID |
| | | where 1=1 and (b.IS_DELETE is null or b.IS_DELETE = '') |
| | | where 1=1 |
| | | <if test="record!=null"> |
| | | <if test="record.keyWordVo != null and record.keyWordVo!='' "> |
| | | and (b.PHONE like concat('%',#{record.keyWordVo},'%') |
| | |
| | | where a.id=#{id} |
| | | </select> |
| | | |
| | | <!-- 根据id查询 --> |
| | | <select id="selectByIds" resultMap="SysOrderMap"> |
| | | select |
| | | a.*, |
| | | c.su_name as STAFF_NAME, e.su_name as cashierName, |
| | | d.SHOP_NAME, |
| | | d.shop_short_name, |
| | | b.PHONE, |
| | | b.VIP_NAME |
| | | from sys_order a |
| | | LEFT JOIN sys_vip_info b on b.ID=a.VIP_ID |
| | | left JOIN sys_users c on c.su_id=a.STAFF_ID |
| | | left JOIN sys_users e on e.su_id=a.cashier_id |
| | | left JOIN sys_shop_info d on d.ID=a.SHOP_ID |
| | | where a.id in |
| | | <foreach collection="list" index="index" item="item" open="(" |
| | | separator="," close=")"> |
| | | #{item} |
| | | </foreach> |
| | | </select> |
| | | |
| | | |
| | | <!-- 根据对象查询 --> |
| | | <select id="selectByModel" resultMap="SysOrderMap"> |