|
|
@ -327,6 +327,76 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
</trim> |
|
|
|
where sales_order_id = #{salesOrderId} |
|
|
|
</update> |
|
|
|
|
|
|
|
<update id="updateSysSalesOrderBySalesOrderCode" parameterType="SysSalesOrderVo"> |
|
|
|
update sys_sales_order |
|
|
|
<trim prefix="SET" suffixOverrides=","> |
|
|
|
<if test="salesOrderCode != null"> sales_order_code = #{salesOrderCode},</if> |
|
|
|
<if test="salesOrderNumber != null">sales_order_number = #{salesOrderNumber},</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="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="deliveryTime != null">delivery_time = #{deliveryTime},</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="totalAmount !=null">total_amount = #{totalAmount},</if> |
|
|
|
<if test="modificationTime != null">modification_time = #{modificationTime},</if> |
|
|
|
<if test="tradeClause != null">trade_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="remark != null">remark = #{remark},</if> |
|
|
|
<if test="outBoundQuantity != null">un_bound_quantity = #{unBoundQuantity},</if> |
|
|
|
<if test="unBoundQuantity != null">un_bound_quantity =#{unBoundQuantity},</if> |
|
|
|
<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> |
|
|
|
<if test="updateTime != null">update_time = #{updateTime},</if> |
|
|
|
update_info_time = now() |
|
|
|
</trim> |
|
|
|
where sales_order_code = #{salesOrderCode} |
|
|
|
</update> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<delete id="deleteSysSalesOrderById" parameterType="Long"> |
|
|
|
update sys_sales_order set use_status = 1 where sales_order_id = #{salesOrderId} |
|
|
|
</delete> |
|
|
|