|
@@ -149,8 +149,8 @@ public class WdInfoServiceImpl implements WdInfoService {
|
|
@Override
|
|
@Override
|
|
public Page<ChannelVo> searchChannel(ChannelBo bo) {
|
|
public Page<ChannelVo> searchChannel(ChannelBo bo) {
|
|
QueryWrapper<WdInfo> wdInfoQueryWrapper = new QueryWrapper<>();
|
|
QueryWrapper<WdInfo> wdInfoQueryWrapper = new QueryWrapper<>();
|
|
- wdInfoQueryWrapper.ne("dsw.channel_type", "无");
|
|
|
|
- if (bo.getText() != null){
|
|
|
|
|
|
+ wdInfoQueryWrapper.ne("dsw.channel_type", "无");
|
|
|
|
+ if (bo.getText() != null) {
|
|
wdInfoQueryWrapper.and(wrapper -> {
|
|
wdInfoQueryWrapper.and(wrapper -> {
|
|
wrapper.like("dwi.wd_name", bo.getText())
|
|
wrapper.like("dwi.wd_name", bo.getText())
|
|
.or()
|
|
.or()
|
|
@@ -159,28 +159,59 @@ public class WdInfoServiceImpl implements WdInfoService {
|
|
.like("dsw.telephone", bo.getText());
|
|
.like("dsw.telephone", bo.getText());
|
|
});
|
|
});
|
|
}
|
|
}
|
|
|
|
+ // 网点分类(犇云)
|
|
|
|
+ List<String> types = new ArrayList<>();
|
|
|
|
+ if (bo.getTypeCodeBys() != null)
|
|
|
|
+ if (bo.getTypeCodeBys().length > 0) {
|
|
|
|
+ for (String type : bo.getTypeCodeBys())
|
|
|
|
+ types.addAll(categoryUtil.getAllOtherTypeBy(type));
|
|
|
|
+ } else
|
|
|
|
+ types = null;
|
|
|
|
+ else types = null;
|
|
|
|
+ if (types != null)
|
|
|
|
+ wdInfoQueryWrapper.in("type_code_by", types);
|
|
|
|
+
|
|
|
|
+ // 地区码
|
|
|
|
+ List<String> addrs = new ArrayList<>();
|
|
|
|
+ if (bo.getAddrCodes() != null)
|
|
|
|
+ if (bo.getAddrCodes().length > 0) {
|
|
|
|
+ for (String addr : bo.getAddrCodes())
|
|
|
|
+ addrs.addAll(categoryUtil.getAllOtherAddrCode(addr));
|
|
|
|
+ } else
|
|
|
|
+ addrs = null;
|
|
|
|
+ else addrs = null;
|
|
|
|
+ if (addrs != null)
|
|
|
|
+ wdInfoQueryWrapper.in("addr_code", addrs);
|
|
|
|
+
|
|
|
|
+ // 潜力值
|
|
|
|
+ if (bo.getIndexScore() != null)
|
|
|
|
+ if (bo.getIndexScore().length == 2)
|
|
|
|
+ wdInfoQueryWrapper.ge("index_score", bo.getIndexScore()[0])
|
|
|
|
+ .le("index_score", bo.getIndexScore()[1]);
|
|
|
|
+
|
|
Page<WdInfo> page = new Page<>(bo.getPageNum(), bo.getPageSize());
|
|
Page<WdInfo> page = new Page<>(bo.getPageNum(), bo.getPageSize());
|
|
return wdInfoMapper.selectChannel(page, wdInfoQueryWrapper);
|
|
return wdInfoMapper.selectChannel(page, wdInfoQueryWrapper);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
* 修改网点基本信息
|
|
* 修改网点基本信息
|
|
|
|
+ *
|
|
* @param wdInfoVo
|
|
* @param wdInfoVo
|
|
*/
|
|
*/
|
|
@Override
|
|
@Override
|
|
public void updateWdInfo(WdInfoVo wdInfoVo) {
|
|
public void updateWdInfo(WdInfoVo wdInfoVo) {
|
|
//1.修改网点基本信息
|
|
//1.修改网点基本信息
|
|
UpdateWrapper<WdInfo> updateWrapper = new UpdateWrapper<>();
|
|
UpdateWrapper<WdInfo> updateWrapper = new UpdateWrapper<>();
|
|
- updateWrapper.eq("wd_id",wdInfoVo.getWdId())
|
|
|
|
- .set("wd_name",wdInfoVo.getWdName())
|
|
|
|
- .set("addr_info",wdInfoVo.getAddrInfo())
|
|
|
|
- .set("addr_code",wdInfoVo.getAddrCode())
|
|
|
|
- .set("lat",wdInfoVo.getLat())
|
|
|
|
- .set("lng",wdInfoVo.getLng())
|
|
|
|
- .set("type_code_by",wdInfoVo.getTypeCodeBy())
|
|
|
|
- .set("type_name_by",wdInfoVo.getTypeNameBy())
|
|
|
|
|
|
+ updateWrapper.eq("wd_id", wdInfoVo.getWdId())
|
|
|
|
+ .set("wd_name", wdInfoVo.getWdName())
|
|
|
|
+ .set("addr_info", wdInfoVo.getAddrInfo())
|
|
|
|
+ .set("addr_code", wdInfoVo.getAddrCode())
|
|
|
|
+ .set("lat", wdInfoVo.getLat())
|
|
|
|
+ .set("lng", wdInfoVo.getLng())
|
|
|
|
+ .set("type_code_by", wdInfoVo.getTypeCodeBy())
|
|
|
|
+ .set("type_name_by", wdInfoVo.getTypeNameBy())
|
|
.set("update_time", DateUtils.getTime());
|
|
.set("update_time", DateUtils.getTime());
|
|
- wdInfoMapper.update(null,updateWrapper);
|
|
|
|
|
|
+ wdInfoMapper.update(null, updateWrapper);
|
|
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|