|
|
@ -90,16 +90,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
|
|
|
|
<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.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.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.instance_type, |
|
|
|
s.submit_instance_id, s.cancel_instance_id, s.restore_instance_id, s.apply_title, s.apply_user, |
|
|
|
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.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.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 |
|
|
|
left join( |
|
|
@ -160,7 +159,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="paymentTerms != null">payment_terms,</if> |
|
|
|
<if test="deliveryTime != null">delivery_time,</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> |
|
|
@ -172,16 +171,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="contactNumber != null">contact_number,</if> |
|
|
|
<if test="customerFax != null">customer_fax,</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="remark != null">remark,</if> |
|
|
|
<if test="outBoundQuantity != null">out_bound_quantity,</if> |
|
|
|
<if test="unBoundQuantity != null"> un_bound_quantity </if> |
|
|
|
<if test="tradeClause != null">trade_clause,</if> |
|
|
|
<if test="unBoundQuantity != null"> un_bound_quantity,</if> |
|
|
|
<if test="useStatus != null">use_status,</if> |
|
|
|
<if test="auditStatus != null">audit_status,</if> |
|
|
|
<if test="makeStatus != null">make_status,</if> |
|
|
@ -189,6 +185,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="closeStatus != null">close_status,</if> |
|
|
|
<if test="instanceType != null">instance_type,</if> |
|
|
|
<if test="instanceId != null">instance_id,</if> |
|
|
|
<if test="submitInstanceId != null and submitInstanceId != ''">submit_instance_id,</if> |
|
|
|
<if test="cancelInstanceId != null and cancelInstanceId != ''">cancel_instance_id,</if> |
|
|
|
<if test="restoreInstanceId != null and restoreInstanceId != ''">restore_instance_id,</if> |
|
|
|
<if test="applyUser != null">apply_user,</if> |
|
|
|
<if test="applyTime != null">apply_time,</if> |
|
|
|
<if test="applyTitle != null">apply_title,</if> |
|
|
@ -201,7 +200,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<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="commonCurrency !=null">#{commonCurrency},</if> |
|
|
|
<if test="materialSum != null">#{materialSum},</if> |
|
|
|
<if test="enterpriseSum != null">#{enterpriseSum},</if> |
|
|
|
<if test="noRmbPrice != null">#{noRmbPrice},</if> |
|
|
@ -231,16 +230,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="contactNumber != null">#{contactNumber},</if> |
|
|
|
<if test="customerFax != null">#{customerFax},</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="standbyTwo != null">#standbyTwo},</if> |
|
|
|
<if test="remark != null">#{remark},</if> |
|
|
|
<if test="outBoundQuantity != null">#{unBoundQuantity},</if> |
|
|
|
<if test="unBoundQuantity != null">#{unBoundQuantity}</if> |
|
|
|
<if test="tradeClause != null">#{tradeClause},</if> |
|
|
|
<if test="outBoundQuantity != null">#{outBoundQuantity},</if> |
|
|
|
<if test="unBoundQuantity != null"> #{unBoundQuantity}, </if> |
|
|
|
<if test="useStatus != null">#{useStatus},</if> |
|
|
|
<if test="auditStatus != null">#{auditStatus},</if> |
|
|
|
<if test="makeStatus != null">#{makeStatus},</if> |
|
|
@ -248,6 +244,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="closeStatus != null">#{closeStatus},</if> |
|
|
|
<if test="instanceType != null">#{instanceType},</if> |
|
|
|
<if test="instanceId != null">#{instanceId},</if> |
|
|
|
<if test="submitInstanceId != null and submitInstanceId != ''">#{submitInstanceId},</if> |
|
|
|
<if test="cancelInstanceId != null and cancelInstanceId != ''">#{cancelInstanceId},</if> |
|
|
|
<if test="restoreInstanceId != null and restoreInstanceId != ''">#{restoreInstanceId},</if> |
|
|
|
<if test="applyUser != null">#{applyUser},</if> |
|
|
|
<if test="applyTime != null">#{applyTime},</if> |
|
|
|
<if test="applyTitle != null">#{applyTitle},</if> |
|
|
@ -295,14 +294,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<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">tarde_clause = #{tradeClause},</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="tradeClause != null">trade_clause = #{tradeClause},</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> |
|
|
|