From ac14111c40d4e202ac41eeb88cc57ae521a3139b Mon Sep 17 00:00:00 2001
From: chenlu <1320612696@qq.com>
Date: 星期一, 19 八月 2024 08:39:17 +0800
Subject: [PATCH] 次破明细表添加实体类禁止用于查询
---
north-glass-erp/src/main/resources/mapper/sd/ProductMapper.xml | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/north-glass-erp/src/main/resources/mapper/sd/ProductMapper.xml b/north-glass-erp/src/main/resources/mapper/sd/ProductMapper.xml
index e915d83..dd28dd4 100644
--- a/north-glass-erp/src/main/resources/mapper/sd/ProductMapper.xml
+++ b/north-glass-erp/src/main/resources/mapper/sd/ProductMapper.xml
@@ -64,6 +64,9 @@
<if test="product.creator != null and product.creator != ''">
and a.creator like concat('%',#{product.creator},'%')
</if>
+ <if test="product.state != null">
+ and a.state = #{product.state}
+ </if>
<if test="product.createTime != null and product.createTime != ''">
and date(a.create_time) like concat('%',#{product.createTime},'%')
</if>
@@ -74,6 +77,14 @@
;
</select>
+ <select id="selectProduct">
+ select * from sd.product where ${productName}=#{productNameValue}
+ </select>
+
+ <select id="selectProductId">
+ select * from sd.product where ${productName}=#{productNameValue} and id != #{id}
+ </select>
+
<select id="getPageTotal" >
select
CEILING(count(a.id)/#{pageSize})
--
Gitblit v1.8.0