|
|
@@ -267,10 +267,23 @@
|
|
|
</select>
|
|
|
|
|
|
<select id="selectOneCheckedDetailInfo" parameterType="com.xintong.visualinspection.bean.StatisticsBean" resultType="com.xintong.visualinspection.bean.StatisticsBean">
|
|
|
- SELECT t.start_time AS start_date , t.end_time AS end_date,cs.check_item_score AS score , ci.name AS name FROM check_task t
|
|
|
+ SELECT t.start_time AS start_date , t.end_time AS end_date,cs.check_item_score AS score , ci.name AS name, cs.pics ,t.checkman AS checkman_id,
|
|
|
+ t.checked_person AS user_id ,t.checked_dept AS dept_id FROM check_task t
|
|
|
INNER JOIN check_score cs ON t.id = cs.task_id
|
|
|
LEFT JOIN check_item ci ON ci.id = cs.check_item_id
|
|
|
- where t.checked_person = #{user_id}
|
|
|
+ where t.check_status !=22
|
|
|
+ <if test="queryType!=null and queryType==0">
|
|
|
+ AND t.checked_person = #{user_id}
|
|
|
+ </if>
|
|
|
+ <if test="queryType!=null and queryType==1">
|
|
|
+ AND t.checkman = #{user_id}
|
|
|
+ </if>
|
|
|
+ <if test="start_date !=null">
|
|
|
+ AND t.start_time >= #{start_date}
|
|
|
+ </if>
|
|
|
+ <if test="end_date !=null">
|
|
|
+ AND t.end_time <= #{end_date}
|
|
|
+ </if>
|
|
|
</select>
|
|
|
|
|
|
</mapper>
|