From df6b1730af71d054e188444c59dd691247fdd453 Mon Sep 17 00:00:00 2001 From: liumingxiy Date: Fri, 15 Nov 2024 16:32:08 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=A0=B9=E6=8D=AERFID?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ktg/mes/md/mapper/BaseKnifeMapper.java | 2 + .../resources/mapper/md/BaseKnifeMapper.xml | 59 +++++++++++++++++++ 2 files changed, 61 insertions(+) diff --git a/ktg-mes/src/main/java/com/ktg/mes/md/mapper/BaseKnifeMapper.java b/ktg-mes/src/main/java/com/ktg/mes/md/mapper/BaseKnifeMapper.java index 3459328..9280a34 100644 --- a/ktg-mes/src/main/java/com/ktg/mes/md/mapper/BaseKnifeMapper.java +++ b/ktg-mes/src/main/java/com/ktg/mes/md/mapper/BaseKnifeMapper.java @@ -21,6 +21,8 @@ public interface BaseKnifeMapper { */ BaseKnife selectBaseKnifeByBaseKnifeId(Long baseKnifeId); + BaseKnife selectBaseKnifeByRfid(String rfId); + /** * 查询工具台账列表 * diff --git a/ktg-mes/src/main/resources/mapper/md/BaseKnifeMapper.xml b/ktg-mes/src/main/resources/mapper/md/BaseKnifeMapper.xml index 2d2170f..6eb3ae8 100644 --- a/ktg-mes/src/main/resources/mapper/md/BaseKnifeMapper.xml +++ b/ktg-mes/src/main/resources/mapper/md/BaseKnifeMapper.xml @@ -235,6 +235,65 @@ where a.BASE_KNIFE_ID = #{baseKnifeId} + + insert into BASE_KNIFE From 3edc3317e94bcf0109a5ae71483b4ca43f2b1f4f Mon Sep 17 00:00:00 2001 From: liumingxiy Date: Fri, 15 Nov 2024 16:37:51 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=B3=A8=E8=A7=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/ktg/mes/md/mapper/BaseKnifeMapper.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ktg-mes/src/main/java/com/ktg/mes/md/mapper/BaseKnifeMapper.java b/ktg-mes/src/main/java/com/ktg/mes/md/mapper/BaseKnifeMapper.java index 865b4cf..cc8c34c 100644 --- a/ktg-mes/src/main/java/com/ktg/mes/md/mapper/BaseKnifeMapper.java +++ b/ktg-mes/src/main/java/com/ktg/mes/md/mapper/BaseKnifeMapper.java @@ -2,7 +2,6 @@ package com.ktg.mes.md.mapper; import com.ktg.mes.md.domain.BaseKnife; import com.ktg.mes.md.domain.MdItem; -import com.sun.org.apache.xpath.internal.operations.Bool; import org.apache.ibatis.annotations.Param; import java.util.List; @@ -22,7 +21,7 @@ public interface BaseKnifeMapper { */ BaseKnife selectBaseKnifeByBaseKnifeId(Long baseKnifeId); - BaseKnife selectBaseKnifeByRfid(String rfId); + BaseKnife selectBaseKnifeByRfid(@Param("rfId") String rfId); /** * 查询工具台账列表