杜函宇 6 days ago
commit 813bc40735

@ -243,6 +243,9 @@
and id = #{assetId} and id = #{assetId}
</select> </select>
<select id="dwHc" resultType="com.ruoyi.tc.entity.response.AssetdwHcResponse"> <select id="dwHc" resultType="com.ruoyi.tc.entity.response.AssetdwHcResponse">
select
h.dwmc,h.task_id,h.latest_create_time,h.task_deadline,h.total,h.checked,h.notChecked,h.dsp,h.shthcs,h.taskStatus
from(
SELECT SELECT
s.dwmc, s.dwmc,
s.task_id, s.task_id,
@ -402,14 +405,14 @@
ssdw, ssdw,
task_id task_id
) AS s left join asset_task b on s.task_id=b.id ) AS s left join asset_task b on s.task_id=b.id
GROUP BY
s.dwmc ,
s.task_id)h
<where> <where>
<if test="req.taskStatus != null and req.taskStatus != ''"> <if test="req.taskStatus != null and req.taskStatus != ''">
b.task_status = #{req.taskStatus} h.taskStatus = #{req.taskStatus}
</if> </if>
</where> </where>
GROUP BY
s.dwmc ,
s.task_id
</select> </select>

Loading…
Cancel
Save