| | |
| | | from com_shop_flower_goods as csg |
| | | left join com_convenient_merchants as css on css.id = csg.store_id |
| | | left join com_convenient_goods_scope as cgs on cgs.goods_id = csg.id |
| | | where 1=1 and csg.delete_status = 1 and |
| | | css.`business_status` = 1 |
| | | where 1=1 and csg.delete_status = 1 |
| | | |
| | | <if test='comShopFlowerGoodsDTO.name != null and comShopFlowerGoodsDTO.name !=""'> |
| | | AND csg.`name` like concat('%',#{comShopFlowerGoodsDTO.name},'%') |
| | | </if> |
| | | <if test='comShopFlowerGoodsDTO.status != null '>AND csg.`status` = #{comShopFlowerGoodsDTO.status}</if> |
| | | <if test='comShopFlowerGoodsDTO.storeId != null '>AND csg.store_id = #{comShopFlowerGoodsDTO.storeId}</if> |
| | | <if test='comShopFlowerGoodsDTO.storeId == null '> |
| | | and css.`business_status` = 1 |
| | | </if> |
| | | <if test='comShopFlowerGoodsDTO.deliveryType != null '>AND csg.delivery_type like concat('%',#{comShopFlowerGoodsDTO.deliveryType},'%') </if> |
| | | <if test='comShopFlowerGoodsDTO.categoriesId != null '>AND cgs.goods_category_id = #{comShopFlowerGoodsDTO.categoriesId}</if> |
| | | order by sale desc,create_at desc |