库存现有量

This commit is contained in:
JinLu.Yin 2022-05-31 20:46:19 +08:00
parent b5fe585553
commit f682eca856
3 changed files with 2 additions and 2 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

View File

@ -36,7 +36,7 @@ public class WmTransactionServiceImpl implements IWmTransactionService
private MdItemMapper mdItemMapper;
@Override
public WmTransaction processTransaction(WmTransaction wmTransaction) {
public synchronized WmTransaction processTransaction(WmTransaction wmTransaction) {
WmMaterialStock stock = new WmMaterialStock();
validate(wmTransaction);

View File

@ -45,7 +45,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectWmMaterialStockList" parameterType="WmMaterialStock" resultMap="WmMaterialStockResult">
<include refid="selectWmMaterialStockVo"/>
<where>
<if test="itemTypeId != null "> and item_type_id = #{itemTypeId}</if>
<if test="itemTypeId != null "> AND (item_type_id = #{itemTypeId} OR item_type_id in (select item_type_id from md_item_type where find_in_set(#{itemTypeId},ancestors)))</if>
<if test="itemId != null "> and item_id = #{itemId}</if>
<if test="itemCode != null and itemCode != ''"> and item_code = #{itemCode}</if>
<if test="itemName != null and itemName != ''"> and item_name like concat('%', #{itemName}, '%')</if>