| | |
| | | package com.ruoyi.shop.service.impl.shop; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.shop.domain.dto.MerShopSuggestDto; |
| | | import com.ruoyi.shop.domain.pojo.shop.ShopSuggest; |
| | | import com.ruoyi.shop.domain.vo.MerShopSuggestVo; |
| | | import com.ruoyi.shop.mapper.shop.ShopSuggestMapper; |
| | | import com.ruoyi.shop.service.shop.ShopSuggestService; |
| | | import com.ruoyi.system.api.domain.dto.MerPageDto; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | @Service |
| | | public class ShopSuggestServiceImpl extends ServiceImpl<ShopSuggestMapper, ShopSuggest> implements ShopSuggestService { |
| | | |
| | | @Resource |
| | | private ShopSuggestMapper shopSuggestMapper; |
| | | |
| | | /** |
| | | * |
| | | * @param page |
| | | * @param merPageDto |
| | | * @return |
| | | */ |
| | | @Override |
| | | public List<MerShopSuggestVo> pageMerShopSuggest(Page page, MerPageDto merPageDto){ |
| | | return shopSuggestMapper.pageMerShopSuggest(page, merPageDto); |
| | | } |
| | | |
| | | /** |
| | | * |
| | | * @param merShopSuggestDto |
| | | */ |
| | | @Override |
| | | public void suggest(MerShopSuggestDto merShopSuggestDto){ |
| | | ShopSuggest shopSuggest = new ShopSuggest(); |
| | | shopSuggest.setDelFlag(0); |
| | | shopSuggest.setCreateUserId(merShopSuggestDto.getUserId()); |
| | | shopSuggest.setShopId(merShopSuggestDto.getShopId()); |
| | | shopSuggest.setSuggestContent(merShopSuggestDto.getSuggestContent()); |
| | | this.save(shopSuggest); |
| | | } |
| | | } |