zq-erp/src/main/resources/mybatis/mapper/hive/SysProjServicesDao.xml
@@ -307,7 +307,7 @@
      FROM sys_proj_services a
      LEFT JOIN sys_vip_info b on b.ID=a.VIP_ID
      left join sys_beautician_state c on a.id=c.SERVICES_ID
      WHERE 1 = 1
      WHERE 1 = 1 and (b.IS_DELETE is null or b.IS_DELETE = '')
      <if test="record!=null">
         <if test="record.queryStaffId != null and record.queryStaffId !='' ">
            and (a.CREATE_STAFF_ID  = #{record.queryStaffId}  or c.STAFF_ID=#{record.queryStaffId}  )
@@ -374,7 +374,7 @@
      FROM sys_proj_services a
      LEFT JOIN sys_vip_info b on b.ID=a.VIP_ID
      left join sys_beautician_state c on a.id=c.SERVICES_ID
      WHERE 1 = 1
      WHERE 1 = 1 and (b.IS_DELETE is null or b.IS_DELETE = '')
      <if test="record!=null">
         <if test="record.queryStaffId != null and record.queryStaffId !='' ">
            and (a.CREATE_STAFF_ID  = #{record.queryStaffId}  or c.STAFF_ID=#{record.queryStaffId}  )
@@ -443,7 +443,7 @@
      FROM sys_proj_services a
      LEFT JOIN sys_vip_info b on b.ID=a.VIP_ID
      left join sys_beautician_state c on a.id=c.SERVICES_ID
      where  a.ID=#{id}
      where  a.ID=#{id} and (b.IS_DELETE is null or b.IS_DELETE = '')
   </select>
   <select id="selectNeedNoticeService" resultMap="SysProjServicesMap">
@@ -455,7 +455,7 @@
      LEFT JOIN sys_vip_info b on b.ID=a.VIP_ID
      where   a.YY_TIME > now()
      and DATE_ADD(now(),INTERVAL 1 HOUR) > a.YY_TIME
      and overtime_notice is null
      and overtime_notice is null  and (b.IS_DELETE is null or b.IS_DELETE = '')
   </select>
@@ -476,7 +476,7 @@
      FROM sys_proj_services a
      LEFT JOIN sys_vip_info b on b.ID=a.VIP_ID
      left join sys_beautician_state c on a.id=c.SERVICES_ID
      WHERE 1 = 1
      WHERE 1 = 1 and (b.IS_DELETE is null or b.IS_DELETE = '')
      <if test="record!=null">
         <if test="record.queryStaffId != null and record.queryStaffId !='' ">
            and (a.CREATE_STAFF_ID  = #{record.queryStaffId}  or c.STAFF_ID=#{record.queryStaffId}  )
@@ -570,7 +570,7 @@
      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}
         and a.company_id=#{record.companyId} and (e.IS_DELETE is null or e.IS_DELETE = '')
         <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>
@@ -607,7 +607,7 @@
      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}
         and a.company_id=#{record.companyId} and (e.IS_DELETE is null or e.IS_DELETE = '')
         <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>
@@ -666,6 +666,7 @@
      left join sys_shop_info h on a.SHOP_ID=h.ID
      left join shopping_goods m on g.proj_id=m.id
      <where>
         and (e.IS_DELETE is null or e.IS_DELETE = '')
         <if test="queryKey != null and queryKey != ''">
            and instr(a.SERVICE_NO, #{queryKey})
         </if>
@@ -717,7 +718,7 @@
      left join sys_proj_use g on b.puse_id=g.ID
      left join sys_shop_info h on a.SHOP_ID=h.ID
      left join shopping_goods m on g.proj_id=m.id
      where a.id=#{id}
      where a.id=#{id} and (e.IS_DELETE is null or e.IS_DELETE = '')
   </select>