|
@@ -9,7 +9,11 @@ import com.ym.mec.biz.dal.entity.StudentRepair;
|
|
|
import com.ym.mec.biz.dal.enums.DealStatusEnum;
|
|
|
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.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.common.controller.BaseController;
|
|
@@ -38,6 +42,10 @@ public class RepairController extends BaseController {
|
|
|
private StudentRepairService studentRepairService;
|
|
|
@Autowired
|
|
|
private StudentPaymentOrderService studentPaymentOrderService;
|
|
|
+ @Autowired
|
|
|
+ private GoodsService goodsService;
|
|
|
+ @Autowired
|
|
|
+ private GoodsCategoryService goodsCategoryService;
|
|
|
|
|
|
@ApiOperation("添加商品销售订单")
|
|
|
@PostMapping(value = "/addGoodsSellOrder")
|
|
@@ -108,4 +116,16 @@ public class RepairController extends BaseController {
|
|
|
}
|
|
|
return succeed(studentRepairService.getStudentRepairer(sysUser.getId(),sysUser.getOrganId()));
|
|
|
}
|
|
|
+
|
|
|
+ @ApiOperation(value = "分页查询商品(教材、辅件)列表")
|
|
|
+ @GetMapping("/queryGoodsPage")
|
|
|
+ public Object queryPage(GoodsQueryInfo queryInfo){
|
|
|
+ return succeed(goodsService.queryPage(queryInfo));
|
|
|
+ }
|
|
|
+
|
|
|
+ @ApiOperation(value = "分页查询商品分类列表")
|
|
|
+ @GetMapping("/queryGoodsCategoryPage")
|
|
|
+ public Object queryGoodsCategoryPage(GoodsCategoryQueryInfo queryInfo) {
|
|
|
+ return succeed(goodsCategoryService.queryPage(queryInfo));
|
|
|
+ }
|
|
|
}
|