|
@@ -11,6 +11,7 @@ import com.zhongzheng.modules.base.domain.ApplyAreas;
|
|
|
import com.zhongzheng.modules.base.mapper.ApplyAreasMapper;
|
|
|
import com.zhongzheng.modules.base.service.IApplyAreasService;
|
|
|
import com.zhongzheng.modules.base.vo.ApplyAreasVo;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
@@ -19,7 +20,6 @@ import com.github.pagehelper.Page;
|
|
|
|
|
|
|
|
|
import java.util.Collection;
|
|
|
-import java.util.Collections;
|
|
|
import java.util.List;
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
@@ -32,6 +32,10 @@ import java.util.stream.Collectors;
|
|
|
@Service
|
|
|
public class ApplyAreasServiceImpl extends ServiceImpl<ApplyAreasMapper, ApplyAreas> implements IApplyAreasService {
|
|
|
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private ApplyAreasMapper applyAreasMapper;
|
|
|
+
|
|
|
@Override
|
|
|
public ApplyAreasVo queryById(Long areaId){
|
|
|
ApplyAreas db = this.baseMapper.selectById(areaId);
|
|
@@ -46,10 +50,15 @@ public class ApplyAreasServiceImpl extends ServiceImpl<ApplyAreasMapper, ApplyAr
|
|
|
lqw.like(StrUtil.isNotBlank(bo.getAreaFullName()), ApplyAreas::getAreaFullName, bo.getAreaFullName());
|
|
|
lqw.eq(bo.getParentId() != null, ApplyAreas::getParentId, bo.getParentId());
|
|
|
lqw.eq(bo.getAreaType() != null, ApplyAreas::getAreaType, bo.getAreaType());
|
|
|
- lqw.eq(bo.getStatus() != null, ApplyAreas::getStatus, bo.getStatus());
|
|
|
+ lqw.in(bo.getStatus() != null, ApplyAreas::getStatus, bo.getStatus());
|
|
|
return entity2Vo(this.list(lqw));
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public List<ApplyAreas> selectCityList(ApplyAreasQueryBo bo) {
|
|
|
+ return applyAreasMapper.selectCityList(bo);
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 实体类转化成视图对象
|
|
|
*
|