| | |
| | | "<if test='pageComShopGoodsDTO.name != null and pageComShopGoodsDTO.name.trim() != ""'>" + |
| | | "and c.name like concat('%',#{pageComShopGoodsDTO.name},'%') \n" + |
| | | " </if> " + |
| | | "<if test='pageComShopGoodsDTO.storeId != null'>" + |
| | | "and css.id=#{pageComShopGoodsDTO.storeId} \n" + |
| | | " </if> " + |
| | | |
| | | "<if test='pageComShopGoodsDTO.status != null'>" + |
| | | "and c.status like concat('%',#{pageComShopGoodsDTO.status},'%') \n" + |
| | | " </if> " + |
| | | " order by c.create_at desc" + |
| | | " </where>" + |
| | | "</script>") |
| | | IPage<PageShopGoodsVO> pageShopGoods(Page page, @Param("pageComShopGoodsDTO") PageComShopGoodsDTO pageComShopGoodsDTO); |
| | |
| | | */ |
| | | @Select("<script> " + |
| | | "select id,`name`,store_id,goods_pic,images,`status`,sale,original_price,price,unit" + |
| | | ",`order`,stock,details,delivery_type from com_shop_goods as csg " + |
| | | ",`order`,stock,details,delivery_type, create_at " + |
| | | " from com_shop_goods as csg " + |
| | | " where 1=1 and csg.delete_status = 1 " + |
| | | "<if test='comShopGoodsDTO.name != null and comShopGoodsDTO.name !=""'>" + |
| | | " AND csg.`name` like concat('%',#{comShopGoodsDTO.name},'%') " + |