| | |
| | | } |
| | | //添加结构树 |
| | | ProductMix productMix = new ProductMix(Long.parseLong(partsInfo.getPartsId()),Long.parseLong(partsInfo.getComponentId()) |
| | | ,partsInfo.getPartsName(),partsInfo.getPartsCode(),"3"); |
| | | ,partsInfo.getPartsName(),partsInfo.getPartsCode(),3); |
| | | productMixService.save(productMix); |
| | | //添加用户权限 |
| | | PermissionStreamNew stream = new PermissionStreamNew(); |
| | |
| | | partsInfo.setProductId(null); |
| | | partsInfo.setComponentId(null); |
| | | boolean b = super.updateById(partsInfo); |
| | | //同步修改结构树 |
| | | ProductMix productMix = productMixService.getById(Long.parseLong(id)); |
| | | productMix.setName(partsInfo.getPartsName()); |
| | | productMix.setCode(partsInfo.getPartsCode()); |
| | | productMixService.updateById(productMix); |
| | | if(!b) |
| | | return false; |
| | | PartsPermission permission = partsPermissionService.getByPartsIdAndUserId(id, userId); |