From 3036658c32319d376f9053512a04581a452cdffa Mon Sep 17 00:00:00 2001
From: wcy <761646706@qq.com>
Date: Fri, 11 Oct 2024 10:09:10 +0800
Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E4=BB=B6=E7=AE=A1=E7=90=86=E6=97=A5?=
=?UTF-8?q?=E6=9C=9F=E6=90=9C=E7=B4=A2=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../src/main/resources/mapper/base/MaPartTypeMapper.xml | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/sgzb-modules/sgzb-material/src/main/resources/mapper/base/MaPartTypeMapper.xml b/sgzb-modules/sgzb-material/src/main/resources/mapper/base/MaPartTypeMapper.xml
index c2b7a8c..120ccf9 100644
--- a/sgzb-modules/sgzb-material/src/main/resources/mapper/base/MaPartTypeMapper.xml
+++ b/sgzb-modules/sgzb-material/src/main/resources/mapper/base/MaPartTypeMapper.xml
@@ -43,7 +43,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
remark,
create_by,
company_id,
- create_time
+ create_time,
+ year
) values (
#{paId},
#{paName},
@@ -57,7 +58,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
#{remark},
#{createBy},
#{companyId},
- sysdate()
+ sysdate(),
+ YEAR(CURDATE())
)
@@ -113,7 +115,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
OR t3.pa_name LIKE CONCAT('%', #{paName}, '%'))
- AND year = #{year}
+ AND t1.year = #{year}