瀏覽代碼

关联已认证设备 SN码列表bugfix

kaick 2 年之前
父節點
當前提交
dcafe923fb

+ 1 - 1
src/main/java/com/caimei/service/auth/impl/AuthProductServiceImpl.java

@@ -980,7 +980,7 @@ public class AuthProductServiceImpl implements AuthProductService {
             String[] relationIdList = null;
             if (!"".equals(relationId) && null != relationId) {
                 relationIdList = relationId.split(",");
-                //获取该机构下所有的sn码
+                //获取该机构下relationIdList的sn码
                 snCodeList = authProductMapper.getSnCodeList(authUserId, authId, relationIdList, allSnlist,  productName,  sncode,  authParty);
             }
         }else {

+ 2 - 2
src/main/resources/mapper/AuthProductMapper.xml

@@ -499,7 +499,7 @@
     </select>
 
     <select id="getSnCodeList" resultType="com.caimei.model.vo.ProductListVo">
-        select DISTINCT p.id as productId,p.productTypeId as productTypeId,t.name as productName,snCode,a.authParty as
+        select  p.id as productId,p.productTypeId as productTypeId,t.name as productName,snCode,a.authParty as
         authParty
         from cm_brand_auth_product p
         left join cm_brand_product_relation r on p.id = r.productId
@@ -529,7 +529,7 @@
                 #{reId,jdbcType=VARCHAR}
             </foreach>
         </if>
-
+        GROUP BY p.id
     </select>
     <select id="getProductClubList" resultType="com.caimei.model.vo.WxClubListVo">
         select a.id as authId, a.authParty, a.logo