Browse Source

接口调整 客户没有设置启动页赋值默认值

master
sunyuchao 4 years ago
parent
commit
9c6e95c365
  1. 4
      epmet-module/oper-customize/oper-customize-server/src/main/java/com/epmet/service/impl/CustomerStartPageServiceImpl.java

4
epmet-module/oper-customize/oper-customize-server/src/main/java/com/epmet/service/impl/CustomerStartPageServiceImpl.java

@ -187,7 +187,9 @@ public class CustomerStartPageServiceImpl extends BaseServiceImpl<CustomerStartP
//2.根据客户Id查询客户启动页数据 //2.根据客户Id查询客户启动页数据
List<StartPageResultDTO> defList = baseDao.selectByCustomerId(dto.getId()); List<StartPageResultDTO> defList = baseDao.selectByCustomerId(dto.getId());
if(null==defList||defList.size()<NumConstant.ONE){
defList = baseDao.selectByCustomerId("default");
}
//3.封装数据并返回 //3.封装数据并返回
defList.forEach(d -> { defList.forEach(d -> {
if ("resi".equals(d.getClientType())) { if ("resi".equals(d.getClientType())) {

Loading…
Cancel
Save