|
@@ -28,9 +28,10 @@
|
|
|
tsi.delete_flag = 0
|
|
|
AND tsi.task_stocktaking_id = #{taskId}
|
|
|
<if test="number != null and number != ''">
|
|
|
- m.name LIKE CONCAT('%',#{number},'%')
|
|
|
+ AND (m.name LIKE CONCAT('%',#{number},'%')
|
|
|
OR me.batch_number LIKE CONCAT('%',#{number},'%')
|
|
|
- OR m.system_sku LIKE CONCAT('%',#{number},'%')
|
|
|
+ OR me.position LIKE CONCAT('%',#{number},'%')
|
|
|
+ OR m.system_sku LIKE CONCAT('%',#{number},'%'))
|
|
|
</if>
|
|
|
<if test="userIdList != null and userIdList.size > 0">
|
|
|
AND tsi.creator IN
|
|
@@ -50,6 +51,9 @@
|
|
|
me.position LIKE CONCAT('%',#{item},'%')
|
|
|
</foreach>
|
|
|
</if>
|
|
|
+ <if test="position != null and position != ''">
|
|
|
+ AND me.position LIKE CONCAT('%',#{position},'%')
|
|
|
+ </if>
|
|
|
<if test="statusList != null and statusList.size > 0">
|
|
|
AND tsi.status IN
|
|
|
<foreach collection="statusList" item="item" open="(" separator="," close=")">
|
|
@@ -67,14 +71,20 @@
|
|
|
tsi.id AS id,
|
|
|
mc.`name` AS category_name,
|
|
|
m.`name` AS material_name,
|
|
|
+ m.standard AS standard,
|
|
|
+ m.model AS model,
|
|
|
+ m.color AS color,
|
|
|
+ m.brand AS brand,
|
|
|
me.position AS position,
|
|
|
me.batch_number AS batch_number,
|
|
|
m.system_sku AS system_sku,
|
|
|
+ me.sku AS sku,
|
|
|
me.commodity_unit AS commodity_unit,
|
|
|
me.production_date AS production_date,
|
|
|
s.supplier AS supplier_name,
|
|
|
me.bar_code AS bar_code,
|
|
|
me.inventory AS inventory,
|
|
|
+ me.expiry_num AS expiry_num,
|
|
|
d.`name` AS depot_name,
|
|
|
tsi.new_position AS new_position,
|
|
|
tsi.new_inventory AS new_inventory,
|
|
@@ -100,7 +110,7 @@
|
|
|
AND me.batch_number = #{batchNumber}
|
|
|
</if>
|
|
|
<if test="position != null and position != ''">
|
|
|
- AND me.position = #{position}
|
|
|
+ AND me.position LIKE CONCAT('%',#{position},'%')
|
|
|
</if>
|
|
|
<if test="isDifference != null and isDifference == '1'">
|
|
|
AND tsi.new_inventory = me.inventory
|