| | |
| | | left join sys_beautician_state c on a.id=c.SERVICES_ID |
| | | WHERE 1 = 1 |
| | | <if test="record!=null"> |
| | | <if test="record.queryKey != null and record.queryKey != ''"> |
| | | and (instr(c.vip_name, #{record.queryKey}) or instr(c.phone, #{record.queryKey}) or instr(a.order_no, #{record.queryKey})) |
| | | </if> |
| | | <if test="record.queryStaffId != null and record.queryStaffId !='' "> |
| | | and (a.CREATE_STAFF_ID = #{record.queryStaffId} or c.STAFF_ID=#{record.queryStaffId} ) |
| | | </if> |
| | |
| | | left join sys_beautician_state c on a.id=c.SERVICES_ID |
| | | WHERE 1 = 1 |
| | | <if test="record!=null"> |
| | | <if test="record.queryKey != null and record.queryKey != ''"> |
| | | and (instr(c.vip_name, #{record.queryKey}) or instr(c.phone, #{record.queryKey}) or instr(a.order_no, #{record.queryKey})) |
| | | </if> |
| | | <if test="record.queryStaffId != null and record.queryStaffId !='' "> |
| | | and (a.CREATE_STAFF_ID = #{record.queryStaffId} or c.STAFF_ID=#{record.queryStaffId} ) |
| | | </if> |