|
|
@ -445,6 +445,18 @@ RecordVersion,OutWorkOrderFlag,ProjectID,OrderType,AuthRuleID,bu) |
|
|
<if test="query.endDate != null"> |
|
|
<if test="query.endDate != null"> |
|
|
AND #{query.endDate} <![CDATA[>=]]> h.NotifyDate |
|
|
AND #{query.endDate} <![CDATA[>=]]> h.NotifyDate |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<choose> |
|
|
|
|
|
<when test="query.workShopList != null and query.workShopList.size >0"> |
|
|
|
|
|
AND w.WorkShopId IN ( |
|
|
|
|
|
<foreach collection="query.workShopList" item="item" separator=","> |
|
|
|
|
|
#{item} |
|
|
|
|
|
</foreach> |
|
|
|
|
|
) |
|
|
|
|
|
</when> |
|
|
|
|
|
<otherwise> |
|
|
|
|
|
AND w.WorkShopId in ('WS005','WS006') |
|
|
|
|
|
</otherwise> |
|
|
|
|
|
</choose> |
|
|
</where> |
|
|
</where> |
|
|
ORDER BY m.NotifyNo, o.needDate, m.ItemNo |
|
|
ORDER BY m.NotifyNo, o.needDate, m.ItemNo |
|
|
</select> |
|
|
</select> |
|
|
@ -497,6 +509,7 @@ RecordVersion,OutWorkOrderFlag,ProjectID,OrderType,AuthRuleID,bu) |
|
|
AND m.timeout_reason is null |
|
|
AND m.timeout_reason is null |
|
|
AND h.Status = '已下达' |
|
|
AND h.Status = '已下达' |
|
|
AND (h.confirm_status = '未确认' OR h.confirm_status IS NULL) |
|
|
AND (h.confirm_status = '未确认' OR h.confirm_status IS NULL) |
|
|
|
|
|
AND w.WorkShopId in ('WS005','WS006') |
|
|
|
|
|
|
|
|
</where> |
|
|
</where> |
|
|
ORDER BY m.NotifyNo, o.needDate, m.ItemNo |
|
|
ORDER BY m.NotifyNo, o.needDate, m.ItemNo |
|
|
|