| | |
| | | left join sys_proj_use g on b.puse_id=g.ID |
| | | left join sys_shop_info h on a.SHOP_ID=h.ID |
| | | <where> |
| | | and a.company_id=#{record.companyId} |
| | | <if test="record.queryKey != null and record.queryKey != ''"> |
| | | and (instr(a.SERVICE_NO, #{record.queryKey}) or instr(e.phone, #{record.queryKey}) or instr(e.vip_name, #{record.queryKey}) ) |
| | | </if> |
| | |
| | | left join sys_users f on f.su_id=b.STAFF_ID |
| | | left join sys_proj_use g on b.puse_id=g.ID |
| | | <where> |
| | | and a.company_id=#{record.companyId} |
| | | <if test="record.queryKey != null and record.queryKey != ''"> |
| | | and (instr(a.SERVICE_NO, #{record.queryKey}) or instr(e.phone, #{record.queryKey}) or instr(e.vip_name, #{record.queryKey}) ) |
| | | </if> |