|  | @@ -11,14 +11,13 @@ import com.ym.mec.biz.dal.enums.GroupType;
 | 
	
		
			
				|  |  |  import com.ym.mec.biz.dal.enums.OrderTypeEnum;
 | 
	
		
			
				|  |  |  import com.ym.mec.biz.dal.page.GoodsCategoryQueryInfo;
 | 
	
		
			
				|  |  |  import com.ym.mec.biz.dal.page.GoodsQueryInfo;
 | 
	
		
			
				|  |  | +import com.ym.mec.biz.dal.page.GoodsSellQueryInfo;
 | 
	
		
			
				|  |  |  import com.ym.mec.biz.dal.page.RepairStudentQueryInfo;
 | 
	
		
			
				|  |  | -import com.ym.mec.biz.service.GoodsCategoryService;
 | 
	
		
			
				|  |  | -import com.ym.mec.biz.service.GoodsService;
 | 
	
		
			
				|  |  | -import com.ym.mec.biz.service.StudentPaymentOrderService;
 | 
	
		
			
				|  |  | -import com.ym.mec.biz.service.StudentRepairService;
 | 
	
		
			
				|  |  | +import com.ym.mec.biz.service.*;
 | 
	
		
			
				|  |  |  import com.ym.mec.common.controller.BaseController;
 | 
	
		
			
				|  |  |  import com.ym.mec.common.entity.HttpResponseResult;
 | 
	
		
			
				|  |  |  import com.ym.mec.common.exception.BizException;
 | 
	
		
			
				|  |  | +import com.ym.mec.common.page.QueryInfo;
 | 
	
		
			
				|  |  |  import io.swagger.annotations.Api;
 | 
	
		
			
				|  |  |  import io.swagger.annotations.ApiOperation;
 | 
	
		
			
				|  |  |  import org.springframework.beans.factory.annotation.Autowired;
 | 
	
	
		
			
				|  | @@ -43,6 +42,8 @@ public class RepairController extends BaseController {
 | 
	
		
			
				|  |  |      private GoodsService goodsService;
 | 
	
		
			
				|  |  |      @Autowired
 | 
	
		
			
				|  |  |      private GoodsCategoryService goodsCategoryService;
 | 
	
		
			
				|  |  | +    @Autowired
 | 
	
		
			
				|  |  | +    private StudentGoodsSellService studentGoodsSellService;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      @ApiOperation("添加商品销售订单")
 | 
	
		
			
				|  |  |      @PostMapping(value = "/addGoodsSellOrder")
 | 
	
	
		
			
				|  | @@ -126,4 +127,15 @@ public class RepairController extends BaseController {
 | 
	
		
			
				|  |  |      public Object queryGoodsCategoryPage(GoodsCategoryQueryInfo queryInfo) {
 | 
	
		
			
				|  |  |          return succeed(goodsCategoryService.queryPage(queryInfo));
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    @ApiOperation(value = "分页查询学员商品订单")
 | 
	
		
			
				|  |  | +    @GetMapping("/queryStudentGoodsOrders")
 | 
	
		
			
				|  |  | +    public Object queryStudentGoodsOrders(GoodsSellQueryInfo queryInfo) {
 | 
	
		
			
				|  |  | +        SysUser sysUser = sysUserFeignService.queryUserInfo();
 | 
	
		
			
				|  |  | +        if (sysUser == null) {
 | 
	
		
			
				|  |  | +            return failed(HttpStatus.FORBIDDEN, "请登录");
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +        queryInfo.setStudentId(sysUser.getId());
 | 
	
		
			
				|  |  | +        return succeed(studentGoodsSellService.queryStudentGoodsOrders(queryInfo));
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  |  }
 |