| | |
| | | <if test="ew.productName != null and ew.productName !=''"> |
| | | and p.product_name like concat('%',#{ew.productName},'%') |
| | | </if> |
| | | <if test="ew.warnOnly != null and ew.warnOnly"> |
| | | and COALESCE(si.warn_num, 0) > 0 |
| | | and (si.qualitity - COALESCE(si.locked_quantity, 0)) <= si.warn_num |
| | | </if> |
| | | </select> |
| | | |
| | | <select id="pageListCombinedStockInventory" resultType="com.ruoyi.stock.dto.StockInventoryDto"> |
| | |
| | | unit, |
| | | product_name, |
| | | product_id |
| | | order by combined.id desc |
| | | </select> |
| | | |
| | | <select id="listStockInventoryExportData" resultType="com.ruoyi.stock.execl.StockInventoryExportData"> |