@Override
public void addRoleResources(Resources[] resources, Long roleId) {
Map<String, Object> params = new HashMap<>();
params.put("roleId", roleId);
this.dao.delete("role.deleteRoleResources", params);
if (resources != null && resources.length > 0) {
params.put("resources", resources);
dao.save("role.bathSaveRoleResources", params);
}
}