| | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import com.ruoyi.sales.mapper.AreaMapper; |
| | | import com.ruoyi.sales.mapper.BusinessOpportunityMapper; |
| | | import com.ruoyi.sales.pojo.Area; |
| | | import com.ruoyi.sales.pojo.BusinessOpportunity; |
| | | import com.ruoyi.sales.service.BusinessOpportunityService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @author :yys |
| | |
| | | |
| | | @Autowired |
| | | private BusinessOpportunityMapper businessOpportunityMapper; |
| | | |
| | | @Autowired |
| | | private AreaMapper areaMapper; |
| | | |
| | | @Override |
| | | public IPage<BusinessOpportunity> listPage(Page page, BusinessOpportunity businessOpportunity) { |
| | |
| | | businessOpportunityLambdaQueryWrapper.orderByDesc(BusinessOpportunity::getEntryDate); |
| | | return businessOpportunityMapper.selectPage(page,businessOpportunityLambdaQueryWrapper); |
| | | } |
| | | |
| | | @Override |
| | | public List<Area> getProvinceList() { |
| | | return areaMapper.selectList(new LambdaQueryWrapper<Area>().eq(Area::getLevel,1).eq(Area::getParentId,0)); |
| | | } |
| | | |
| | | @Override |
| | | public List<Area> getCityList(Integer provinceId) { |
| | | return areaMapper.selectList(new LambdaQueryWrapper<Area>().eq(Area::getLevel,2).eq(Area::getParentId,provinceId)); |
| | | } |
| | | } |