From efd4457e40781e57f56c56dc9b4cddbf03e3ec68 Mon Sep 17 00:00:00 2001 From: fengyuan_yang <1976974459@qq.com> Date: Tue, 5 Nov 2024 17:19:52 +0800 Subject: [PATCH] =?UTF-8?q?2024-11-05=20=E5=BA=93=E5=AD=98=E4=BB=B6?= =?UTF-8?q?=E5=92=8C=E7=89=A9=E6=96=99=E4=BB=B6=E6=8E=A5=E5=8F=A3=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../MasterPartInformationServiceImpl.java | 11 ++++++---- .../impl/PartInformationServiceImpl.java | 21 ++++++++++++------- .../mapper/part/PartInformationMapper.xml | 7 ++++--- 3 files changed, 24 insertions(+), 15 deletions(-) diff --git a/src/main/java/com/spring/modules/part/service/impl/MasterPartInformationServiceImpl.java b/src/main/java/com/spring/modules/part/service/impl/MasterPartInformationServiceImpl.java index 241eec58..aad89d0b 100644 --- a/src/main/java/com/spring/modules/part/service/impl/MasterPartInformationServiceImpl.java +++ b/src/main/java/com/spring/modules/part/service/impl/MasterPartInformationServiceImpl.java @@ -498,10 +498,13 @@ public class MasterPartInformationServiceImpl extends ServiceImpl - AND required_completion_date >= #{query.startDate} + AND create_date >= #{query.startDate} - AND #{query.endDate} >= required_completion_date + AND #{query.endDate} >= create_date @@ -1802,7 +1802,8 @@ a.PropertiesItemNo as characteristicCode, isnull(a.TextValue, '') as attrValueAlpha, ISNULL(CONVERT(VARCHAR(20), a.NumValue, 1), '') as attrValueNumeric, - case when b.ValueType_DB = 'T' then 'Alpha' when b.ValueType_DB = 'N' then 'Numeric' else '' end as characteristicType + case when b.ValueType_DB = 'T' then 'Alpha' when b.ValueType_DB = 'N' then 'Numeric' else '' end as characteristicType, + '' as unitMeas FROM PartSubPropertiesValue as a left join plm_properties_item as b on a.site = b.site and a.PropertiesItemNo = b.ItemNo and a.RecordType = b.ItemType where a.site = #{site} and a.RecordType = #{recordType} and a.PartNo = #{partNo} and a.CodeNo = #{codeNo}