Browse Source

2025-04-24

master
qiezi 9 months ago
parent
commit
072b6d3d7f
  1. 2
      src/main/java/com/spring/modules/quote/entity/QuoteDetail.java
  2. 2
      src/main/java/com/spring/modules/quote/entity/QuoteGroupDetail.java
  3. 8
      src/main/resources/mapper/quote/QuoteDetailMapper.xml
  4. 8
      src/main/resources/mapper/quote/QuoteGroupDetailMapper.xml

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

@ -247,4 +247,6 @@ public class QuoteDetail {
private String partStatus; private String partStatus;
@TableField(exist = false) @TableField(exist = false)
private String ifsPartNo; private String ifsPartNo;
@TableField(exist = false)
private BigDecimal unitPriceRate;
} }

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

@ -243,4 +243,6 @@ public class QuoteGroupDetail {
private String plmPartNo; private String plmPartNo;
@TableField(exist = false) @TableField(exist = false)
private String ifsPartNo; private String ifsPartNo;
@TableField(exist = false)
private BigDecimal unitPriceRate;
} }

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

@ -82,7 +82,9 @@
qd.else_cost, qd.else_cost,
qd.adjust_else_cost, qd.adjust_else_cost,
pp.plm_part_no, pp.plm_part_no,
pp.ifs_part_no
pp.ifs_part_no,
convert(decimal(20,6),(case when exchange_rate2 = 0 or exchange_rate2 is null then 0 else unit_price/exchange_rate2 end)) as unitPriceRate
from plm_quote_detail qd from plm_quote_detail qd
left join plm_quote q on qd.quote_id = q.id left join plm_quote q on qd.quote_id = q.id
left join part pp left join part pp
@ -305,7 +307,9 @@
qd.adjust_test_cost, qd.adjust_test_cost,
qd.else_cost, qd.else_cost,
qd.adjust_else_cost, qd.adjust_else_cost,
pp.ifs_part_no
pp.ifs_part_no,
convert(decimal(20,6),(case when exchange_rate2 = 0 or exchange_rate2 is null then 0 else unit_price/exchange_rate2 end)) as unitPriceRate
from plm_quote q from plm_quote q
left join plm_quote_detail qd on qd.quote_id = q.id left join plm_quote_detail qd on qd.quote_id = q.id
left join part pp left join part pp

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

@ -82,7 +82,9 @@
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,
pp.ifs_part_no
pp.ifs_part_no,
convert(decimal(20,6),(case when exchange_rate2 = 0 or exchange_rate2 is null then 0 else unit_price/exchange_rate2 end)) as unitPriceRate
from plm_quote_group_detail qd from plm_quote_group_detail qd
left join plm_quote q on qd.quote_id = q.id left join plm_quote q on qd.quote_id = q.id
left join part pp left join part pp
@ -299,7 +301,9 @@
qd.adjust_test_cost, qd.adjust_test_cost,
qd.else_cost, qd.else_cost,
qd.adjust_else_cost, qd.adjust_else_cost,
pp.ifs_part_no
pp.ifs_part_no,
convert(decimal(20,6),(case when exchange_rate2 = 0 or exchange_rate2 is null then 0 else unit_price/exchange_rate2 end)) as unitPriceRate
from plm_quote q from plm_quote q
left join plm_quote_detail qd on qd.quote_id = q.id left join plm_quote_detail qd on qd.quote_id = q.id
left join part pp left join part pp

Loading…
Cancel
Save