Commit f9b830ba by huluobin

update

parent 478ed0da
......@@ -131,34 +131,34 @@
date_format(days, '%Y-%m-%d') = #{days}
</select>
<!-- <select id="listClassesTechnician" resultMap="classesTechnicianMap">-->
<!-- SELECT-->
<!-- <include refid="storeClassesTechnicianSql"/>,-->
<!-- <include refid="storeClassesSql"/>,-->
<!-- <include refid="storeTechnicianSql"/>,-->
<!-- <include refid="scheduleServeSql"/>-->
<!-- FROM store_classes_technician ct-->
<!-- LEFT JOIN store_classes cls ON cls.id = ct.classes-->
<!-- LEFT JOIN store_technician tech ON tech.id = ct.user_id-->
<!-- LEFT JOIN (-->
<!-- SELECT t4.*-->
<!-- FROM scheduled_serve t4-->
<!-- inner JOIN scheduled_manage t5 ON t4.sch_id = t5.id-->
<!-- AND t5.STATUS != 3-->
<!-- AND t5.STATUS != 4-->
<!-- AND t5.STATUS != 5-->
<!-- AND t5.STATUS != 2-->
<!-- and t4.status !=3-->
<!-- WHERE t4.start_time LIKE concat(#{days},'%')-->
<!-- <if test="scheduleId != null">-->
<!-- and t5.id != #{scheduleId}-->
<!-- </if>) ss ON ct.user_id = ss.technician_id-->
<!-- left join recent_deducted_complaint_score t6 on t6.technician_id = tech.id-->
<!-- WHERE ct.days = #{days}-->
<!-- AND tech.user_id IN (SELECT user_id FROM staff_store_authority WHERE store_id = #{departmentId})-->
<!-- AND cls.department_id = #{departmentId}-->
<!-- and tech.`status`=1-->
<!-- </select>-->
<!-- <select id="listClassesTechnician" resultMap="classesTechnicianMap">-->
<!-- SELECT-->
<!-- <include refid="storeClassesTechnicianSql"/>,-->
<!-- <include refid="storeClassesSql"/>,-->
<!-- <include refid="storeTechnicianSql"/>,-->
<!-- <include refid="scheduleServeSql"/>-->
<!-- FROM store_classes_technician ct-->
<!-- LEFT JOIN store_classes cls ON cls.id = ct.classes-->
<!-- LEFT JOIN store_technician tech ON tech.id = ct.user_id-->
<!-- LEFT JOIN (-->
<!-- SELECT t4.*-->
<!-- FROM scheduled_serve t4-->
<!-- inner JOIN scheduled_manage t5 ON t4.sch_id = t5.id-->
<!-- AND t5.STATUS != 3-->
<!-- AND t5.STATUS != 4-->
<!-- AND t5.STATUS != 5-->
<!-- AND t5.STATUS != 2-->
<!-- and t4.status !=3-->
<!-- WHERE t4.start_time LIKE concat(#{days},'%')-->
<!-- <if test="scheduleId != null">-->
<!-- and t5.id != #{scheduleId}-->
<!-- </if>) ss ON ct.user_id = ss.technician_id-->
<!-- left join recent_deducted_complaint_score t6 on t6.technician_id = tech.id-->
<!-- WHERE ct.days = #{days}-->
<!-- AND tech.user_id IN (SELECT user_id FROM staff_store_authority WHERE store_id = #{departmentId})-->
<!-- AND cls.department_id = #{departmentId}-->
<!-- and tech.`status`=1-->
<!-- </select>-->
<select id="listClassesTechnician" resultMap="classesTechnicianMap">
select
......@@ -228,7 +228,7 @@
FROM store_classes_technician t1
LEFT JOIN store_classes t2 ON t1.classes = t2.id
WHERE (t1.days = #{day} AND t2.department_id = #{departmentId})
OR (t1.classes = 0 AND t1.days = #{day})
</select>
<update id="updateClassesTechnician" parameterType="com.gogirl.domain.store.store.StoreClassesTechnician">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment