Browse Source

2025-03-27

master
qiezi 10 months ago
parent
commit
1178037a16
  1. 2
      src/main/java/com/spring/modules/quote/entity/QuoteDetail.java
  2. 11
      src/main/resources/mapper/quote/QuoteDetailMapper.xml
  3. 7
      src/main/resources/mapper/quote/QuoteGroupDetailMapper.xml

2
src/main/java/com/spring/modules/quote/entity/QuoteDetail.java

@ -230,6 +230,8 @@ public class QuoteDetail {
@TableField(exist = false) @TableField(exist = false)
private String currencyDesc1; private String currencyDesc1;
@TableField(exist = false) @TableField(exist = false)
private String currencyDesc2;
@TableField(exist = false)
private String projectNo; private String projectNo;
@TableField(exist = false) @TableField(exist = false)

11
src/main/resources/mapper/quote/QuoteDetailMapper.xml

@ -67,6 +67,8 @@
qd.site) as currencyDesc1, qd.site) as currencyDesc1,
qd.exchange_rate1, qd.exchange_rate1,
qd.currency2, qd.currency2,
dbo.plm_get_dictDataLabel('plm_customer_information_customer_customer_currency', qd.currency2,
qd.site) as currencyDesc2,
qd.exchange_rate2, qd.exchange_rate2,
qd.moq, qd.moq,
qd.currency_total_cost1, qd.currency_total_cost1,
@ -101,7 +103,7 @@
<if test="versionNo != null and versionNo != ''"> <if test="versionNo != null and versionNo != ''">
and qd.version_no = #{versionNo} and qd.version_no = #{versionNo}
</if> </if>
<if test="quoteGroupDetailId != null ">
<if test="quoteGroupDetailId != null">
and qd.quote_group_detail_id = #{quoteGroupDetailId} and qd.quote_group_detail_id = #{quoteGroupDetailId}
</if> </if>
</where> </where>
@ -280,6 +282,8 @@
qd.site) as currencyDesc1, qd.site) as currencyDesc1,
qd.exchange_rate1, qd.exchange_rate1,
qd.currency2, qd.currency2,
dbo.plm_get_dictDataLabel('plm_customer_information_customer_customer_currency', qd.currency2,
qd.site) as currencyDesc2,
qd.exchange_rate2, qd.exchange_rate2,
qd.moq, qd.moq,
qd.currency_total_cost1, qd.currency_total_cost1,
@ -294,8 +298,8 @@
qd.adjust_test_cost, qd.adjust_test_cost,
qd.else_cost, qd.else_cost,
qd.adjust_else_cost qd.adjust_else_cost
from plm_quote_detail qd
left join plm_quote q on qd.quote_id = q.id
from plm_quote q
left join plm_quote_detail qd on qd.quote_id = q.id
left join view_Project_Part pp left join view_Project_Part pp
on q.project_no = pp.project_id and qd.part_no = pp.test_part_no and qd.site = pp.site on q.project_no = pp.project_id and qd.part_no = pp.test_part_no and qd.site = pp.site
<where> <where>
@ -311,6 +315,7 @@
<if test="partNo != null and partNo != ''"> <if test="partNo != null and partNo != ''">
and qd.part_no = #{partNo} and qd.part_no = #{partNo}
</if> </if>
order by qd.part_no
</where> </where>
</select> </select>
</mapper> </mapper>

7
src/main/resources/mapper/quote/QuoteGroupDetailMapper.xml

@ -67,6 +67,8 @@
qd.site) as currencyDesc1, qd.site) as currencyDesc1,
qd.exchange_rate1, qd.exchange_rate1,
qd.currency2, qd.currency2,
dbo.plm_get_dictDataLabel('plm_customer_information_customer_customer_currency', qd.currency2,
qd.site) as currencyDesc2,
qd.exchange_rate2, qd.exchange_rate2,
qd.moq, qd.moq,
qd.currency_total_cost1, qd.currency_total_cost1,
@ -294,8 +296,8 @@
qd.else_cost, qd.else_cost,
qd.adjust_else_cost qd.adjust_else_cost
<!-- qd.current_quote_detail_item_no--> <!-- qd.current_quote_detail_item_no-->
from plm_quote_detail qd
left join plm_quote q on qd.quote_id = q.id
from plm_quote q
left join plm_quote_detail qd on qd.quote_id = q.id
left join view_Project_Part pp left join view_Project_Part pp
on q.project_no = pp.project_id and qd.part_no = pp.test_part_no and qd.site = pp.site on q.project_no = pp.project_id and qd.part_no = pp.test_part_no and qd.site = pp.site
<where> <where>
@ -311,6 +313,7 @@
<if test="partNo != null and partNo != ''"> <if test="partNo != null and partNo != ''">
and qd.part_no = #{partNo} and qd.part_no = #{partNo}
</if> </if>
order by qd.part_no
</where> </where>
</select> </select>

Loading…
Cancel
Save