Browse Source

代码优化

test
smallchill 6 years ago
parent
commit
ac11a6bed8
  1. 2
      blade-service/blade-system/src/main/java/org/springblade/system/service/impl/RoleServiceImpl.java
  2. 4
      doc/nacos/blade.yaml
  3. 3
      script/docker/deploy.sh

2
blade-service/blade-system/src/main/java/org/springblade/system/service/impl/RoleServiceImpl.java

@ -32,6 +32,7 @@ import org.springblade.system.service.IRoleMenuService;
import org.springblade.system.service.IRoleService;
import org.springblade.system.vo.RoleVO;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.validation.annotation.Validated;
import javax.validation.constraints.NotEmpty;
@ -66,6 +67,7 @@ public class RoleServiceImpl extends ServiceImpl<RoleMapper, Role> implements IR
}
@Override
@Transactional(rollbackFor = Exception.class)
public boolean grant(@NotEmpty List<Long> roleIds, @NotEmpty List<Long> menuIds) {
// 删除角色配置的菜单集合
roleMenuService.remove(Wrappers.<RoleMenu>update().lambda().in(RoleMenu::getRoleId, roleIds));

4
doc/nacos/blade.yaml

@ -68,6 +68,10 @@ management:
#blade配置
blade:
xss:
url:
exclude-patterns:
- /weixin
secure:
url:
exclude-patterns:

3
script/docker/deploy.sh

@ -14,6 +14,7 @@ port(){
firewall-cmd --add-port=3306/tcp --permanent
firewall-cmd --add-port=3379/tcp --permanent
firewall-cmd --add-port=7002/tcp --permanent
firewall-cmd --add-port=9999/tcp --permanent
service firewalld restart
}
@ -41,7 +42,7 @@ base(){
#启动程序模块
modules(){
docker-compose up -d blade-gateway1 blade-gateway2 blade-auth1 blade-auth2 blade-user blade-desk blade-system blade-log
docker-compose up -d blade-gateway1 blade-gateway2 blade-auth1 blade-auth2 blade-user blade-desk blade-system blade-log blade-flow blade-flow-design
}
#启动监控模块

Loading…
Cancel
Save