|
|
@@ -3,20 +3,19 @@ package com.zzsmart.qomo.kn.cost.manage.controller;
|
|
3
|
3
|
|
|
4
|
4
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
5
|
5
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
6
|
+import com.zzsmart.qomo.kn.cost.manage.entity.CostStandardDetail;
|
|
|
7
|
+import com.zzsmart.qomo.kn.cost.manage.entity.CostStandardVersion;
|
|
6
|
8
|
import com.zzsmart.qomo.kn.cost.manage.service.CostStandardDetailService;
|
|
7
|
|
-import com.zzsmart.qomo.kn.cost.manage.service.ICostStandardService;
|
|
|
9
|
+import com.zzsmart.qomo.kn.cost.manage.service.ICostStandardVersionService;
|
|
8
|
10
|
import com.zzsmart.qomo.kn.cost.manage.vo.CostStandardDetailVO;
|
|
9
|
|
-import com.zzsmart.qomo.kn.cost.manage.vo.CostStandardVO;
|
|
10
|
11
|
import io.swagger.annotations.Api;
|
|
11
|
12
|
import io.swagger.annotations.ApiOperation;
|
|
12
|
13
|
import lombok.extern.slf4j.Slf4j;
|
|
13
|
14
|
import org.jeecg.common.api.vo.Result;
|
|
|
15
|
+import org.jeecg.common.system.base.controller.JeecgController;
|
|
14
|
16
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
15
|
|
-import org.springframework.web.bind.annotation.GetMapping;
|
|
16
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
17
|
|
-
|
|
18
|
|
-import org.springframework.web.bind.annotation.RequestParam;
|
|
19
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
17
|
+import org.springframework.web.bind.annotation.*;
|
|
|
18
|
+import org.springframework.web.servlet.ModelAndView;
|
|
20
|
19
|
|
|
21
|
20
|
import javax.servlet.http.HttpServletRequest;
|
|
22
|
21
|
|
|
|
@@ -28,11 +27,11 @@ import javax.servlet.http.HttpServletRequest;
|
|
28
|
27
|
* @author cost_purchase_price
|
|
29
|
28
|
* @since 2024-06-19
|
|
30
|
29
|
*/
|
|
31
|
|
-@Api(tags="标准成本单行查询")
|
|
|
30
|
+@Api(tags = "标准成本单行查询")
|
|
32
|
31
|
@RestController
|
|
33
|
32
|
@RequestMapping("//costStandardDetail")
|
|
34
|
33
|
@Slf4j
|
|
35
|
|
-public class CostStandardDetailController {
|
|
|
34
|
+public class CostStandardDetailController extends JeecgController<CostStandardDetail, CostStandardDetailService> {
|
|
36
|
35
|
@Autowired
|
|
37
|
36
|
private CostStandardDetailService costStandardDetailService;
|
|
38
|
37
|
|
|
|
@@ -45,16 +44,25 @@ public class CostStandardDetailController {
|
|
45
|
44
|
* @param req
|
|
46
|
45
|
* @return
|
|
47
|
46
|
*/
|
|
48
|
|
- //@AutoLog(value = "cost_standard-分页列表查询")
|
|
49
|
|
- @ApiOperation(value="cost_standard_detail-分页列表查询", notes="cost_standard_detail-分页列表查询")
|
|
|
47
|
+ //@AutoLog(value = "标准成本单行列表查询")
|
|
|
48
|
+ @ApiOperation(value = "标准成本单行列表查询", notes = "标准成本单行列表查询")
|
|
50
|
49
|
@GetMapping(value = "/list")
|
|
51
|
|
- public Result<IPage<CostStandardDetailVO>> queryPageList(CostStandardDetailVO costStandard,
|
|
52
|
|
- @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
|
53
|
|
- @RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
|
54
|
|
- HttpServletRequest req) {
|
|
|
50
|
+ public Result<IPage<CostStandardDetailVO>> queryPageList(CostStandardDetailVO costStandard, @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo, @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize, HttpServletRequest req) {
|
|
55
|
51
|
|
|
56
|
52
|
Page<CostStandardDetailVO> page = new Page<CostStandardDetailVO>(pageNo, pageSize);
|
|
57
|
53
|
IPage<CostStandardDetailVO> pageList = costStandardDetailService.pageList(page, costStandard);
|
|
58
|
54
|
return Result.OK(pageList);
|
|
59
|
55
|
}
|
|
|
56
|
+
|
|
|
57
|
+ /**
|
|
|
58
|
+ * 导出excel
|
|
|
59
|
+ *
|
|
|
60
|
+ * @param request
|
|
|
61
|
+ * @param costStandardDetail
|
|
|
62
|
+ */
|
|
|
63
|
+ @RequestMapping(value = "/exportXls", method = RequestMethod.GET)
|
|
|
64
|
+ @ApiOperation(value = "单行查询导出", notes = "单行查询导出")
|
|
|
65
|
+ public ModelAndView exportXls(HttpServletRequest request, CostStandardDetail costStandardDetail) {
|
|
|
66
|
+ return super.exportXls(request, costStandardDetail, CostStandardDetail.class, "单行查询");
|
|
|
67
|
+ }
|
|
60
|
68
|
}
|