From 45867accb90b6a1078bcc251889cd979da0fa00b Mon Sep 17 00:00:00 2001
From: yuan <123@>
Date: 星期四, 17 九月 2026 23:52:01 +0800
Subject: [PATCH] fix: bug+bug=work
---
src/main/resources/mapper/basic/ProductModelMapper.xml | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/src/main/resources/mapper/basic/ProductModelMapper.xml b/src/main/resources/mapper/basic/ProductModelMapper.xml
index 6270b1d..d8395ea 100644
--- a/src/main/resources/mapper/basic/ProductModelMapper.xml
+++ b/src/main/resources/mapper/basic/ProductModelMapper.xml
@@ -12,6 +12,8 @@
<result column="tenant_id" property="tenantId" />
<result column="product_name" property="productName" />
<result column="product_id" property="productId" />
+ <result column="product_code" property="productCode" />
+ <result column="barcode" property="barcode" />
</resultMap>
<resultMap id="ProductModelVoResultMap" type="com.ruoyi.basic.vo.ProductModelVo" extends="BaseResultMap">
@@ -30,6 +32,9 @@
<if test="c.model != null and c.model != ''">
and pm.model like concat('%',#{c.model},'%')
</if>
+ <if test="c.barcode != null and c.barcode != ''">
+ and pm.barcode like concat('%',#{c.barcode},'%')
+ </if>
<if test="c.productName != null and c.productName != ''">
and p.product_name like concat('%',#{c.productName},'%')
</if>
--
Gitblit v1.9.3