kaick 1 year ago
parent
commit
ad89709153

+ 0 - 1
src/main/resources/mappings/modules/cmpage/CmPageCentreMapper.xml

@@ -203,7 +203,6 @@
 		  left join cm_hehe_product chp on a.productId = chp.productId
 		WHERE
 		  a.centreId = #{centreId}
-		and copi.organizeId=(SELECT SUBSTRING(groundMall, 1, 1)FROM product WHERE productID=p.productId)
           <if test="type != null and type == '8'">
               and chp.id is not null
           </if>

+ 0 - 1
src/main/resources/mappings/modules/hehe/CmHeheProductMapper.xml

@@ -161,7 +161,6 @@
         LEFT JOIN shop s on s.shopID = a.shopID
         <where>
             a.splitCode is not null and a.splitCode != '' and  copi.validFlag=2
-            and copi.organizeId=(SELECT SUBSTRING(groundMall, 1, 1)FROM product WHERE productID=a.productId)
             and s.shopID in(SELECT shopID FROM shop  WHERE name ='深圳市采美奥泰贸易有限公司')
             <if test="productID != null">
                 AND a.productID = #{productID}

+ 1 - 1
src/main/resources/mappings/modules/product/ProductNewMapper.xml

@@ -124,7 +124,7 @@
         <include refid="productColumns"/>
         FROM product a
         <include refid="productJoins"/>
-        WHERE a.productID = #{id} and  copi.organizeId=(SELECT SUBSTRING(groundMall, 1, 1)FROM product WHERE productID=#{id})
+        WHERE a.productID = #{id}
         group by a.productID
     </select>