| | |
| | | public static final Long ALL_WORKSTATION_ID = 1L; |
| | | public static final Long DEFAULT_WORKSTATION_ID = 101L; |
| | | public static final Long DEFAULT_ALL_GROUP_ID = 1L; |
| | | /** |
| | | * 默认组id |
| | | */ |
| | | public static final Long DEFAULT_GROUP_ID = 101L; |
| | | public static final Integer WORK_STATION_TAG = 2; |
| | | } |
| | |
| | | |
| | | WorkstationVO getDetail(Long workstationId); |
| | | |
| | | /** |
| | | * 删除工位组 |
| | | * @param groupId 组id |
| | | * @return 是否删除成功 |
| | | */ |
| | | Boolean deleteGroup(Long groupId); |
| | | |
| | | BladeFile importWorkstation(List<WorkstationImport> data); |
| | |
| | | @Override |
| | | @Transactional(rollbackFor = {Exception.class}) |
| | | public Boolean deleteGroup(Long groupId) { |
| | | commonGroupOfItemService.lambdaUpdate().set(CommonGroupOfItem::getGroupId,CommonGroupConstant.DEFAULT_GROUP_ID) |
| | | .eq(CommonGroupOfItem::getGroupId, groupId).update(); |
| | | |
| | | if (this.commonGroupOfItemService.count(Lambda.eq(CommonGroupOfItem::getGroupId, groupId)) > 0) { |
| | | throw new ServiceException(MessageUtils.message("cps.common.group.production.line.delete.fail", new Object[0])); |
| | | } |