From 015c20dde9d25c0f47033889264f3d0e960ccb96 Mon Sep 17 00:00:00 2001 From: qiezi <15576055375@163.com> Date: Sat, 12 Oct 2024 16:48:58 +0800 Subject: [PATCH] 2024-10-12 --- .../entity/QuotationInformationEntity.java | 3 +++ .../mapper/quotation/QuotationDetailMapper.xml | 8 ++++---- .../quotation/QuoteDetailPropertiesMapper.xml | 13 ++----------- 3 files changed, 9 insertions(+), 15 deletions(-) diff --git a/src/main/java/com/spring/modules/quotation/entity/QuotationInformationEntity.java b/src/main/java/com/spring/modules/quotation/entity/QuotationInformationEntity.java index 432d3339..09072d14 100644 --- a/src/main/java/com/spring/modules/quotation/entity/QuotationInformationEntity.java +++ b/src/main/java/com/spring/modules/quotation/entity/QuotationInformationEntity.java @@ -22,10 +22,13 @@ public class QuotationInformationEntity extends QueryPage implements Serializabl /** * 工厂 **/ + + @TableField(updateStrategy = FieldStrategy.NEVER) private String site; /** * 报价单号 **/ + @TableField(updateStrategy = FieldStrategy.NEVER) private String quotationNo; /** * 客户编码 diff --git a/src/main/resources/mapper/quotation/QuotationDetailMapper.xml b/src/main/resources/mapper/quotation/QuotationDetailMapper.xml index 0bd93504..14f8028f 100644 --- a/src/main/resources/mapper/quotation/QuotationDetailMapper.xml +++ b/src/main/resources/mapper/quotation/QuotationDetailMapper.xml @@ -250,8 +250,8 @@ code_desc, function_type FROM plm_properties_model_header - WHERE function_type = 'IP' - AND code_no = 'I002' + WHERE function_type = 'BJ' + AND code_no = 'BJ001' AND site = #{site} @@ -261,8 +261,8 @@ select concat('BJ',#{quotationDetailId}),ppmd.site,ppmd.code_no,1,ppmh.code_desc,seq_no,properties_item_no,'','',ppmd.function_type from plm_properties_model_detail ppmd left join plm_properties_model_header ppmh on ppmh.function_type = ppmd.function_type and ppmh.code_no = ppmd.code_no and ppmh.site = ppmd.site - WHERE ppmd.function_type = 'IP' - AND ppmd.code_no = 'I002' + WHERE ppmd.function_type = 'BJ' + AND ppmd.code_no = 'BJ001' AND ppmd.site = #{site} diff --git a/src/main/resources/mapper/quotation/QuoteDetailPropertiesMapper.xml b/src/main/resources/mapper/quotation/QuoteDetailPropertiesMapper.xml index 2756fb44..a7a5785c 100644 --- a/src/main/resources/mapper/quotation/QuoteDetailPropertiesMapper.xml +++ b/src/main/resources/mapper/quotation/QuoteDetailPropertiesMapper.xml @@ -168,21 +168,12 @@ resultType="com.spring.modules.base.entity.PartSubPropertiesValueHeader"> select top 1 PartNo, Site, CodeNo, SubCodeSeqNo, SubCodeDesc, RecordType from PartSubPropertiesValueHeader - where CodeNo = 'I002' - and SubCodeSeqNo = 1 - and RecordType = 'IP' - and PartNo = concat('BJ', #{quotationDetailId}) - and Site = #{site} + where PartNo = concat('BJ', #{quotationDetailId}) delete from PartSubPropertiesValue where PartNo = concat('BJ', #{quotationDetailId}) - and Site = #{site} - and RecordType = #{recordType} - and ItemNo = #{orderNo} - and CodeNo = #{codeNo} - and SubCodeSeqNo = #{subCodeSeqNo} @@ -193,7 +184,7 @@