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