| | |
| | | import com.panzhihua.common.utlis.StringUtils; |
| | | import com.panzhihua.sangeshenbian.dao.SystemUserMapper; |
| | | import com.panzhihua.sangeshenbian.model.entity.SystemUser; |
| | | import com.panzhihua.sangeshenbian.model.vo.RegionVO; |
| | | import com.panzhihua.sangeshenbian.service.ISystemUserService; |
| | | import com.panzhihua.sangeshenbian.warpper.SystemUserList; |
| | | import com.panzhihua.sangeshenbian.warpper.SystemUserListVo; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | import java.util.Optional; |
| | | |
| | | /** |
| | |
| | | * @return |
| | | */ |
| | | @Override |
| | | public IPage<SystemUserListVo> list(Integer accountLevel, SystemUserList query) { |
| | | public IPage<SystemUserListVo> list(SystemUser user, SystemUserList query) { |
| | | Page page = new Page<>(); |
| | | page.setCurrent(query.getPageNum()); |
| | | page.setSize(query.getPageSize()); |
| | | IPage<SystemUserListVo> list = this.baseMapper.list(page, accountLevel, query); |
| | | IPage<SystemUserListVo> list = this.baseMapper.list(page, user, query); |
| | | return list; |
| | | } |
| | | |
| | |
| | | .eq(SystemUser::getPhone, phone).ne(SystemUser::getStatus, 3) |
| | | .eq(SystemUser::getIsAdmin, 1).last("LIMIT 1").oneOpt(); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * 获取行政区划数据 |
| | | * |
| | | * @param pcode |
| | | * @return |
| | | */ |
| | | @Override |
| | | public List<RegionVO> getRegion(String pcode) { |
| | | return this.baseMapper.getRegion(pcode); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 获取街道数据 |
| | | * |
| | | * @param areaCode |
| | | * @return |
| | | */ |
| | | @Override |
| | | public List<RegionVO> getStreet(String areaCode) { |
| | | return this.baseMapper.getStreet(areaCode); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 获取社区数据 |
| | | * |
| | | * @param streetId |
| | | * @return |
| | | */ |
| | | @Override |
| | | public List<RegionVO> getCommunity(String streetId) { |
| | | return this.baseMapper.getCommunity(streetId); |
| | | } |
| | | } |