| | |
| | | <update id="updateLocked"> |
| | | update stock_inventory |
| | | set locked = #{locked} |
| | | where product_model_id = #{ew.productModelId} |
| | | where product_model_id = #{productModelId} |
| | | <if test="batchNo == null"> |
| | | and batch_no is null |
| | | </if> |
| | | <if test="batchNo != null"> |
| | | and batch_no = #{ew.batchNo} |
| | | and batch_no = #{batchNo} |
| | | </if> |
| | | </update> |
| | | <select id="pagestockInventory" resultType="com.ruoyi.stock.dto.StockInventoryDto"> |
| | |
| | | from stock_inventory si |
| | | left join product_model pm on si.product_model_id = pm.id |
| | | left join product p on pm.product_id = p.id |
| | | where 1 = 1 |
| | | where 1 = 1 and si.locked = 0 |
| | | <if test="ew.productName != null and ew.productName !=''"> |
| | | and p.product_name like concat('%',#{ew.productName},'%') |
| | | </if> |