Browse Source

2024-06-03

master
zelian_wu 2 years ago
parent
commit
ca57e98eea
  1. 2
      src/main/java/com/spring/modules/quotation/entity/QuotationInformationEntity.java
  2. 11
      src/main/resources/mapper/quotation/QuotationInformationMapper.xml

2
src/main/java/com/spring/modules/quotation/entity/QuotationInformationEntity.java

@ -173,4 +173,6 @@ public class QuotationInformationEntity extends QueryPage implements Serializabl
private Integer rejectStepId;
private String sourcing;
}

11
src/main/resources/mapper/quotation/QuotationInformationMapper.xml

@ -45,6 +45,7 @@
<result column="quoteTypeLabel" property="quoteTypeLabel"/>
<result column="deliveryTermsLabel" property="deliveryTermsLabel"/>
<result column="finalCustomerId" property="finalCustomerId"/>
<result column="sourcing" property="sourcing"/>
<result column="finalCustomerName" property="finalCustomerName"/>
<result column="quotation_amount" property="quotationAmount"/>
<result column="customer_quote_no" property="customerQuoteNo"/>
@ -60,8 +61,7 @@
</resultMap>
<!-- 报价信息列表 -->
<select id="quotationInformationSearch" resultMap="getQuotation" parameterType="com.spring.modules.quotation.vo.QuotationInformationVo">
SELECT
a.site,
SELECT a.site,
a.quotation_no,
customer_no,
dbo.plm_get_customer_desc(a.site, customer_no) as customerDesc,
@ -69,7 +69,8 @@
project_id,
dbo.plm_get_project_name(a.site, project_id) as projectName,
dbo.plm_get_project_final_customer_id(a.site, project_id) as finalCustomerId,
dbo.plm_get_customer_desc(a.site, dbo.plm_get_project_final_customer_id(a.site, project_id)) as finalCustomerName,
dbo.plm_get_customer_desc(a.site,
dbo.plm_get_project_final_customer_id(a.site, project_id)) as finalCustomerName,
tracker,
dbo.plm_get_user_display(a.site, tracker) as trackerName,
quoter,
@ -106,13 +107,15 @@
dbo.plm_get_dictDataLabel('delivery_terms', delivery_terms, a.site) as deliveryTermsLabel,
quotation_amount,
customer_quote_no,
sourcing,
a.step_id,
a.reject_flag,
a.reject_step_id,
d.is_reject
FROM plm_quotation_information as a
left join plm_request_header as prh on a.site = prh.site and prh.menu_id = #{query.menuId}
left join plm_request_node as d on a.site = d.site and prh.classification_no = d.classification_no and prh.workflow_id = d.workflow_id and a.step_id = d.step_id
left join plm_request_node as d on a.site = d.site and prh.classification_no = d.classification_no and
prh.workflow_id = d.workflow_id and a.step_id = d.step_id
<where>
a.site = #{query.site}
<if test="query.quotationNo != null and query.quotationNo != ''">

Loading…
Cancel
Save