| | |
| | | * @return 商品列表 |
| | | */ |
| | | @Select("<script> " + |
| | | "select id,`name`,store_id,goods_pic,images,`status`,sale,original_price,price,unit" + |
| | | ",`order`,stock,details,delivery_type, create_at " + |
| | | "select csg.id,csg.`name`,csg.store_id,csg.goods_pic,csg.images,csg.`status`,csg.sale,csg.original_price " + |
| | | ",csg.price,csg.unit,csg.`order`,csg.stock,csg.details,csg.delivery_type, csg.create_at " + |
| | | " from com_shop_goods as csg " + |
| | | " where 1=1 and csg.delete_status = 1 " + |
| | | " left join com_shop_store as css on css.id = csg.store_id " + |
| | | " where 1=1 and csg.delete_status = 1 and css.`status` = 1" + |
| | | "<if test='comShopGoodsDTO.name != null and comShopGoodsDTO.name !=""'>" + |
| | | " AND csg.`name` like concat('%',#{comShopGoodsDTO.name},'%') " + |
| | | " </if> " + |