| | |
| | | } |
| | | //添加结构树 |
| | | ProductMix productMix = new ProductMix(Long.parseLong(componentInfo.getComponentId()),Long.parseLong(productInfo.getProductId()) |
| | | ,componentInfo.getComponentName(),componentInfo.getComponentCode(),"2"); |
| | | ,componentInfo.getComponentName(),componentInfo.getComponentCode(),2); |
| | | productMixService.save(productMix); |
| | | //添加权限 |
| | | PermissionStreamNew stream = new PermissionStreamNew(); |
| | |
| | | componentInfo.setRankLevel(null); |
| | | componentInfo.setProductId(null); |
| | | boolean b = super.updateById(componentInfo); |
| | | //同步修改结构树 |
| | | ProductMix productMix = productMixService.getById(Long.parseLong(id)); |
| | | productMix.setName(componentInfo.getComponentName()); |
| | | productMix.setCode(componentInfo.getComponentCode()); |
| | | productMixService.updateById(productMix); |
| | | if(!b) |
| | | return false; |
| | | ComponentPermission permission = componentPermissionService.getByComponentIdAndUserId(id, userId); |