935090232@qq.com
2021-01-15 e971ea090aa1f320f3c3f78c3a2a8d50f16dd4d0
zq-erp/src/main/resources/mybatis/mapper/hive/SysBeauticianStateDao.xml
@@ -327,6 +327,8 @@
       <![CDATA[ a.BEGIN_TIME > #{beginTime}
        and a.END_TIME < #{endTime}
        and a.STAFF_ID = #{suId} ]]>
        and  a.STATE !='预约取消'
        and  a.STATE !='待确认'
        order by a.BEGIN_TIME asc
    </select>
@@ -355,9 +357,9 @@
         SERVICES_ID,
         EXC_TIME,
         extract,
         a.puse_id,
         a.count,
         a.proj_id
         puse_id,
         count,
         proj_id
   </sql>
    <sql id="from">
      from sys_beautician_state 
@@ -614,4 +616,17 @@
        group by c.id,f.id) t
    </select>
    <select id="selectByProjUse" resultMap="SysBeauticianStateMap">
        select * from sys_beautician_state
        where state!=#{state} and puse_id in
        <foreach collection="list" index="index" item="item" open="("
                 separator="," close=")">
            #{item.id}
        </foreach>
    </select>
    <select id="selectBeauticianStateByPuseIdAndNoStatus" resultMap="SysBeauticianStateMap">
        select * from sys_beautician_state
        where puse_id=#{puseId} and state!=#{state}
    </select>
</mapper>