2786496d 刘嘉

商品下载判断条件修改

1 个父辈 92427ee4
......@@ -161,8 +161,11 @@
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
FROM im_product p,im_product_supplier i
WHERE p.im_product_id = i.product_id and i.supplier_id= #{supplierId}
<if test="isShow !=null and isShow !='' and isShow != -1">
and p.is_show = #{isShow}
<if test="isShow == 0">
and p.is_show = 0
</if>
<if test="isShow == 1">
and p.is_show = 1
</if>
<if test="productId !=null and productId !=''">
AND p.im_product_id =#{productId}
......
......@@ -32,7 +32,6 @@ public class DownloadProductBizServiceImpl extends AbstractBizService<DownloadP
params.put("supplierId",callRequest.getSupplier().getId());
if(!StringUtil.isNull(callRequest.getBizModel().getStatus())){
params.put("isShow", DownloadProductStatusEnum.resolve(callRequest.getBizModel().getStatus()).intValue());
log.info("产品下载状态:"+DownloadProductStatusEnum.resolve(callRequest.getBizModel().getStatus()).intValue()+"***"+callRequest.getBizModel().getStatus());
}
params.put("PageIndex",(callRequest.getBizModel().getPageIndex() - 1) * callRequest.getBizModel().getPageSize());
params.put("PageSize",callRequest.getBizModel().getPageSize());
......