|
|
|
@ -281,7 +281,7 @@
|
|
|
|
|
#{id}
|
|
|
|
|
</foreach>
|
|
|
|
|
</delete>
|
|
|
|
|
<select id="selectWmsAllocationOutEmbryoList" resultMap="WmsSellOutEmbryoResult">
|
|
|
|
|
<select id="selectWmsAllocationOutEmbryoList" resultMap="WmsAllocationOutEmbryoResult">
|
|
|
|
|
SELECT
|
|
|
|
|
id,
|
|
|
|
|
delivery_order,
|
|
|
|
@ -358,4 +358,91 @@
|
|
|
|
|
<if test="attr10 != null and attr10 != ''">and attr10 = #{attr10}</if>
|
|
|
|
|
</where>
|
|
|
|
|
</select>
|
|
|
|
|
<select id="selectWmsAllocationOutEmbryoById" parameterType="String" resultMap="WmsAllocationOutEmbryoResult">
|
|
|
|
|
SELECT
|
|
|
|
|
id,
|
|
|
|
|
delivery_order,
|
|
|
|
|
Item_number,
|
|
|
|
|
active_flag,
|
|
|
|
|
factory_code,
|
|
|
|
|
wh_code,
|
|
|
|
|
wa_code,
|
|
|
|
|
wl_code,
|
|
|
|
|
delivery_place,
|
|
|
|
|
product_name,
|
|
|
|
|
product_code,
|
|
|
|
|
product_sort,
|
|
|
|
|
specification,
|
|
|
|
|
unit_of_measure,
|
|
|
|
|
lot_number,
|
|
|
|
|
plan_quantity,
|
|
|
|
|
out_quantity,
|
|
|
|
|
status,
|
|
|
|
|
SAP_status,
|
|
|
|
|
SAP_proof,
|
|
|
|
|
SAP_message,
|
|
|
|
|
out_date,
|
|
|
|
|
attr1,
|
|
|
|
|
attr2,
|
|
|
|
|
attr3,
|
|
|
|
|
attr4,
|
|
|
|
|
attr5,
|
|
|
|
|
attr6,
|
|
|
|
|
attr7,
|
|
|
|
|
attr8,
|
|
|
|
|
attr9,
|
|
|
|
|
attr10,
|
|
|
|
|
create_by,
|
|
|
|
|
create_time,
|
|
|
|
|
update_by,
|
|
|
|
|
update_time,
|
|
|
|
|
remark
|
|
|
|
|
FROM
|
|
|
|
|
wms_allocation_out_embryo
|
|
|
|
|
where id = #{id}
|
|
|
|
|
</select>
|
|
|
|
|
<update id="updateWmsAllocationOutEmbryo" >
|
|
|
|
|
update wms_allocation_out_embryo
|
|
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
|
|
<if test="deliveryOrder != null">delivery_order = #{deliveryOrder},</if>
|
|
|
|
|
<if test="itemNumber != null">Item_number = #{itemNumber},</if>
|
|
|
|
|
<if test="factoryCode != null">factory_code = #{factoryCode},</if>
|
|
|
|
|
<if test="whCode != null">wh_code = #{whCode},</if>
|
|
|
|
|
<if test="waCode != null">wa_code = #{waCode},</if>
|
|
|
|
|
<if test="wlCode != null">wl_code = #{wlCode},</if>
|
|
|
|
|
<if test="deliveryPlace != null">delivery_place = #{deliveryPlace},</if>
|
|
|
|
|
<if test="productName != null">product_name = #{productName},</if>
|
|
|
|
|
<if test="productCode != null">product_code = #{productCode},</if>
|
|
|
|
|
<if test="productSort != null">product_sort = #{productSort},</if>
|
|
|
|
|
<if test="specification != null">specification = #{specification},</if>
|
|
|
|
|
<if test="unitOfMeasure != null">unit_of_measure = #{unitOfMeasure},</if>
|
|
|
|
|
<if test="lotNumber != null">lot_number = #{lotNumber},</if>
|
|
|
|
|
<if test="planQuantity != null">plan_quantity = #{planQuantity},</if>
|
|
|
|
|
<if test="outQuantity != null">out_quantity = #{outQuantity},</if>
|
|
|
|
|
<if test="status != null">status = #{status},</if>
|
|
|
|
|
<if test="sapStatus != null">SAP_status = #{sapStatus},</if>
|
|
|
|
|
<if test="sapProof != null">SAP_proof = #{sapProof},</if>
|
|
|
|
|
<if test="sapMessage != null">SAP_message = #{sapMessage},</if>
|
|
|
|
|
<if test="outDate != null">out_date = #{outDate},</if>
|
|
|
|
|
<if test="attr1 != null">attr1 = #{attr1},</if>
|
|
|
|
|
<if test="attr2 != null">attr2 = #{attr2},</if>
|
|
|
|
|
<if test="attr3 != null">attr3 = #{attr3},</if>
|
|
|
|
|
<if test="attr4 != null">attr4 = #{attr4},</if>
|
|
|
|
|
<if test="attr5 != null">attr5 = #{attr5},</if>
|
|
|
|
|
<if test="attr6 != null">attr6 = #{attr6},</if>
|
|
|
|
|
<if test="attr7 != null">attr7 = #{attr7},</if>
|
|
|
|
|
<if test="attr8 != null">attr8 = #{attr8},</if>
|
|
|
|
|
<if test="attr9 != null">attr9 = #{attr9},</if>
|
|
|
|
|
<if test="attr10 != null">attr10 = #{attr10},</if>
|
|
|
|
|
<if test="createBy != null">create_by = #{createBy},</if>
|
|
|
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
|
|
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
|
|
|
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
|
|
<if test="remark != null">remark = #{remark},</if>
|
|
|
|
|
</trim>
|
|
|
|
|
where id = #{id}
|
|
|
|
|
</update>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</mapper>
|
|
|
|
|