Commit e3c8c2da authored by 吴俊凯's avatar 吴俊凯

巡检计划导出修改

parent 93ae5954
...@@ -36,9 +36,9 @@ ...@@ -36,9 +36,9 @@
LEFT JOIN `p_plan` `e` ON `a`.`plan_id` = `e`.`id` LEFT JOIN `p_plan` `e` ON `a`.`plan_id` = `e`.`id`
</if> </if>
<if test="pointName!=null or pointNo!=null or isFixed!=null or catalogId!=null or pointId!=null or pointId!=''"> <if test="pointName!=null or pointNo!=null or isFixed!=null or catalogId!=null or pointId!=null or pointId!=''">
LEFT JOIN `p_point` `b` ON `a`.`point_id` = `b`.`id` LEFT JOIN `p_point` `b` ON `a`.`point_id` = `b`.`id`
</if> </if>
<!-- </choose> --> <!-- </choose> -->
<trim prefix="WHERE" prefixOverrides="AND "> <trim prefix="WHERE" prefixOverrides="AND ">
<if test="beginDate!=null and endDate!=null">and a.check_time BETWEEN #{beginDate} and #{endDate}</if> <if test="beginDate!=null and endDate!=null">and a.check_time BETWEEN #{beginDate} and #{endDate}</if>
...@@ -578,7 +578,7 @@ ...@@ -578,7 +578,7 @@
AND ii.id = ci.input_id AND ii.id = ci.input_id
AND c.id = #{checkId} AND c.id = #{checkId}
ORDER BY ORDER BY
ci.order_no ci.order_no
</select> </select>
<select id="queryCheckImgs" resultType="Map"> <select id="queryCheckImgs" resultType="Map">
...@@ -737,9 +737,9 @@ ...@@ -737,9 +737,9 @@
) AS `Finish_Status`, ) AS `Finish_Status`,
CASE CASE
WHEN a.is_ok = '1' THEN WHEN a.is_ok = '1' THEN
'合格' '正常'
WHEN a.is_ok = '2' THEN WHEN a.is_ok = '2' THEN
'不合格' '异常'
ELSE ELSE
'漏检' '漏检'
END AS isOk, END AS isOk,
...@@ -1650,12 +1650,12 @@ ...@@ -1650,12 +1650,12 @@
END finish END finish
FROM FROM
p_check c p_check c
LEFT JOIN p_plan p ON c.plan_id = p.id LEFT JOIN p_plan p ON c.plan_id = p.id
LEFT JOIN p_plan_task pnt ON c.plan_task_id = pnt.id LEFT JOIN p_plan_task pnt ON c.plan_task_id = pnt.id
LEFT JOIN p_route r ON c.route_id = r.id LEFT JOIN p_route r ON c.route_id = r.id
LEFT JOIN p_point pt ON c.point_id = pt.id LEFT JOIN p_point pt ON c.point_id = pt.id
LEFT JOIN s_department d ON d.id = u.department_id LEFT JOIN s_department d ON d.id = u.department_id
WHERE 1=1 WHERE 1=1
<choose> <choose>
<when test=" statisticsTyle == 1 "> <when test=" statisticsTyle == 1 ">
and r.id is not NULL and r.id is not NULL
...@@ -2145,9 +2145,9 @@ ...@@ -2145,9 +2145,9 @@
pc.user_id as userId, pc.user_id as userId,
pc.id checkId pc.id checkId
FROM FROM
p_check pc p_check pc
LEFT JOIN p_point pp ON pp.id = pc.point_id LEFT JOIN p_point pp ON pp.id = pc.point_id
WHERE pc.id = #{checkId} WHERE pc.id = #{checkId}
</select> </select>
<resultMap id="CheckInputBuMap" type="com.yeejoin.amos.patrol.common.core.response.CheckInputBusinessResponse"> <resultMap id="CheckInputBuMap" type="com.yeejoin.amos.patrol.common.core.response.CheckInputBusinessResponse">
...@@ -2155,7 +2155,7 @@ ...@@ -2155,7 +2155,7 @@
<result property="pointInputitemName" column="pointInputitemName"/> <result property="pointInputitemName" column="pointInputitemName"/>
<result property="pointInputitemId" column="pointInputitemId"/> <result property="pointInputitemId" column="pointInputitemId"/>
<result property="checkInputitemId" column="checkInputitemId"/> <result property="checkInputitemId" column="checkInputitemId"/>
<result property="pointClassifyId" column="pointClassifyId"/> <result property="pointClassifyId" column="pointClassifyId"/>
</resultMap> </resultMap>
<select id="queryPointInputBu" resultMap="CheckInputBuMap"> <select id="queryPointInputBu" resultMap="CheckInputBuMap">
SELECT SELECT
...@@ -2172,7 +2172,7 @@ ...@@ -2172,7 +2172,7 @@
WHERE WHERE
pci.check_id = #{checkId} pci.check_id = #{checkId}
</select> </select>
<select id="getCheckPhotosByCheckAndInputIdAndClassifyId" resultType="String"> <select id="getCheckPhotosByCheckAndInputIdAndClassifyId" resultType="String">
SELECT SELECT
cs.photo_data cs.photo_data
......
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