|
|
|
|
@ -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)) <= 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">
|
|
|
|
|
|