|  | @@ -102,9 +102,6 @@ public class StudentRepairServiceImpl extends BaseServiceImpl<Integer, StudentRe
 | 
	
		
			
				|  |  |      @Transactional(rollbackFor = Exception.class)
 | 
	
		
			
				|  |  |      public Map addGoodsSellOrder(GoodsSellDto goodsSellDto) throws Exception {
 | 
	
		
			
				|  |  |          SysUser sysUser = sysUserFeignService.queryUserInfo();
 | 
	
		
			
				|  |  | -        if (sysUser == null) {
 | 
	
		
			
				|  |  | -            throw new BizException("请登录");
 | 
	
		
			
				|  |  | -        }
 | 
	
		
			
				|  |  |          Integer studentId = sysUser.getId();
 | 
	
		
			
				|  |  |          String goodsId = goodsSellDto.getGoodsId();
 | 
	
		
			
				|  |  |          if(StringUtils.isEmpty(goodsId)){
 | 
	
	
		
			
				|  | @@ -124,7 +121,6 @@ public class StudentRepairServiceImpl extends BaseServiceImpl<Integer, StudentRe
 | 
	
		
			
				|  |  |              amount.add(map.get(id));
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |          List<Goods> goods = goodsService.findGoodsByIds(goodsId);
 | 
	
		
			
				|  |  | -//        BigDecimal amount = goods.stream().map(e -> e.getGroupPurchasePrice()).reduce(BigDecimal.ZERO, BigDecimal::add);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          StudentPaymentOrder studentPaymentOrder = new StudentPaymentOrder();
 | 
	
		
			
				|  |  |          studentPaymentOrder.setUserId(studentId);
 | 
	
	
		
			
				|  | @@ -138,7 +134,6 @@ public class StudentRepairServiceImpl extends BaseServiceImpl<Integer, StudentRe
 | 
	
		
			
				|  |  |          studentPaymentOrder.setRoutingOrganId(student.getOrganId());
 | 
	
		
			
				|  |  |          studentPaymentOrderService.insert(studentPaymentOrder);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -//        Map<GoodsType, List<Goods>> collect = goods.stream().collect(Collectors.groupingBy(Goods::getType));
 | 
	
		
			
				|  |  |          Map<Integer, List<Goods>> collect = goods.stream().collect(Collectors.groupingBy(Goods::getId));
 | 
	
		
			
				|  |  |          List<StudentPaymentOrderDetail> studentPaymentOrderDetailList = new ArrayList<>();
 | 
	
		
			
				|  |  |          for (String id : goodsIds) {
 |