|
|
@ -16,6 +16,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<result property="salesOrderType" column="sales_order_type" /> |
|
|
|
<result property="enterpriseCode" column="enterprise_code" /> |
|
|
|
<result property="enterpriseName" column="enterprise_name" /> |
|
|
|
<result property="commonCurrency" column="common_currency" /> |
|
|
|
<result property="customerPurser" column="customer_purser" /> |
|
|
|
<result property="materialSum" column="material_sum" /> |
|
|
|
<result property="enterpriseSum" column="enterprise_sum" /> |
|
|
|
<result property="noRmbPrice" column="noRmbPrice" /> |
|
|
@ -30,14 +32,20 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<result property="deliveryTime" column="delivery_time" /> |
|
|
|
<result property="deliveryConditions" column="delivery_conditions" /> |
|
|
|
<result property="deliveryMethod" column="delivery_method" /> |
|
|
|
<result property="customerDelivery" column="customer_delivery" /> |
|
|
|
<result property="deliveryPhone" column="delivery_phone" /> |
|
|
|
<result property="deliveryAddress" column="delivery_address" /> |
|
|
|
<result property="orderReceivingMode" column="order_receiving_mode" /> |
|
|
|
<result property="customerContact" column="customer_contact" /> |
|
|
|
<result property="contactNumber" column="contact_number" /> |
|
|
|
<result property="customerFax" column="customer_fax" /> |
|
|
|
<result property="customerFax" column="customer_fax" /> |
|
|
|
<result property="contactEmail" column="contact_email" /> |
|
|
|
<result property="contactPost" column="contact_post" /> |
|
|
|
<result property="businessMembers" column="business_members" /> |
|
|
|
<result property="confirmTax" column="confirm_tax" /> |
|
|
|
<result property="taxRate" column="tax_rate" /> |
|
|
|
<result property="usdTax" column="usd_tax" /> |
|
|
|
<result property="invoice" column="invoice" /> |
|
|
|
<result property="totalAmount" column="total_amount" /> |
|
|
|
<result property="modificationTime" column="modification_time" /> |
|
|
|
<result property="standbyOne" column="standby_one" /> |
|
|
@ -65,29 +73,32 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
</resultMap> |
|
|
|
|
|
|
|
<sql id="selectSysSalesOrderVo"> |
|
|
|
select sales_order_id, use_status, audit_status, make_status, delivery_status, |
|
|
|
close_status, sales_order_code, sales_order_number, sales_order_type,enterprise_code, |
|
|
|
enterprise_name, material_sum, enterprise_sum, noRmbPrice, noRmbSum, rmbPrice, rmbTaxSum, |
|
|
|
noUsdPrice, noUsdSum, usdPrice, usdTaxSum, payment_terms, delivery_time, |
|
|
|
delivery_conditions, delivery_method, delivery_address, order_receiving_mode, |
|
|
|
customer_contact, contact_number, customer_fax, business_members, confirm_tax, tax_rate, |
|
|
|
total_amount, billing_time, modification_time,standby_one, standby_two, first_add_time, |
|
|
|
update_info_time, file_upload, create_by, create_time, update_by, update_time, remark, |
|
|
|
out_bound_quantity, un_bound_quantity, trade_clause, instance_id, instance_type, |
|
|
|
submit_instance_id, cancel_instance_id, restore_instance_id, apply_title, apply_user, apply_time |
|
|
|
from sys_sales_order |
|
|
|
select |
|
|
|
sales_order_id, use_status, audit_status, make_status, delivery_status,close_status, |
|
|
|
sales_order_code, sales_order_number, sales_order_type,enterprise_code,customer_purser, |
|
|
|
common_currency,enterprise_name, material_sum, enterprise_sum, noRmbPrice, noRmbSum, rmbPrice, |
|
|
|
rmbTaxSum,noUsdPrice, noUsdSum, usdPrice, usdTaxSum, payment_terms, delivery_time, |
|
|
|
delivery_conditions, delivery_method, delivery_address,delivery_phone,customer_delivery, |
|
|
|
order_receiving_mode,customer_contact, contact_number,contact_email, contact_post, |
|
|
|
customer_fax, business_members, confirm_tax, tax_rate,usd_tax,invoice,total_amount, |
|
|
|
modification_time,standby_one,standby_two, first_add_time, update_info_time, file_upload, |
|
|
|
create_by, create_time, update_by, update_time,trade_clause, remark, out_bound_quantity, |
|
|
|
un_bound_quantity, instance_id, instance_type,submit_instance_id, cancel_instance_id, |
|
|
|
restore_instance_id, apply_title,apply_user, apply_time |
|
|
|
from sys_sales_order |
|
|
|
</sql> |
|
|
|
|
|
|
|
<select id="selectSysSalesOrderList" parameterType="SysSalesOrderVo" resultMap="SysSalesOrderResult"> |
|
|
|
select s.sales_order_id, s.use_status, s.audit_status, s.make_status, s.delivery_status, |
|
|
|
s.close_status, s.sales_order_code, s.sales_order_number, s.sales_order_type,s.enterprise_code, |
|
|
|
s.close_status, s.sales_order_code, s.sales_order_number, s.sales_order_type,s.enterprise_code,s.customer_purser,s.common_currency, |
|
|
|
s.enterprise_name, s.material_sum, s.enterprise_sum, s.noRmbPrice, s.noRmbSum, s.rmbPrice, s.rmbTaxSum, |
|
|
|
s.noUsdPrice, s.noUsdSum, s.usdPrice, s.usdTaxSum, s.payment_terms, s.delivery_time, |
|
|
|
s.delivery_conditions, s.delivery_method, s.delivery_address, s.order_receiving_mode, |
|
|
|
s.customer_contact, s.contact_number, s.customer_fax, s.business_members, s.confirm_tax, s.tax_rate, |
|
|
|
s.total_amount, s.billing_time, s.modification_time,s.standby_one,s.standby_two, s.first_add_time, |
|
|
|
s.delivery_conditions, s.delivery_method, s.delivery_address,s.delivery_phone,s.customer_delivery, |
|
|
|
s.order_receiving_mode,s.customer_contact, s.contact_number,s.contact_email, s.contact_post, s.customer_fax, |
|
|
|
s.business_members, s.confirm_tax, s.tax_rate, s.usd_tax,s.invoice,s.total_amount, s.billing_time, |
|
|
|
s.modification_time,s.standby_one,s.standby_two, s.first_add_time, |
|
|
|
s.update_info_time, s.file_upload, s.create_by, s.create_time, s.update_by, s.update_time, s.remark, |
|
|
|
s.out_bound_quantity, s.un_bound_quantity, s.trade_clause, s.instance_id, s.nstance_type, |
|
|
|
s.out_bound_quantity, s.un_bound_quantity, s.trade_clause, s.instance_id, s.instance_type, |
|
|
|
s.submit_instance_id, s.cancel_instance_id, s.restore_instance_id, s.apply_title, s.apply_user, |
|
|
|
s.apply_time,p.dict_value as instance_type_name |
|
|
|
from sys_sales_order as s |
|
|
@ -109,6 +120,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="makeStatus != null and makeStatus != ''"> and s.make_status = #{makeStatus}</if> |
|
|
|
<if test="deliveryStatus != null and deliveryStatus != ''"> and s.delivery_status = #{deliveryStatus}</if> |
|
|
|
<if test="closeStatus != null and closeStatus != ''"> and s.close_status = #{closeStatus}</if> |
|
|
|
<if test="instanceType != null and instanceType != ''"> and s.instance_type = #{instanceType}</if> |
|
|
|
<if test="instanceId != null and instanceId != ''"> and s.instance_id = #{instanceId}</if> |
|
|
|
<if test="applyUser != null and applyUser != ''"> and s.apply_user = #{applyUser}</if> |
|
|
|
<if test="applyTime != null and applyTime != ''"> and s.apply_time = #{applyTime}</if> |
|
|
|
<if test="applyTitle != null and applyTitle != ''"> and s.apply_title = #{applyTitle}</if> |
|
|
|
</where> |
|
|
|
</select> |
|
|
|
|
|
|
@ -122,118 +138,185 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=","> |
|
|
|
<if test="salesOrderCode != null">sales_order_code,</if> |
|
|
|
<if test="salesOrderNumber != null">sales_order_number,</if> |
|
|
|
<if test="salesOrderType !=null">sales_order_type,</if> |
|
|
|
<if test="enterpriseCode != null">enterprise_code,</if> |
|
|
|
<if test="enterpriseName != null">enterprise_name,</if> |
|
|
|
<if test="customerPurser !=null">customer_purser,</if> |
|
|
|
<if test="commonCurrency !=null">common_currency,</if> |
|
|
|
<if test="materialSum != null">material_sum,</if> |
|
|
|
<if test="enterpriseSum != null">enterprise_sum,</if> |
|
|
|
<if test="noRmbPrice != null">noRmbPrice,</if> |
|
|
|
<if test="noRmbSum != null">noRmbSum,</if> |
|
|
|
<if test="rmbPrice != null">rmbPrice,</if> |
|
|
|
<if test="rmbTaxSum != null">rmbTaxSum,</if> |
|
|
|
<if test="noUsdPrice != null">noUsdPrice,</if> |
|
|
|
<if test="noUsdSum != null">noUsdSum,</if> |
|
|
|
<if test="usdPrice != null">usdPrice,</if> |
|
|
|
<if test="usdTaxSum != null">usdTaxSum,</if> |
|
|
|
<if test="confirmTax != null">confirm_tax,</if> |
|
|
|
<if test="taxRate != null">tax_rate,</if> |
|
|
|
<if test="usdTax != null">usd_tax,</if> |
|
|
|
<if test="invoice != null">invoice,</if> |
|
|
|
<if test="paymentTerms != null">payment_terms,</if> |
|
|
|
<if test="deliveryTime != null">delivery_time,</if> |
|
|
|
<if test="deliveryAddress != null">#{deliveryAddress},</if> |
|
|
|
<if test="deliveryConditions != null">delivery_conditions,</if> |
|
|
|
<if test="deliveryMethod != null">delivery_method,</if> |
|
|
|
<if test="deliveryMethod != null">delivery_method ,</if> |
|
|
|
<if test="deliveryPhone != null">delivery_phone,</if> |
|
|
|
<if test="deliveryAddress != null">delivery_address,</if> |
|
|
|
<if test="customerDelivery != null">customer_delivery,</if> |
|
|
|
<if test="orderReceivingMode != null">order_receiving_mode,</if> |
|
|
|
<if test="orderReceivingTime != null">order_receiving_time,</if> |
|
|
|
<if test="customerContact != null">customer_contact,</if> |
|
|
|
<if test="contactEmail != null">contact_email,</if> |
|
|
|
<if test="contactPost != null">contact_post,</if> |
|
|
|
<if test="contactNumber != null">contact_number,</if> |
|
|
|
<if test="businessMembers != null">business_members,</if> |
|
|
|
<if test="customerFax != null">customer_fax,</if> |
|
|
|
<if test="deliveryAddress != null">delivery_address,</if> |
|
|
|
<if test="orderReceivingTime != null">order_receiving_time,</if> |
|
|
|
<if test="orderReceivingMode != null">order_receiving_mode,</if> |
|
|
|
<if test="confirmTax != null">confirm_tax,</if> |
|
|
|
<if test="taxRate != null">tax_rate,</if> |
|
|
|
<if test="totalAmount != null">total_amount,</if> |
|
|
|
<if test="businessMembers != null">business_members,</if> |
|
|
|
<if test="totalAmount !=null">total_amount,</if> |
|
|
|
<if test="modificationTime != null">modification_time,</if> |
|
|
|
<if test="tradeClause != null">trade_clause,</if> |
|
|
|
<if test="standbyOne != null">standby_one,</if> |
|
|
|
<if test="standbyTwo != null">standby_two,</if> |
|
|
|
<if test="fileUpload != null">file_upload,</if> |
|
|
|
<if test="createBy != null">create_by,</if> |
|
|
|
<if test="remark != null">remark,</if> |
|
|
|
<if test="outBoundQuantity != null">out_bound_quantity,</if> |
|
|
|
<if test="unBoundQuantity != null">un_bound_quantity,</if> |
|
|
|
<if test="unBoundQuantity != null"> un_bound_quantity </if> |
|
|
|
<if test="tradeClause != null">trade_clause,</if> |
|
|
|
<if test="instanceId != null">instance_id,</if> |
|
|
|
<if test="useStatus != null">use_status,</if> |
|
|
|
<if test="auditStatus != null">audit_status,</if> |
|
|
|
<if test="makeStatus != null">make_status,</if> |
|
|
|
<if test="deliveryStatus != null">delivery_status,</if> |
|
|
|
<if test="closeStatus != null">close_status,</if> |
|
|
|
<if test="instanceType != null">instance_type,</if> |
|
|
|
<if test="submitInstanceId != null">submit_instance_id,</if> |
|
|
|
<if test="cancelInstanceId != null">cancel_instance_id,</if> |
|
|
|
<if test="restoreInstanceId != null">restore_instance_id,</if> |
|
|
|
<if test="applyTitle != null">apply_title,</if> |
|
|
|
<if test="instanceId != null">instance_id,</if> |
|
|
|
<if test="applyUser != null">apply_user,</if> |
|
|
|
<if test="applyTime != null">apply_time,</if> |
|
|
|
<if test="applyTitle != null">apply_title,</if> |
|
|
|
first_add_time,create_time |
|
|
|
</trim> |
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
|
<if test="salesOrderCode != null">#{salesOrderCode},</if> |
|
|
|
<if test="salesOrderNumber != null">#{salesOrderNumber},</if> |
|
|
|
<if test="salesOrderType !=null">#{salesOrderType},</if> |
|
|
|
<if test="enterpriseCode != null">#{enterpriseCode},</if> |
|
|
|
<if test="enterpriseName != null">#{enterpriseName},</if> |
|
|
|
<if test="customerPurser !=null">#{customerPurser},</if> |
|
|
|
<if test="commonCurrency != null">#{commonCurrency},</if> |
|
|
|
<if test="materialSum != null">#{materialSum},</if> |
|
|
|
<if test="enterpriseSum != null">#{enterpriseSum},</if> |
|
|
|
<if test="noRmbPrice != null">#{noRmbPrice},</if> |
|
|
|
<if test="noRmbSum != null">#{noRmbSum},</if> |
|
|
|
<if test="rmbPrice != null">#{rmbPrice},</if> |
|
|
|
<if test="rmbTaxSum != null">#{rmbTaxSum},</if> |
|
|
|
<if test="noUsdPrice != null">#{noUsdPrice},</if> |
|
|
|
<if test="noUsdSum != null">#{noUsdSum},</if> |
|
|
|
<if test="usdPrice != null">#{usdPrice},</if> |
|
|
|
<if test="usdTaxSum != null">#{usdTaxSum},</if> |
|
|
|
<if test="confirmTax != null">#{confirmTax},</if> |
|
|
|
<if test="taxRate != null">#{taxRate},</if> |
|
|
|
<if test="usdTax != null">#{usdTax},</if> |
|
|
|
<if test="invoice != null">#{invoice},</if> |
|
|
|
<if test="paymentTerms != null">#{paymentTerms},</if> |
|
|
|
<if test="deliveryTime != null">#{deliveryTime},</if> |
|
|
|
<if test="deliveryStatus != null">#{deliveryStatus},</if> |
|
|
|
<if test="deliveryConditions != null">#{deliveryConditions},</if> |
|
|
|
<if test="deliveryMethod != null">#{deliveryMethod},</if> |
|
|
|
<if test="deliveryPhone != null">#{deliveryPhone},</if> |
|
|
|
<if test="deliveryAddress != null">#{deliveryAddress},</if> |
|
|
|
<if test="customerDelivery != null">#{customerDelivery},</if> |
|
|
|
<if test="orderReceivingMode != null">#{orderReceivingMode},</if> |
|
|
|
<if test="orderReceivingTime != null">#{orderReceivingTime},</if> |
|
|
|
<if test="customerContact != null">#{customerContact},</if> |
|
|
|
<if test="contactEmail != null">#{contactEmail},</if> |
|
|
|
<if test="contactPost != null">#{contactPost},</if> |
|
|
|
<if test="contactNumber != null">#{contactNumber},</if> |
|
|
|
<if test="businessMembers != null">#{businessMembers},</if> |
|
|
|
<if test="customerFax != null">#{customerFax},</if> |
|
|
|
<if test="deliveryAddress != null">#{deliveryAddress},</if> |
|
|
|
<if test="orderReceivingTime != null">#{orderReceivingTime},</if> |
|
|
|
<if test="orderReceivingMode != null">#{orderReceivingMode},</if> |
|
|
|
<if test="confirmTax != null">#{confirmTax},</if> |
|
|
|
<if test="taxRate != null">#{taxRate},</if> |
|
|
|
<if test="totalAmount != null">#{totalAmount},</if> |
|
|
|
<if test="businessMembers != null">#{businessMembers},</if> |
|
|
|
<if test="totalAmount !=null">#{totalAmount},</if> |
|
|
|
<if test="modificationTime != null">#{modificationTime},</if> |
|
|
|
<if test="tradeClause != null">#{tradeClause},</if> |
|
|
|
<if test="standbyOne != null">#{standbyOne},</if> |
|
|
|
<if test="standbyTwo != null">#{standbyTwo},</if> |
|
|
|
<if test="fileUpload != null">#{fileUpload},</if> |
|
|
|
<if test="createBy != null">#{createBy},</if> |
|
|
|
<if test="remark != null">#{remark},</if> |
|
|
|
<if test="outBoundQuantity != null">#{outBoundQuantity},</if> |
|
|
|
<if test="unBoundQuantity != null">#{unBoundQuantity},</if> |
|
|
|
<if test="outBoundQuantity != null">#{unBoundQuantity},</if> |
|
|
|
<if test="unBoundQuantity != null">#{unBoundQuantity}</if> |
|
|
|
<if test="tradeClause != null">#{tradeClause},</if> |
|
|
|
<if test="instanceId != null">#{instanceId},</if> |
|
|
|
<if test="useStatus != null">#{useStatus},</if> |
|
|
|
<if test="auditStatus != null">#{auditStatus},</if> |
|
|
|
<if test="makeStatus != null">#{makeStatus},</if> |
|
|
|
<if test="deliveryStatus != null">#{deliveryStatus},</if> |
|
|
|
<if test="closeStatus != null">#{closeStatus},</if> |
|
|
|
<if test="instanceType != null">#{instanceType},</if> |
|
|
|
<if test="submitInstanceId != null">#{submitInstanceId},</if> |
|
|
|
<if test="cancelInstanceId != null">#{cancelInstanceId},</if> |
|
|
|
<if test="restoreInstanceId != null">#{restoreInstanceId},</if> |
|
|
|
<if test="applyTitle != null">#{applyTitle},</if> |
|
|
|
<if test="instanceId != null">#{instanceId},</if> |
|
|
|
<if test="applyUser != null">#{applyUser},</if> |
|
|
|
<if test="applyTime != null">#{applyTime},</if> |
|
|
|
<if test="applyTitle != null">#{applyTitle},</if> |
|
|
|
now(),now() |
|
|
|
</trim> |
|
|
|
</insert> |
|
|
|
<update id="updateSysSalesOrder" parameterType="SysSalesOrderVo"> |
|
|
|
update sys_sales_order |
|
|
|
<trim prefix="SET" suffixOverrides=","> |
|
|
|
<if test="salesOrderCode != null">sales_order_code = #{salesOrderCode},</if> |
|
|
|
<if test="salesOrderCode != null"> sales_order_code = #{salesOrderCode},</if> |
|
|
|
<if test="salesOrderNumber != null">sales_order_number = #{salesOrderNumber},</if> |
|
|
|
<if test="appointmentNumber != null">appointment_number = #{appointmentNumber},</if> |
|
|
|
<if test="salesOrderType !=null">sales_order_type = #{salesOrderType},</if> |
|
|
|
<if test="customerPurser !=null">customer_purser = #{customerPurser},</if> |
|
|
|
<if test="enterpriseCode != null">enterprise_code = #{enterpriseCode},</if> |
|
|
|
<if test="enterpriseName != null">enterprise_name = #{enterpriseName},</if> |
|
|
|
<if test="enterpriseName != null">enterprise_name =#{enterpriseName},</if> |
|
|
|
<if test="materialSum != null">material_sum = #{materialSum},</if> |
|
|
|
<if test="enterpriseSum != null">enterprise_sum = #{enterpriseSum},</if> |
|
|
|
<if test="commonCurrency != null">common_currency = #{commonCurrency},</if> |
|
|
|
<if test="noRmbPrice != null">noRmbPrice = #{noRmbPrice},</if> |
|
|
|
<if test="noRmbSum != null">noRmbSum = #{noRmbSum},</if> |
|
|
|
<if test="rmbPrice != null">rmbPrice = #{rmbPrice},</if> |
|
|
|
<if test="rmbTaxSum != null">rmbTaxSum = #{rmbTaxSum},</if> |
|
|
|
<if test="noUsdPrice != null">noUsdPrice = #{noUsdPrice},</if> |
|
|
|
<if test="noUsdSum != null">noUsdSum = #{noUsdSum},</if> |
|
|
|
<if test="usdPrice != null">usdPrice = #{usdPrice},</if> |
|
|
|
<if test="usdTaxSum != null">usdTaxSum = #{usdTaxSum},</if> |
|
|
|
<if test="confirmTax != null">confirm_tax = #{confirmTax},</if> |
|
|
|
<if test="taxRate != null">tax_rate = #{taxRate},</if> |
|
|
|
<if test="usdTax != null">usd_tax = #{usdTax},</if> |
|
|
|
<if test="invoice != null">invoice = #{invoice},</if> |
|
|
|
<if test="paymentTerms != null">payment_terms = #{paymentTerms},</if> |
|
|
|
<if test="deliveryConditions != null">delivery_conditions = #{deliveryConditions},</if> |
|
|
|
<if test="deliveryTime != null">delivery_time = #{deliveryTime},</if> |
|
|
|
<if test="deliveryAddress != null">delivery_address = #{deliveryAddress},</if> |
|
|
|
<if test="deliveryConditions != null">delivery_conditions = #{deliveryConditions},</if> |
|
|
|
<if test="deliveryMethod != null">delivery_method = #{deliveryMethod},</if> |
|
|
|
<if test="deliveryPhone != null">delivery_phone = #{deliveryPhone},</if> |
|
|
|
<if test="deliveryAddress != null">delivery_address = #{deliveryAddress},</if> |
|
|
|
<if test="customerDelivery != null">customer_delivery = #{customerDelivery},</if> |
|
|
|
<if test="orderReceivingMode != null">order_receiving_mode = #{orderReceivingMode},</if> |
|
|
|
<if test="orderReceivingTime != null">order_receiving_time =#{orderReceivingTime},</if> |
|
|
|
<if test="customerContact != null">customer_contact = #{customerContact},</if> |
|
|
|
<if test="contactEmail != null">contact_email = #{contactEmail},</if> |
|
|
|
<if test="contactPost != null">contact_post = #{contactPost},</if> |
|
|
|
<if test="contactNumber != null">contact_number = #{contactNumber},</if> |
|
|
|
<if test="customerFax != null">csutomer_fax = #{customerFax},</if> |
|
|
|
<if test="businessMembers != null">business_members = #{businessMembers},</if> |
|
|
|
<if test="customerFax != null">customer_fax = #{customerFax},</if> |
|
|
|
<if test="deliveryAddress != null">delivery_address = #{deliveryAddress},</if> |
|
|
|
<if test="orderReceivingTime != null">order_receiving_time = #{orderReceivingTime},</if> |
|
|
|
<if test="creditLimit != null">credit_limit = #{creditLimit},</if> |
|
|
|
<if test="unpaidAmount != null">unpaid_amount = #{unpaidAmount},</if> |
|
|
|
<if test="confirmTax != null">confirm_tax = #{confirmTax},</if> |
|
|
|
<if test="taxRate != null">tax_rate = #{taxRate},</if> |
|
|
|
<if test="totalAmount != null">total_amount = #{totalAmount},</if> |
|
|
|
<if test="totalAmount !=null">total_amount = #{totalAmount},</if> |
|
|
|
<if test="modificationTime != null">modification_time = #{modificationTime},</if> |
|
|
|
<if test="tradeClause != null">tarde_clause = #{tradeClause},</if> |
|
|
|
<if test="standbyOne != null">standby_one = #{standbyOne},</if> |
|
|
|
<if test="standbyTwo != null">standby_two = #{standbyTwo},</if> |
|
|
|
<if test="fileUpload != null">file_upload = #{fileUpload},</if> |
|
|
|
<if test="updateBy != null">update_by = #{updateBy},</if> |
|
|
|
<if test="remark != null">remark = #{remark},</if> |
|
|
|
<if test="outBoundQuantity != null">out_bound_quantity = #{outBoundQuantity},</if> |
|
|
|
<if test="unBoundQuantity != null"> un_bound_quantity = #{unBoundQuantity}</if> |
|
|
|
<if test="outBoundQuantity != null">un_bound_quantity = #{unBoundQuantity},</if> |
|
|
|
<if test="unBoundQuantity != null">un_bound_quantity =#{unBoundQuantity}</if> |
|
|
|
<if test="tradeClause != null">trade_clause = #{tradeClause},</if> |
|
|
|
update_info_time = CONCAT_WS(',',NOW(),update_info_time), |
|
|
|
update_time = #{updateTime} |
|
|
|
<if test="useStatus != null">use_status = #{useStatus},</if> |
|
|
|
<if test="auditStatus != null">audit_status = #{auditStatus},</if> |
|
|
|
<if test="makeStatus != null">make_status = #{makeStatus},</if> |
|
|
|
<if test="deliveryStatus != null">delivery_status = #{deliveryStatus},</if> |
|
|
|
<if test="closeStatus != null">close_status = #{closeStatus},</if> |
|
|
|
<if test="instanceType != null">instance_type = #{instanceType},</if> |
|
|
|
<if test="instanceId != null">instance_id = #{instanceId},</if> |
|
|
|
<if test="submitInstanceId != null">submit_instance_id = #{submitInstanceId},</if> |
|
|
|
<if test="cancelInstanceId != null">cancel_instance_id = #{cancelInstanceId},</if> |
|
|
|
<if test="restoreInstanceId != null">restore_instance_id = #{restoreInstanceId},</if> |
|
|
|
<if test="applyUser != null">apply_user = #{applyUser},</if> |
|
|
|
<if test="applyTime != null">apply_time = #{applyTime},</if> |
|
|
|
<if test="applyTitle != null">apply_title = #{applyTitle},</if> |
|
|
|
update_time = now() |
|
|
|
</trim> |
|
|
|
where sales_order_id = #{salesOrderId} |
|
|
|
</update> |
|
|
|