|
|
@@ -5,15 +5,15 @@ |
|
|
|
<!-- 获取巡检问题列表 --> |
|
|
|
<select id="getInspectQuestionList" parameterType="com.taauav.front.query.UserInspectQuestionQuery" resultType="com.taauav.front.vo.inspectquestion.UserInspectQuestionListVo"> |
|
|
|
SELECT q.id,q.question_no,q.assign_user,q.`status`,f.src as file_src,o.content as question_type,f.description,d.driver_id,d.driver_name,d.driver_area,c.name as driver_area_name,i.inspect_time |
|
|
|
FROM tauv_inspect_file f |
|
|
|
INNER JOIN tauv_inspect_question q ON f.id=q.inspect_file_id |
|
|
|
INNER JOIN tauv_inspect_driver d ON d.id=f.inspect_driver_id |
|
|
|
INNER JOIN tauv_inspect i ON f.inspect_id=i.id |
|
|
|
FROM tauv_inspect_question q |
|
|
|
LEFT JOIN tauv_inspect_file f ON f.id=q.inspect_file_id |
|
|
|
INNER JOIN tauv_inspect_driver d ON d.id=q.inspect_driver_id |
|
|
|
INNER JOIN tauv_inspect i ON d.inspect_id=i.id |
|
|
|
INNER JOIN sys_city c ON c.id=d.driver_area |
|
|
|
INNER JOIN tauv_question_options o ON o.id=f.question_id |
|
|
|
WHERE q.mark=1 AND f.is_review=1 AND f.is_effective=1 AND f.`status`=1 AND f.mark=1 AND d.mark=1 AND i.mark=1 |
|
|
|
INNER JOIN tauv_question_options o ON o.id=q.question_id |
|
|
|
WHERE q.mark=1 AND d.mark=1 AND i.mark=1 |
|
|
|
<if test="query.questionNo != null"> |
|
|
|
and q.question_no like concat('%', #{query.questionNo}, '%') |
|
|
|
and q.question_no like concat('%', #{query.questionNo}, '%') |
|
|
|
</if> |
|
|
|
<if test="query.driverAreaList != null and query.driverAreaList !=''"> and d.driver_area in |
|
|
|
<foreach collection="query.driverArea" item="area" open="(" close=")" separator=","> |