提交 9f30b445 authored 作者: zhengfg's avatar zhengfg

修改商品列表的SQL

上级 bbb3a69f
......@@ -3,6 +3,8 @@ package com.platform.entity;
import java.io.Serializable;
public class TbCfStationItemEntityExtends extends TbCfStationItemEntity implements Serializable {
private String dname;
private String title;
private String goodtype;
......
......@@ -61,9 +61,9 @@
o.goodstype_title goodtype
FROM
tb_cf_station_item i
LEFT JOIN tb_cf_descripiton d ON i.item_descrition_id = d.descripition_id
LEFT JOIN tb_cf_goodstwotype t ON t.goodstwotype_id = d.goodstwotype_id
LEFT JOIN tb_cf_goodstype o ON o.goodstype_id = t.goodstype_id
left JOIN tb_cf_goodstype o ON o.goodstype_id = i.item_category
left JOIN tb_cf_goodstwotype t ON i.item_categorytwo=t.goodstwotype_id
left JOIN tb_cf_descripiton d ON i.item_descrition_id = d.descripition_id
WHERE 1=1
<if test="name != null and name.trim() != ''">
AND name LIKE concat('%',#{name},'%')
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论