|
|
|
|
@ -9,7 +9,7 @@
|
|
|
|
|
<select id="selectCustomCrmQuoteInfoVoList" resultMap="CrmQuoteInfoResult">
|
|
|
|
|
select t.quote_id, t.tenant_id, t.quote_code, t.quote_name, t.quote_round, t.quote_category,
|
|
|
|
|
t.quote_type, t.business_direction, t.quote_dept_id, t.quote_date, t.valid_from, t.valid_days, t.valid_to,
|
|
|
|
|
t.delivery_period, t.warranty_period, t.delivery_method, t.payment_method, t.currency_type, t.tax_included_info, t.tax_rate,
|
|
|
|
|
t.delivery_period, t.warranty_period, t.delivery_method, t.payment_method, t.payment_detail, t.currency_type, t.tax_included_info, t.tax_rate,
|
|
|
|
|
t.total_price, t.total_before_tax,
|
|
|
|
|
t.total_tax, t.total_including_tax, t.customer_id, t.customer_contact_id, t.customer_contact_name,
|
|
|
|
|
t.customer_contact_phone, t.customer_contact_email,
|
|
|
|
|
@ -52,6 +52,7 @@
|
|
|
|
|
t.warranty_period,
|
|
|
|
|
t.delivery_method,
|
|
|
|
|
t.payment_method,
|
|
|
|
|
t.payment_detail,
|
|
|
|
|
t.currency_type,
|
|
|
|
|
t.tax_included_info,
|
|
|
|
|
t.tax_rate,
|
|
|
|
|
@ -90,7 +91,7 @@
|
|
|
|
|
<select id="selectCustomCrmQuoteInfoVoByIds" resultMap="CrmQuoteInfoResult">
|
|
|
|
|
select t.quote_id, t.tenant_id, t.quote_code, t.quote_name, t.quote_round, t.quote_category,
|
|
|
|
|
t.quote_type, t.business_direction, t.quote_dept_id, t.quote_date, t.valid_from, t.valid_days,
|
|
|
|
|
t.valid_to, t.delivery_period, t.warranty_period, t.delivery_method, t.payment_method, t.currency_type, t.tax_included_info,
|
|
|
|
|
t.valid_to, t.delivery_period, t.warranty_period, t.delivery_method, t.payment_method, t.payment_detail, t.currency_type, t.tax_included_info,
|
|
|
|
|
t.tax_rate, t.total_price, t.total_before_tax, t.total_tax, t.total_including_tax, t.customer_id,
|
|
|
|
|
t.customer_contact_id, t.customer_contact_name, t.customer_contact_phone, t.customer_contact_email,
|
|
|
|
|
t.supplier_contact_id, t.supplier_contact_name, t.supplier_contact_phone, t.supplier_contact_email,
|
|
|
|
|
@ -115,7 +116,7 @@
|
|
|
|
|
|
|
|
|
|
<!-- 分页查询(带自定义条件) -->
|
|
|
|
|
<select id="selectCustomCrmQuoteInfoVoPage" resultMap="CrmQuoteInfoResult">
|
|
|
|
|
select quote_id, tenant_id, quote_code, quote_name, quote_round, quote_category, quote_type, business_direction, quote_dept_id, quote_date, valid_from, valid_days, valid_to, delivery_period, warranty_period, delivery_method, payment_method, currency_type, tax_included_info, tax_rate, total_price, total_before_tax, total_tax, total_including_tax, customer_id, customer_contact_id, customer_contact_name, customer_contact_phone, customer_contact_email, supplier_contact_id, supplier_contact_name, supplier_contact_phone, supplier_contact_email, project_id, template_id, oss_id, quote_status, flow_status, remark, del_flag, create_dept, create_by, create_time, update_by, update_time
|
|
|
|
|
select quote_id, tenant_id, quote_code, quote_name, quote_round, quote_category, quote_type, business_direction, quote_dept_id, quote_date, valid_from, valid_days, valid_to, delivery_period, warranty_period, delivery_method, payment_method, payment_detail, currency_type, tax_included_info, tax_rate, total_price, total_before_tax, total_tax, total_including_tax, customer_id, customer_contact_id, customer_contact_name, customer_contact_phone, customer_contact_email, supplier_contact_id, supplier_contact_name, supplier_contact_phone, supplier_contact_email, project_id, template_id, oss_id, quote_status, flow_status, remark, del_flag, create_dept, create_by, create_time, update_by, update_time
|
|
|
|
|
from crm_quote_info t
|
|
|
|
|
<where>
|
|
|
|
|
<if test="ew != null and ew.sqlSegment != null and ew.sqlSegment != ''">
|
|
|
|
|
@ -159,6 +160,8 @@
|
|
|
|
|
|
|
|
|
|
payment_method,
|
|
|
|
|
|
|
|
|
|
payment_detail,
|
|
|
|
|
|
|
|
|
|
currency_type,
|
|
|
|
|
|
|
|
|
|
tax_included_info,
|
|
|
|
|
@ -251,6 +254,8 @@
|
|
|
|
|
|
|
|
|
|
#{item.paymentMethod},
|
|
|
|
|
|
|
|
|
|
#{item.paymentDetail},
|
|
|
|
|
|
|
|
|
|
#{item.currencyType},
|
|
|
|
|
|
|
|
|
|
#{item.taxIncludedInfo},
|
|
|
|
|
@ -364,6 +369,9 @@
|
|
|
|
|
<if test="item.paymentMethod != null and item.paymentMethod != ''">
|
|
|
|
|
payment_method = #{item.paymentMethod},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="item.paymentDetail != null">
|
|
|
|
|
payment_detail = #{item.paymentDetail},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="item.currencyType != null and item.currencyType != ''">
|
|
|
|
|
currency_type = #{item.currencyType},
|
|
|
|
|
</if>
|
|
|
|
|
|