|
@@ -172,7 +172,8 @@
|
|
item_actual_storage,
|
|
item_actual_storage,
|
|
item_lack_number,
|
|
item_lack_number,
|
|
item_create_time,
|
|
item_create_time,
|
|
- item_external_model
|
|
|
|
|
|
+ item_external_model,
|
|
|
|
+ item_canpick_number
|
|
)
|
|
)
|
|
VALUES
|
|
VALUES
|
|
<foreach collection="list" item="item" separator=",">
|
|
<foreach collection="list" item="item" separator=",">
|
|
@@ -180,7 +181,7 @@
|
|
#{item.productionId},#{item.productId},#{item.itemProductName},#{item.itemColorName},
|
|
#{item.productionId},#{item.productId},#{item.itemProductName},#{item.itemColorName},
|
|
#{item.itemProductNum},#{item.itemBrandName},#{item.itemProductModel},#{item.itemProductUnit}
|
|
#{item.itemProductNum},#{item.itemBrandName},#{item.itemProductModel},#{item.itemProductUnit}
|
|
,#{item.itemProductBoxNumber},#{item.itemShouldStorage},#{item.itemActualStorage},#{item.itemLackNumber},NOW(),#{item.itemExternalModel}
|
|
,#{item.itemProductBoxNumber},#{item.itemShouldStorage},#{item.itemActualStorage},#{item.itemLackNumber},NOW(),#{item.itemExternalModel}
|
|
- )
|
|
|
|
|
|
+ ,#{item.itemCanpickNumber})
|
|
</foreach>
|
|
</foreach>
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
@@ -359,7 +360,7 @@
|
|
AND ai.approval_status in (2,6)
|
|
AND ai.approval_status in (2,6)
|
|
</if>
|
|
</if>
|
|
<if test="selectState != null and selectState != '' and selectState == 4">
|
|
<if test="selectState != null and selectState != '' and selectState == 4">
|
|
- AND ai.approval_status = 7
|
|
|
|
|
|
+ AND ai.approval_status in (7,10)
|
|
</if>
|
|
</if>
|
|
<if test="selectState != null and selectState != '' and selectState == 5">
|
|
<if test="selectState != null and selectState != '' and selectState == 5">
|
|
AND ai.approval_status in (1,4)
|
|
AND ai.approval_status in (1,4)
|
|
@@ -437,7 +438,8 @@
|
|
api.item_lack_number itemLackNumber,
|
|
api.item_lack_number itemLackNumber,
|
|
api.item_create_time itemCreateTime,
|
|
api.item_create_time itemCreateTime,
|
|
api.item_update_time itemUpdateTime,
|
|
api.item_update_time itemUpdateTime,
|
|
- api.item_external_model itemExternalModel
|
|
|
|
|
|
+ api.item_external_model itemExternalModel,
|
|
|
|
+ api.item_canpick_number itemCanpickNumber
|
|
from tb_rst_approval_production_item api
|
|
from tb_rst_approval_production_item api
|
|
where
|
|
where
|
|
api.production_id = #{productionId}
|
|
api.production_id = #{productionId}
|
|
@@ -554,11 +556,14 @@
|
|
<update id="updateProductionItem" parameterType="ApprovalProductionItem">
|
|
<update id="updateProductionItem" parameterType="ApprovalProductionItem">
|
|
update tb_rst_approval_production_item
|
|
update tb_rst_approval_production_item
|
|
<set >
|
|
<set >
|
|
- <if test="itemActualStorage != null" >
|
|
|
|
|
|
+ <if test="itemActualStorage != null and itemActualStorage != ''" >
|
|
item_actual_storage = #{itemActualStorage},
|
|
item_actual_storage = #{itemActualStorage},
|
|
</if>
|
|
</if>
|
|
- <if test="itemLackNumber != null" >
|
|
|
|
- item_lack_number = #{itemLackNumber}
|
|
|
|
|
|
+ <if test="itemLackNumber != null and itemLackNumber != ''" >
|
|
|
|
+ item_lack_number = #{itemLackNumber},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="itemCanpickNumber != null and itemCanpickNumber != ''" >
|
|
|
|
+ item_canpick_number = #{itemCanpickNumber}
|
|
</if>
|
|
</if>
|
|
</set>
|
|
</set>
|
|
WHERE
|
|
WHERE
|
|
@@ -609,7 +614,8 @@
|
|
api.item_lack_number itemLackNumber,
|
|
api.item_lack_number itemLackNumber,
|
|
api.item_create_time itemCreateTime,
|
|
api.item_create_time itemCreateTime,
|
|
api.item_update_time itemUpdateTime,
|
|
api.item_update_time itemUpdateTime,
|
|
- api.item_external_model itemExternalModel
|
|
|
|
|
|
+ api.item_external_model itemExternalModel,
|
|
|
|
+ api.item_canpick_number itemCanpickNumber
|
|
from tb_rst_approval_production_item api
|
|
from tb_rst_approval_production_item api
|
|
where
|
|
where
|
|
api.item_id = #{itemId}
|
|
api.item_id = #{itemId}
|