|
@@ -37,9 +37,9 @@ public class WaterWorksServiceImpl implements WaterWorksService {
|
|
|
private CommonBusinessDao commonBusinessDao;
|
|
|
|
|
|
@Override
|
|
|
- public R getList(Map<String,String> dsKey) {
|
|
|
+ public R getList(Map<String, String> dsKey) {
|
|
|
// 设置水务公司数据字典
|
|
|
- List<TenantDo> tenantDos = commonBusinessDao.getByDsKey(dsKey.getOrDefault("dsKey",""));
|
|
|
+ List<TenantDo> tenantDos = commonBusinessDao.getByDsKey(dsKey.getOrDefault("dsKey", ""), "0");
|
|
|
List<String> dsKeys = tenantDos.stream().filter(data -> !"incontrol".equals(data.getDskey()))
|
|
|
.map(TenantDo::getDskey)
|
|
|
.collect(Collectors.toList());
|
|
@@ -55,11 +55,11 @@ public class WaterWorksServiceImpl implements WaterWorksService {
|
|
|
weChatPickerVo.setId(data.getDskey());
|
|
|
weChatPickerVo.setName(data.getTenantname());
|
|
|
weChatPickerVo.setSwCompanyInfo(swEnterpriseConfigInfoDos.stream()
|
|
|
- .filter(info->data.getDskey().equals(info.getRoption()))
|
|
|
+ .filter(info -> data.getDskey().equals(info.getRoption()))
|
|
|
.findFirst()
|
|
|
.orElse(null));
|
|
|
weChatPickerVo.setBusinessPoint(swBusinesshallDos.stream()
|
|
|
- .filter(sw->data.getDskey().equals(sw.getRoption()))
|
|
|
+ .filter(sw -> data.getDskey().equals(sw.getRoption()))
|
|
|
.sorted(Comparator.comparing(SwBusinesshallDo::getOrdernumber))
|
|
|
.collect(Collectors.toList()));
|
|
|
return weChatPickerVo;
|