|
|
@ -41,6 +41,7 @@
|
|
|
|
<result property="price" column="price"/>
|
|
|
|
<result property="price" column="price"/>
|
|
|
|
<result property="stockOrgId" column="stock_org_id"/>
|
|
|
|
<result property="stockOrgId" column="stock_org_id"/>
|
|
|
|
<result property="tondBae" column="tond_base"/>
|
|
|
|
<result property="tondBae" column="tond_base"/>
|
|
|
|
|
|
|
|
<result property="specificationParameter" column="specification_parameter"/>
|
|
|
|
</resultMap>
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
|
|
<sql id="selectMesSaleOrderVo">
|
|
|
|
<sql id="selectMesSaleOrderVo">
|
|
|
@ -74,6 +75,7 @@
|
|
|
|
update_by,
|
|
|
|
update_by,
|
|
|
|
update_time,
|
|
|
|
update_time,
|
|
|
|
aux_prop_id,
|
|
|
|
aux_prop_id,
|
|
|
|
|
|
|
|
specification_parameter,
|
|
|
|
stock_id,
|
|
|
|
stock_id,
|
|
|
|
sale_dept_id,
|
|
|
|
sale_dept_id,
|
|
|
|
owner_id,
|
|
|
|
owner_id,
|
|
|
@ -157,6 +159,7 @@
|
|
|
|
<if test="updateBy != null">update_by,</if>
|
|
|
|
<if test="updateBy != null">update_by,</if>
|
|
|
|
<if test="updateTime != null">update_time,</if>
|
|
|
|
<if test="updateTime != null">update_time,</if>
|
|
|
|
<if test="auxPropId != null">aux_prop_id,</if>
|
|
|
|
<if test="auxPropId != null">aux_prop_id,</if>
|
|
|
|
|
|
|
|
<if test="specificationParameter != null">specification_parameter,</if>
|
|
|
|
<if test="stockId != null">stock_id,</if>
|
|
|
|
<if test="stockId != null">stock_id,</if>
|
|
|
|
<if test="saleDeptId != null">sale_dept_id,</if>
|
|
|
|
<if test="saleDeptId != null">sale_dept_id,</if>
|
|
|
|
<if test="ownerId != null">owner_id,</if>
|
|
|
|
<if test="ownerId != null">owner_id,</if>
|
|
|
@ -193,6 +196,7 @@
|
|
|
|
<if test="updateBy != null">#{updateBy},</if>
|
|
|
|
<if test="updateBy != null">#{updateBy},</if>
|
|
|
|
<if test="updateTime != null">#{updateTime},</if>
|
|
|
|
<if test="updateTime != null">#{updateTime},</if>
|
|
|
|
<if test="auxPropId != null">#{auxPropId},</if>
|
|
|
|
<if test="auxPropId != null">#{auxPropId},</if>
|
|
|
|
|
|
|
|
<if test="specificationParameter != null">#{specificationParameter},</if>
|
|
|
|
<if test="stockId != null">#{stockId},</if>
|
|
|
|
<if test="stockId != null">#{stockId},</if>
|
|
|
|
<if test="saleDeptId != null">#{saleDeptId},</if>
|
|
|
|
<if test="saleDeptId != null">#{saleDeptId},</if>
|
|
|
|
<if test="ownerId != null">#{ownerId},</if>
|
|
|
|
<if test="ownerId != null">#{ownerId},</if>
|
|
|
@ -233,6 +237,7 @@
|
|
|
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
|
|
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
|
|
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
|
<if test="auxPropId != null">aux_prop_id=#{auxPropId},</if>
|
|
|
|
<if test="auxPropId != null">aux_prop_id=#{auxPropId},</if>
|
|
|
|
|
|
|
|
<if test="specificationParameter != null">specification_parameter=#{specificationParameter},</if>
|
|
|
|
<if test="stockId != null">stock_id=#{stockId},</if>
|
|
|
|
<if test="stockId != null">stock_id=#{stockId},</if>
|
|
|
|
<if test="saleDeptId != null">sale_dept_id=#{saleDeptId},</if>
|
|
|
|
<if test="saleDeptId != null">sale_dept_id=#{saleDeptId},</if>
|
|
|
|
<if test="ownerId != null">owner_id=#{ownerId},</if>
|
|
|
|
<if test="ownerId != null">owner_id=#{ownerId},</if>
|
|
|
@ -273,9 +278,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<insert id="batchMesBaseSaleOrder">
|
|
|
|
<insert id="batchMesBaseSaleOrder">
|
|
|
|
INSERT INTO mes_sale_order (erp_id, fentry_id, saleorder_code, saleorder_linenumber, document_status, material_id, material_code, material_name, matkl, order_amount, complete_amount, release_qty, approve_date, erp_modify_date, plan_delivery_date, stock_id, owner_id, aux_prop_id, sale_dept_id, price, stock_org_id, tond_base, create_time,update_time) VALUES
|
|
|
|
INSERT INTO mes_sale_order (erp_id, fentry_id, saleorder_code, saleorder_linenumber, document_status, material_id, material_code, material_name, matkl, order_amount, complete_amount, release_qty, approve_date, erp_modify_date, plan_delivery_date, stock_id, owner_id, aux_prop_id, specification_parameter, sale_dept_id, price, stock_org_id, tond_base, create_time,update_time) VALUES
|
|
|
|
<foreach item="item" index="index" collection="list" separator=",">
|
|
|
|
<foreach item="item" index="index" collection="list" separator=",">
|
|
|
|
(#{item.erpId}, #{item.fentryId}, #{item.saleorderCode}, #{item.saleorderLinenumber}, #{item.documentStatus}, #{item.materialId}, #{item.materialCode}, #{item.materialName}, #{item.matkl}, #{item.orderAmount}, #{item.completeAmount}, #{item.releaseQty}, #{item.approveDate}, #{item.erpModifyDate}, #{item.planDeliveryDate}, #{item.stockId}, #{item.ownerId}, #{item.auxPropId}, #{item.saleDeptId}, #{item.price}, #{item.stockOrgId}, #{item.tondBase}, #{item.createTime}, #{item.updateTime})
|
|
|
|
(#{item.erpId}, #{item.fentryId}, #{item.saleorderCode}, #{item.saleorderLinenumber}, #{item.documentStatus}, #{item.materialId}, #{item.materialCode}, #{item.materialName}, #{item.matkl}, #{item.orderAmount}, #{item.completeAmount}, #{item.releaseQty}, #{item.approveDate}, #{item.erpModifyDate}, #{item.planDeliveryDate}, #{item.stockId}, #{item.ownerId}, #{item.auxPropId}, #{item.specificationParameter}, #{item.saleDeptId}, #{item.price}, #{item.stockOrgId}, #{item.tondBase}, #{item.createTime}, #{item.updateTime})
|
|
|
|
</foreach>
|
|
|
|
</foreach>
|
|
|
|
</insert>
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
|
|