|
|
@ -36,6 +36,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
<result property="tondBase" column="tond_base" />
|
|
|
|
<result property="tondBase" column="tond_base" />
|
|
|
|
<result property="purchaseOrgId" column="purchase_org_id" />
|
|
|
|
<result property="purchaseOrgId" column="purchase_org_id" />
|
|
|
|
<result property="supplierId" column="supplier_id" />
|
|
|
|
<result property="supplierId" column="supplier_id" />
|
|
|
|
|
|
|
|
<result property="specificationParameter" column="specification_parameter" />
|
|
|
|
</resultMap>
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
|
|
<sql id="selectMesPurchaseOrderVo">
|
|
|
|
<sql id="selectMesPurchaseOrderVo">
|
|
|
@ -43,7 +44,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
material_id, material_code, material_name, order_amount, complete_amount,
|
|
|
|
material_id, material_code, material_name, order_amount, complete_amount,
|
|
|
|
approve_date, erp_modify_date, plan_delivery_date, begin_date, end_date, order_status,
|
|
|
|
approve_date, erp_modify_date, plan_delivery_date, begin_date, end_date, order_status,
|
|
|
|
complete_date, is_flag, remark, create_by, create_time, update_by, update_time ,unit_id,
|
|
|
|
complete_date, is_flag, remark, create_by, create_time, update_by, update_time ,unit_id,
|
|
|
|
stock_unit_id,price_unit_id,aux_prop_id,src_bill_no,tond_base,purchase_org_id,supplier_id
|
|
|
|
stock_unit_id,price_unit_id,aux_prop_id,specification_parameter, src_bill_no,tond_base,purchase_org_id,supplier_id
|
|
|
|
from mes_purchase_order
|
|
|
|
from mes_purchase_order
|
|
|
|
</sql>
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
|
@ -112,6 +113,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
<if test="stockUnitId != null">stock_unit_id,</if>
|
|
|
|
<if test="stockUnitId != null">stock_unit_id,</if>
|
|
|
|
<if test="priceUnitId != null">price_unit_id,</if>
|
|
|
|
<if test="priceUnitId != null">price_unit_id,</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="srcBillNo != null">src_bill_no,</if>
|
|
|
|
<if test="srcBillNo != null">src_bill_no,</if>
|
|
|
|
<if test="tondBase != null">tond_base,</if>
|
|
|
|
<if test="tondBase != null">tond_base,</if>
|
|
|
|
<if test="purchaseOrgId != null">purchase_org_id,</if>
|
|
|
|
<if test="purchaseOrgId != null">purchase_org_id,</if>
|
|
|
@ -144,6 +146,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
<if test="stockUnitId != null">#{stockUnitId},</if>
|
|
|
|
<if test="stockUnitId != null">#{stockUnitId},</if>
|
|
|
|
<if test="priceUnitId != null">#{priceUnitId},</if>
|
|
|
|
<if test="priceUnitId != null">#{priceUnitId},</if>
|
|
|
|
<if test="auxPropId != null">#{auxPropId},</if>
|
|
|
|
<if test="auxPropId != null">#{auxPropId},</if>
|
|
|
|
|
|
|
|
<if test="specificationParameter != null">#{specificationParameter},</if>
|
|
|
|
<if test="srcBillNo != null">#{srcBillNo},</if>
|
|
|
|
<if test="srcBillNo != null">#{srcBillNo},</if>
|
|
|
|
<if test="tondBase != null">#{tondBase},</if>
|
|
|
|
<if test="tondBase != null">#{tondBase},</if>
|
|
|
|
<if test="purchaseOrgId != null">#{purchaseOrgId},</if>
|
|
|
|
<if test="purchaseOrgId != null">#{purchaseOrgId},</if>
|
|
|
@ -180,6 +183,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
<if test="stockUnitId != null">stock_unit_id=#{stockUnitId},</if>
|
|
|
|
<if test="stockUnitId != null">stock_unit_id=#{stockUnitId},</if>
|
|
|
|
<if test="priceUnitId != null">price_unit_id=#{priceUnitId},</if>
|
|
|
|
<if test="priceUnitId != null">price_unit_id=#{priceUnitId},</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="srcBillNo != null">src_bill_no=#{srcBillNo},</if>
|
|
|
|
<if test="srcBillNo != null">src_bill_no=#{srcBillNo},</if>
|
|
|
|
<if test="tondBase != null">tond_base=#{tondBase},</if>
|
|
|
|
<if test="tondBase != null">tond_base=#{tondBase},</if>
|
|
|
|
<if test="purchaseOrgId != null">purchase_org_id=#{purchaseOrgId},</if>
|
|
|
|
<if test="purchaseOrgId != null">purchase_org_id=#{purchaseOrgId},</if>
|
|
|
@ -210,9 +214,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<insert id="batchMesBasePurchaseOrder">
|
|
|
|
<insert id="batchMesBasePurchaseOrder">
|
|
|
|
INSERT INTO mes_purchase_order (erp_id, fentry_id, po_no, document_status, material_id, material_code, material_name, order_amount, complete_amount, approve_date, erp_modify_date, plan_delivery_date, order_status, unit_id, stock_unit_id, price_unit_id, aux_prop_id, src_bill_no, purchase_org_id, tond_base, supplier_id, create_time,update_time) VALUES
|
|
|
|
INSERT INTO mes_purchase_order (erp_id, fentry_id, po_no, document_status, material_id, material_code, material_name, order_amount, complete_amount, approve_date, erp_modify_date, plan_delivery_date, order_status, unit_id, stock_unit_id, price_unit_id, aux_prop_id, specification_parameter, src_bill_no, purchase_org_id, tond_base, supplier_id, 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.poNo},#{item.documentStatus}, #{item.materialId}, #{item.materialCode}, #{item.materialName}, #{item.orderAmount}, #{item.completeAmount}, #{item.approveDate}, #{item.erpModifyDate}, #{item.planDeliveryDate}, #{item.orderStatus}, #{item.unitId}, #{item.stockUnitId}, #{item.priceUnitId}, #{item.auxPropId}, #{item.srcBillNo}, #{item.purchaseOrgId}, #{item.tondBase}, #{item.supplierId}, #{item.createTime},#{item.updateTime})
|
|
|
|
(#{item.erpId}, #{item.fentryId}, #{item.poNo},#{item.documentStatus}, #{item.materialId}, #{item.materialCode}, #{item.materialName}, #{item.orderAmount}, #{item.completeAmount}, #{item.approveDate}, #{item.erpModifyDate}, #{item.planDeliveryDate}, #{item.orderStatus}, #{item.unitId}, #{item.stockUnitId}, #{item.priceUnitId}, #{item.auxPropId}, #{specificationParameter},#{item.srcBillNo}, #{item.purchaseOrgId}, #{item.tondBase}, #{item.supplierId}, #{item.createTime},#{item.updateTime})
|
|
|
|
</foreach>
|
|
|
|
</foreach>
|
|
|
|
</insert>
|
|
|
|
</insert>
|
|
|
|
</mapper>
|
|
|
|
</mapper>
|
|
|
|