From 6d8ca83a81eb6601f22ca800a544faf5109f918f Mon Sep 17 00:00:00 2001
From: k94314517 <8417338+k94314517@user.noreply.gitee.com>
Date: 星期二, 19 九月 2023 14:37:35 +0800
Subject: [PATCH] 基础字段

---
 server/service/src/main/resources/mappers/CateParamSelectMapper.xml |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/server/service/src/main/resources/mappers/CateParamSelectMapper.xml b/server/service/src/main/resources/mappers/CateParamSelectMapper.xml
index f11a72c..04acf37 100644
--- a/server/service/src/main/resources/mappers/CateParamSelectMapper.xml
+++ b/server/service/src/main/resources/mappers/CateParamSelectMapper.xml
@@ -7,7 +7,7 @@
         INSERT INTO `cate_param_select`
             (`CREATOR`, `CREATE_DATE`, `EDITOR`, `EDIT_DATE`, `ISDELETED`, `REMARK`, `NAME`, `PARAM_ID`, `CATEGORY_ID`,
              `STATUS`, `SORTNUM`)
-            select #{userId} , now(),null , null , 0 , null , a.VAL , a.PRAMA_ID , b.CATEGORY_ID , 0 , null  from goods_param a  inner join goods  b on a.GOODS_ID = b.ID
+            select DISTINCT #{userId} , now(),null , null , 0 , null , a.VAL , a.PRAMA_ID , b.CATEGORY_ID , 0 , null  from goods_param a  inner join goods  b on a.GOODS_ID = b.ID
                 and a.PRAMA_ID is not null AND a.VAL is not null
                 and a.ISDELETED = 0
                 and a.`STATUS` = 0

--
Gitblit v1.9.3