|
@@ -58,6 +58,7 @@
|
|
<result column="apply_pick_remk" property="applyPickRemk" jdbcType="VARCHAR" />
|
|
<result column="apply_pick_remk" property="applyPickRemk" jdbcType="VARCHAR" />
|
|
<result column="apply_pick_create_time" property="applyPickCreateTime" jdbcType="TIMESTAMP" />
|
|
<result column="apply_pick_create_time" property="applyPickCreateTime" jdbcType="TIMESTAMP" />
|
|
<result column="apply_pick_update_time" property="applyPickUpdateTime" jdbcType="TIMESTAMP" />
|
|
<result column="apply_pick_update_time" property="applyPickUpdateTime" jdbcType="TIMESTAMP" />
|
|
|
|
+ <result column="production_approval_id" property="productionApprovalId" jdbcType="INTEGER" />
|
|
<collection property="listApplyPickItem" column="apply_pick_id" ofType="ApprovalApplyPickItem" select="listApplyPickItem"/>
|
|
<collection property="listApplyPickItem" column="apply_pick_id" ofType="ApprovalApplyPickItem" select="listApplyPickItem"/>
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
@@ -365,6 +366,9 @@
|
|
<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)
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="selectState != null and selectState != '' and selectState == 6">
|
|
|
|
+ AND ai.approval_status in (6,7,11)
|
|
|
|
+ </if>
|
|
</where>
|
|
</where>
|
|
group by ai.approval_id
|
|
group by ai.approval_id
|
|
ORDER BY ai.approval_id DESC
|
|
ORDER BY ai.approval_id DESC
|
|
@@ -413,7 +417,8 @@
|
|
aap.apply_pick_struts,
|
|
aap.apply_pick_struts,
|
|
aap.apply_pick_remk,
|
|
aap.apply_pick_remk,
|
|
aap.apply_pick_create_time,
|
|
aap.apply_pick_create_time,
|
|
- aap.apply_pick_update_time
|
|
|
|
|
|
+ aap.apply_pick_update_time,
|
|
|
|
+ aap.production_approval_id
|
|
from tb_rst_approval_apply_pick aap
|
|
from tb_rst_approval_apply_pick aap
|
|
where
|
|
where
|
|
aap.approval_id = #{approvalId}
|
|
aap.approval_id = #{approvalId}
|
|
@@ -461,7 +466,8 @@
|
|
aapi.item_product_box_number itemProductBoxNumber,
|
|
aapi.item_product_box_number itemProductBoxNumber,
|
|
aapi.item_create_time itemCreateTime,
|
|
aapi.item_create_time itemCreateTime,
|
|
aapi.item_update_time itemUpdateTime,
|
|
aapi.item_update_time itemUpdateTime,
|
|
- aapi.item_external_model itemExternalModel
|
|
|
|
|
|
+ aapi.item_external_model itemExternalModel,
|
|
|
|
+ aapi.production_item_id productionItemId
|
|
from tb_rst_approval_apply_pick_item aapi
|
|
from tb_rst_approval_apply_pick_item aapi
|
|
where
|
|
where
|
|
aapi.apply_pick_id = #{applyPickId}
|
|
aapi.apply_pick_id = #{applyPickId}
|
|
@@ -556,13 +562,13 @@
|
|
<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 and itemActualStorage != ''" >
|
|
|
|
|
|
+ <if test="itemActualStorage != null" >
|
|
item_actual_storage = #{itemActualStorage},
|
|
item_actual_storage = #{itemActualStorage},
|
|
</if>
|
|
</if>
|
|
- <if test="itemLackNumber != null and itemLackNumber != ''" >
|
|
|
|
|
|
+ <if test="itemLackNumber != null" >
|
|
item_lack_number = #{itemLackNumber},
|
|
item_lack_number = #{itemLackNumber},
|
|
</if>
|
|
</if>
|
|
- <if test="itemCanpickNumber != null and itemCanpickNumber != ''" >
|
|
|
|
|
|
+ <if test="itemCanpickNumber != null" >
|
|
item_canpick_number = #{itemCanpickNumber}
|
|
item_canpick_number = #{itemCanpickNumber}
|
|
</if>
|
|
</if>
|
|
</set>
|
|
</set>
|