| | |
| | | if(b){ |
| | | throw new ServiceException("设置存在重复用餐人数"); |
| | | } |
| | | this.remove(Wrappers.lambdaQuery(TFoundationPerson.class) |
| | | .eq(TFoundationPerson::getMealType,dto.getMealType())); |
| | | for (TFoundationPersonDTO tFoundationPersonDTO : foundationPersonDTOS) { |
| | | List<TFoundationConfig> foundationConfigs = tFoundationPersonDTO.getFoundationConfigs(); |
| | | long count = foundationConfigs.stream().map(TFoundationConfig::getTypeId).distinct().count(); |
| | |
| | | throw new ServiceException("菜品重复设置"); |
| | | } |
| | | // 添加人数 |
| | | this.updateById(tFoundationPersonDTO); |
| | | this.saveOrUpdate(tFoundationPersonDTO); |
| | | // 删除菜品 |
| | | foundationConfigService.remove(Wrappers.lambdaQuery(TFoundationConfig.class) |
| | | .eq(TFoundationConfig::getPersonId,tFoundationPersonDTO.getId())); |
| | |
| | | } |
| | | return list; |
| | | } |
| | | |
| | | @Override |
| | | public List<TFoundationPersonVO> getPersonList() { |
| | | return this.baseMapper.getSetList(); |
| | | } |
| | | } |