| | |
| | | boolean b = super.updateById(partsInfo); |
| | | //同步修改结构树 |
| | | ProductMix productMix = productMixService.getById(Long.parseLong(id)); |
| | | productMix.setName(partsInfo.getPartsName()); |
| | | productMix.setCode(partsInfo.getPartsCode()); |
| | | productMix.setTreeName(partsInfo.getPartsName()); |
| | | productMix.setTreeCode(partsInfo.getPartsCode()); |
| | | productMixService.updateById(productMix); |
| | | if(!b) |
| | | return false; |
| | |
| | | } |
| | | return docInfos; |
| | | } |
| | | |
| | | @Override |
| | | public boolean assignPermission(Object entity, Collection<SysUser> userList, boolean isAdd){ |
| | | if (isAdd) { |
| | | return assignAddUser((PartsInfo) entity, userList); |
| | | } else { |
| | | return assignRemoveUser((PartsInfo) entity, userList); |
| | | } |
| | | } |
| | | @Override |
| | | public boolean assignDepartPermission(Object entity, Collection<MdcProduction> departments, boolean isAdd) { |
| | | if (isAdd) { |
| | | return assignAddDepart((PartsInfo) entity, departments); |
| | | } else { |
| | | return assignRemoveDepart((PartsInfo) entity, departments); |
| | | } |
| | | } |
| | | } |