Browse Source

dubbo注册到nacos

zyh
zhanyunjiu 2 years ago
parent
commit
c903ff31e3
  1. 7
      yudao-server/src/main/resources/application-prod.yaml
  2. 2
      zsw-farm/zsw-farm-impl/src/main/java/cn/iocoder/yudao/module/farm/service/area/AreaServiceImpl.java

7
yudao-server/src/main/resources/application-prod.yaml

@ -237,9 +237,10 @@ dubbo:
address: 127.0.0.1:8848
protocol: nacos
username: nacos
password: nacos
register: false
namespce: 5ef0de35-92fd-4577-ab23-54e5e5cb2a54
password: zsw2020@
# register: false
parameters:
namespace: 585347c3-1a4f-4cdf-a743-05d327ce8077
consumer:
check: false
application:

2
zsw-farm/zsw-farm-impl/src/main/java/cn/iocoder/yudao/module/farm/service/area/AreaServiceImpl.java

@ -196,7 +196,7 @@ public class AreaServiceImpl implements AreaService {
}
public List<AreaProjectDTO> miniAreaProjectCount(){
List<AreaDO> allList = areaMapper.selectList();
List<AreaDO> allList = areaMapper.selectList(Wrappers.<AreaDO>lambdaQuery().eq(AreaDO::getPretendDelete, false));
List<AreaProjectDTO> areaProjectList = new ArrayList<>();
CpUserDO user = cpUserMapper.selectOne(CpUserDO::getUserId, getLoginUser().getUsername());

Loading…
Cancel
Save