备品备件台账排序调整

master
FCD 2 months ago
parent 9f6dd7f1df
commit b06d7c038d

@ -144,6 +144,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test='isLow == "1"'>and TRY_CAST(safe_stock AS DECIMAL(18,2)) &lt;= amount</if>
and del_flag = '0'
</where>
ORDER BY
CASE WHEN TRY_CONVERT(numeric(18,2), safe_stock) > amount THEN 0 ELSE 1 END,
gmt_modified DESC,
gmt_create DESC
</select>
<select id="selectSparePartsLedgerByStorageId" parameterType="String" resultMap="SparePartsLedgerResult">

Loading…
Cancel
Save