| | |
| | | <result column="create_time" property="createTime" /> |
| | | <result column="update_time" property="updateTime" /> |
| | | <result column="version" property="version" /> |
| | | <result column="remark" property="remark" /> |
| | | <result column="locked_quantity" property="lockedQuantity" /> |
| | | <result column="stock_location" property="stockLocation" /> |
| | | </resultMap> |
| | | <update id="updateSubtractStockUnInventory"> |
| | | update stock_uninventory |
| | |
| | | su.version, |
| | | su.update_time, |
| | | (su.qualitity - COALESCE(su.locked_quantity, 0)) as un_locked_quantity, |
| | | su.remark, |
| | | su.stock_location, |
| | | pm.model, |
| | | pm.unit, |
| | | p.product_name |
| | |
| | | where pm.product_type = #{ew.productType} |
| | | <if test="ew.productName != null and ew.productName !=''"> |
| | | and p.product_name like concat('%',#{ew.productName},'%') |
| | | </if> |
| | | <if test="ew.stockLocation != null and ew.stockLocation != ''"> |
| | | and su.stock_location = #{ew.stockLocation} |
| | | </if> |
| | | </select> |
| | | <select id="listStockInventoryExportData" resultType="com.ruoyi.stock.execl.StockUnInventoryExportData"> |
| | |
| | | <if test="ew.productName != null and ew.productName !=''"> |
| | | and p.product_name like concat('%',#{ew.productName},'%') |
| | | </if> |
| | | <if test="ew.stockLocation != null and ew.stockLocation != ''"> |
| | | and su.stock_location = #{ew.stockLocation} |
| | | </if> |
| | | </select> |
| | | |
| | | </mapper> |