Commit 2a00ef4e authored by 李秀明's avatar 李秀明

queryPlanStepByEquipCode查询错误

parent c719da47
...@@ -112,6 +112,12 @@ ...@@ -112,6 +112,12 @@
FROM FROM
c_plan_step_config c_plan_step_config
WHERE WHERE
type = (
SELECT
CONVERT(plan_type USING utf8mb4)
FROM
c_plan_classify_tree
WHERE
id = ( id = (
SELECT DISTINCT SELECT DISTINCT
( t3.classify_id ) ( t3.classify_id )
...@@ -120,9 +126,11 @@ ...@@ -120,9 +126,11 @@
LEFT JOIN c_plan_equipment t2 ON t2.fire_equipment_id = t1.id LEFT JOIN c_plan_equipment t2 ON t2.fire_equipment_id = t1.id
LEFT JOIN c_plan_detail t3 ON t3.id = t2.plan_id LEFT JOIN c_plan_detail t3 ON t3.id = t2.plan_id
WHERE WHERE
t1.code = #{equipCode} t1.CODE = #{equipCode}
ORDER BY t1.create_date desc ORDER BY
t1.create_date DESC
LIMIT 1 LIMIT 1
) )
)
</select> </select>
</mapper> </mapper>
\ No newline at end of file
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