|
@@ -3,9 +3,13 @@ package com.zhongzheng.controller.goods;
|
|
|
import java.util.List;
|
|
|
import java.util.Arrays;
|
|
|
|
|
|
+import com.zhongzheng.modules.bank.bo.ExamQuestionQueryBo;
|
|
|
+import com.zhongzheng.modules.bank.vo.ExamQuestionVo;
|
|
|
import com.zhongzheng.modules.goods.bo.*;
|
|
|
import com.zhongzheng.modules.goods.domain.Goods;
|
|
|
+import com.zhongzheng.modules.goods.service.IGoodsAttachedService;
|
|
|
import com.zhongzheng.modules.goods.service.IGoodsService;
|
|
|
+import com.zhongzheng.modules.goods.vo.GoodsAttachedVo;
|
|
|
import com.zhongzheng.modules.goods.vo.GoodsVo;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
@@ -41,6 +45,8 @@ public class GoodsController extends BaseController {
|
|
|
|
|
|
private final IGoodsService iGoodsService;
|
|
|
|
|
|
+ private final IGoodsAttachedService iGoodsAttachedService;
|
|
|
+
|
|
|
/**
|
|
|
* 查询商品列表
|
|
|
*/
|
|
@@ -56,15 +62,7 @@ public class GoodsController extends BaseController {
|
|
|
/**
|
|
|
* 导出商品列表
|
|
|
*/
|
|
|
- /*@ApiOperation("导出商品列表")
|
|
|
- @PreAuthorize("@ss.hasPermi('system:goods:export')")
|
|
|
- @Log(title = "商品", businessType = BusinessType.EXPORT)
|
|
|
- @GetMapping("/export")
|
|
|
- public AjaxResult<GoodsVo> export(GoodsQueryBo bo) {
|
|
|
- List<GoodsVo> list = iGoodsService.queryList(bo);
|
|
|
- ExcelUtil<GoodsVo> util = new ExcelUtil<GoodsVo>(GoodsVo.class);
|
|
|
- return util.exportExcel(list, "商品");
|
|
|
- }*/
|
|
|
+ /*selectList*/
|
|
|
|
|
|
/**
|
|
|
* 获取商品详细信息
|
|
@@ -131,4 +129,14 @@ public class GoodsController extends BaseController {
|
|
|
return toAjax(iGoodsService.updateBankByEditBo(bo) ? 1 : 0);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 查询题目业务层次关系列表
|
|
|
+ */
|
|
|
+ @ApiOperation("查询商品题库列表")
|
|
|
+ @PreAuthorize("@ss.hasPermi('system:business:list')")
|
|
|
+ @GetMapping("/bank/list")
|
|
|
+ public AjaxResult<List<GoodsAttachedVo>> bankList(GoodsAttachedQueryBo bo) {
|
|
|
+ List<GoodsAttachedVo> list = iGoodsAttachedService.selectList(bo);
|
|
|
+ return AjaxResult.success(list);
|
|
|
+ }
|
|
|
}
|