zhijiezhao 8 months ago
parent
commit
3cd21172f1
1 changed files with 2 additions and 11 deletions
  1. 2 11
      src/main/resources/mappings/modules/product/ProductNewMapper.xml

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

@@ -6,9 +6,8 @@
         <result property="name" column="name"/>
         <result property="name" column="name"/>
     </resultMap>
     </resultMap>
     <sql id="productColumns">
     <sql id="productColumns">
-
         a.newvalidFlag,
         a.newvalidFlag,
-      ifnull(a.newProductType,2) as newProductType,
+        ifnull(a.newProductType,2) as newProductType,
         ifnull(a.announType,1) as announType,
         ifnull(a.announType,1) as announType,
         a.productID AS "id",
         a.productID AS "id",
         a.productID AS "productID",
         a.productID AS "productID",
@@ -37,22 +36,16 @@
         a.favoriteTimes AS "favoriteTimes",
         a.favoriteTimes AS "favoriteTimes",
         a.commentScore AS "commentScore",
         a.commentScore AS "commentScore",
         a.commentTimes AS "commentTimes",
         a.commentTimes AS "commentTimes",
---         a.selfRecommendFlag AS "selfRecommendFlag",
---         a.sysRecommendFlag AS "sysRecommendFlag",
         a.sortIndex AS "sortIndex",
         a.sortIndex AS "sortIndex",
         a.featuredFlag AS "featuredFlag",
         a.featuredFlag AS "featuredFlag",
         a.featuredSortIndex AS "featuredSortIndex",
         a.featuredSortIndex AS "featuredSortIndex",
         a.productCode AS "productCode",
         a.productCode AS "productCode",
---         a.synToERPFlag AS "synToERPFlag",
         a.allAreaFlag AS "allAreaFlag",
         a.allAreaFlag AS "allAreaFlag",
         a.provinceIDs AS "provinceIDs",
         a.provinceIDs AS "provinceIDs",
         a.serviceNumber AS "serviceNumber",
         a.serviceNumber AS "serviceNumber",
         a.packageCount AS "packageCount",
         a.packageCount AS "packageCount",
         a.byFlag AS "byFlag",
         a.byFlag AS "byFlag",
         a.normalProductFlag AS "normalProductFlag",
         a.normalProductFlag AS "normalProductFlag",
---         a.wholeSaleProductFlag AS "wholeSaleProductFlag",
---         a.promotionProductFlag AS "promotionProductFlag",
---         a.groupBuyProductFlag AS "groupBuyProductFlag",
         a.step AS "step",
         a.step AS "step",
         a.actStatus AS "actStatus",
         a.actStatus AS "actStatus",
         a.actFlag AS "actFlag",
         a.actFlag AS "actFlag",
@@ -60,7 +53,6 @@
         a.onlineTime AS "onlineTime",
         a.onlineTime AS "onlineTime",
         a.downlineTime AS "downlineTime",
         a.downlineTime AS "downlineTime",
         a.freePostFlag AS "freePostFlag",
         a.freePostFlag AS "freePostFlag",
---         a.precisehKey AS "precisehKey",
         s.name AS "shopName",
         s.name AS "shopName",
         a.actSort AS "actSort",
         a.actSort AS "actSort",
         a.recommendType AS "recommendType",
         a.recommendType AS "recommendType",
@@ -169,7 +161,7 @@
                 and copi.organizeId = #{groundMall}
                 and copi.organizeId = #{groundMall}
             </if>
             </if>
             <if test="groundMall == null">
             <if test="groundMall == null">
-                copi.organizeId = 0
+                AND copi.organizeId = 0
             </if>
             </if>
             <if test="productCategory != null and productCategory != ''">
             <if test="productCategory != null and productCategory != ''">
                 AND a.productCategory = #{productCategory}
                 AND a.productCategory = #{productCategory}
@@ -190,7 +182,6 @@
                     <if test="validFlag == null and validFlag == ''">
                     <if test="validFlag == null and validFlag == ''">
                         AND copi.validFlag != '0'
                         AND copi.validFlag != '0'
                     </if>
                     </if>
-
                 </if>
                 </if>
             </if>
             </if>
             <if test="brandID != null and brandID != ''">
             <if test="brandID != null and brandID != ''">