提交 fef533bb authored 作者: 吴德鹏's avatar 吴德鹏

修改商品分类bug

上级 4c1be44b
...@@ -64,11 +64,11 @@ ...@@ -64,11 +64,11 @@
tw.`goodstwotype_url`, tw.`goodstwotype_url`,
ds.`goodstype_id`, ds.`goodstype_id`,
ds.`goodstype_title`, ds.`goodstype_title`,
t.count count IFNULL(t.count,0) count
FROM FROM
tb_cf_goodstwotype tw tb_cf_goodstwotype tw
INNER JOIN tb_cf_goodstype ds ON ds.goodstype_id = tw.goodstype_id left JOIN tb_cf_goodstype ds ON ds.goodstype_id = tw.goodstype_id
INNER JOIN ( SELECT count( * ) count, c.item_categorytwo FROM tb_cf_station_item c GROUP BY item_categorytwo ) t ON tw.goodstwotype_id = t.item_categorytwo left JOIN ( SELECT count( * ) count, c.item_categorytwo FROM tb_cf_station_item c where c.enable_flag!=0 GROUP BY item_categorytwo ) t ON tw.goodstwotype_id = t.item_categorytwo
WHERE 1=1 WHERE 1=1
<if test="name != null and name.trim() != ''"> <if test="name != null and name.trim() != ''">
AND goodstwotype_title LIKE concat('%',#{name},'%') AND goodstwotype_title LIKE concat('%',#{name},'%')
...@@ -128,4 +128,4 @@ ...@@ -128,4 +128,4 @@
</foreach> </foreach>
</delete> </delete>
</mapper> </mapper>
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论