浏览代码

6月小版本

Duan_xu 2 年之前
父节点
当前提交
b0dc4ce7bf

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

@@ -140,6 +140,8 @@
         <include refid="productJoins"/>
         LEFT JOIN cm_product_activity cp on cp.productId = a.productID
         <where>
+            AND a.shopID not in (SELECT s.`value` FROM `sys_dict` s WHERE s.type='heheShopID')
+            AND a.productID NOT IN (6060, 6061, 6062, 6063, 6064,6065, 6066, 6067, 6068, 6069)
             <if test="id !=null and id !=''">
                 AND a.productID=#{id}
             </if>
@@ -226,17 +228,20 @@
             <if test="newvalidFlag !=null and newvalidFlag!= ''">
                 AND a.newvalidFlag=#{newvalidFlag}
             </if>
-                <if test="newProductType !=null and newProductType!= ''">
+                <if test="newProductType !=null">
             AND a.newProductType=#{newProductType}
         </if>
+            <if test="newProductType ==2">
+                AND a.newProductType=2
+                or a.newProductType is null
+            </if>
             <if test="contactName !=null and contactName !=''">
                 AND (cshd.contactName LIKE concat('%',#{contactName},'%') or cshd.companyName LIKE concat('%',#{contactName},'%'))
             </if>
             <if test="sqlMap !=null and sqlMap !=''">
                 ${sqlMap.dsf}
             </if>
-            AND a.shopID not in (SELECT s.`value` FROM `sys_dict` s WHERE s.type='heheShopID')
-            AND a.productID NOT IN (6060, 6061, 6062, 6063, 6064,6065, 6066, 6067, 6068, 6069)
+
         </where>
         <choose>
             <when test="page !=null and page.orderBy != null and page.orderBy != ''">

+ 2 - 2
src/main/webapp/WEB-INF/views/modules/product-new/productList.jsp

@@ -275,10 +275,10 @@
 			    <td>
 
 					<c:if test="${product.newProductType eq 2}">
-						<font color="darkorange">未参与</font>
+						<font >未参与</font>
 					</c:if>
 					<c:if test="${product.newProductType eq null}">
-						<font color="darkorange">未参与</font>
+						<font >未参与</font>
 					</c:if>
 					<c:if test="${product.newProductType eq 1}">
 						<font color="darkorange">参与</font>