|
|
|
@ -243,10 +243,13 @@
|
|
|
|
|
and id = #{assetId}
|
|
|
|
|
</select>
|
|
|
|
|
<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
|
|
|
|
|
s.dwmc,
|
|
|
|
|
s.task_id,
|
|
|
|
|
CURRENT_TIMESTAMP AS latest_create_time, -- 使用当前时间
|
|
|
|
|
CURRENT_TIMESTAMP AS latest_create_time, -- 使用当前时间
|
|
|
|
|
b.task_deadline,
|
|
|
|
|
SUM(s.total) AS total,
|
|
|
|
|
SUM(s.checked) AS checked,
|
|
|
|
@ -402,14 +405,14 @@
|
|
|
|
|
ssdw,
|
|
|
|
|
task_id
|
|
|
|
|
) AS s left join asset_task b on s.task_id=b.id
|
|
|
|
|
GROUP BY
|
|
|
|
|
s.dwmc ,
|
|
|
|
|
s.task_id)h
|
|
|
|
|
<where>
|
|
|
|
|
<if test="req.taskStatus != null and req.taskStatus != ''">
|
|
|
|
|
b.task_status = #{req.taskStatus}
|
|
|
|
|
h.taskStatus = #{req.taskStatus}
|
|
|
|
|
</if>
|
|
|
|
|
</where>
|
|
|
|
|
GROUP BY
|
|
|
|
|
s.dwmc ,
|
|
|
|
|
s.task_id
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</select>
|
|
|
|
|