2786496d 刘嘉

商品下载判断条件修改

1 个父辈 92427ee4
...@@ -161,8 +161,11 @@ ...@@ -161,8 +161,11 @@
161 SELECT p.im_product_id,p.name,p.im_product_id AS OuterID,IFNULL(p.retail_price,0) price,p.stock_num,p.bannel_img1 161 SELECT p.im_product_id,p.name,p.im_product_id AS OuterID,IFNULL(p.retail_price,0) price,p.stock_num,p.bannel_img1
162 FROM im_product p,im_product_supplier i 162 FROM im_product p,im_product_supplier i
163 WHERE p.im_product_id = i.product_id and i.supplier_id= #{supplierId} 163 WHERE p.im_product_id = i.product_id and i.supplier_id= #{supplierId}
164 <if test="isShow !=null and isShow !='' and isShow != -1"> 164 <if test="isShow == 0">
165 and p.is_show = #{isShow} 165 and p.is_show = 0
166 </if>
167 <if test="isShow == 1">
168 and p.is_show = 1
166 </if> 169 </if>
167 <if test="productId !=null and productId !=''"> 170 <if test="productId !=null and productId !=''">
168 AND p.im_product_id =#{productId} 171 AND p.im_product_id =#{productId}
......
...@@ -32,7 +32,6 @@ public class DownloadProductBizServiceImpl extends AbstractBizService<DownloadP ...@@ -32,7 +32,6 @@ public class DownloadProductBizServiceImpl extends AbstractBizService<DownloadP
32 params.put("supplierId",callRequest.getSupplier().getId()); 32 params.put("supplierId",callRequest.getSupplier().getId());
33 if(!StringUtil.isNull(callRequest.getBizModel().getStatus())){ 33 if(!StringUtil.isNull(callRequest.getBizModel().getStatus())){
34 params.put("isShow", DownloadProductStatusEnum.resolve(callRequest.getBizModel().getStatus()).intValue()); 34 params.put("isShow", DownloadProductStatusEnum.resolve(callRequest.getBizModel().getStatus()).intValue());
35 log.info("产品下载状态:"+DownloadProductStatusEnum.resolve(callRequest.getBizModel().getStatus()).intValue()+"***"+callRequest.getBizModel().getStatus());
36 } 35 }
37 params.put("PageIndex",(callRequest.getBizModel().getPageIndex() - 1) * callRequest.getBizModel().getPageSize()); 36 params.put("PageIndex",(callRequest.getBizModel().getPageIndex() - 1) * callRequest.getBizModel().getPageSize());
38 params.put("PageSize",callRequest.getBizModel().getPageSize()); 37 params.put("PageSize",callRequest.getBizModel().getPageSize());
......