|
@@ -3,6 +3,7 @@ package com.gree.mall.manager.controller.material.manage;
|
|
import cn.hutool.core.lang.TypeReference;
|
|
import cn.hutool.core.lang.TypeReference;
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
import com.gree.mall.manager.annotation.ZfireList;
|
|
import com.gree.mall.manager.annotation.ZfireList;
|
|
|
|
+import com.gree.mall.manager.bean.material.manage.WebsitPartsCreditItemVO;
|
|
import com.gree.mall.manager.bean.material.manage.WebsitPartsCreditVO;
|
|
import com.gree.mall.manager.bean.material.manage.WebsitPartsCreditVO;
|
|
import com.gree.mall.manager.helper.ResponseHelper;
|
|
import com.gree.mall.manager.helper.ResponseHelper;
|
|
import com.gree.mall.manager.logic.material.manage.WebsitPartsCreditLogic;
|
|
import com.gree.mall.manager.logic.material.manage.WebsitPartsCreditLogic;
|
|
@@ -32,22 +33,45 @@ public class WebsitPartsCreditController {
|
|
@ZfireList
|
|
@ZfireList
|
|
@PostMapping("/gather/list")
|
|
@PostMapping("/gather/list")
|
|
@ApiOperation(value = "网点汇总记账-列表")
|
|
@ApiOperation(value = "网点汇总记账-列表")
|
|
- public ResponseHelper<IPage<WebsitPartsCreditVO>> page(
|
|
|
|
|
|
+ public ResponseHelper<IPage<WebsitPartsCreditVO>> gatherPage(
|
|
@RequestBody ZfireParamBean zfireParamBean
|
|
@RequestBody ZfireParamBean zfireParamBean
|
|
) {
|
|
) {
|
|
- IPage<WebsitPartsCreditVO> page = websitPartsCreditLogic.page(zfireParamBean);
|
|
|
|
|
|
+ IPage<WebsitPartsCreditVO> page = websitPartsCreditLogic.gatherPage(zfireParamBean);
|
|
return ResponseHelper.success(page, new TypeReference<WebsitPartsCreditVO>() {});
|
|
return ResponseHelper.success(page, new TypeReference<WebsitPartsCreditVO>() {});
|
|
}
|
|
}
|
|
|
|
|
|
@PostMapping("/gather/list/export")
|
|
@PostMapping("/gather/list/export")
|
|
@ApiOperation("网点汇总记账-列表导出")
|
|
@ApiOperation("网点汇总记账-列表导出")
|
|
|
|
+ public void gatherListExport(
|
|
|
|
+ @RequestBody ZfireParamBean zfireParamBean,
|
|
|
|
+ HttpServletRequest request,
|
|
|
|
+ HttpServletResponse response
|
|
|
|
+ ) throws Exception {
|
|
|
|
+ //2.查询要导出的内容
|
|
|
|
+ IPage<WebsitPartsCreditVO> baseVOIPage = websitPartsCreditLogic.gatherPage(zfireParamBean);
|
|
|
|
+ //3.导出
|
|
|
|
+ FieldUtils.exportData(baseVOIPage.getRecords(), zfireParamBean.getExportFields(), request, response);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @ZfireList
|
|
|
|
+ @PostMapping("/list")
|
|
|
|
+ @ApiOperation(value = "网点记账-列表")
|
|
|
|
+ public ResponseHelper<IPage<WebsitPartsCreditItemVO>> page(
|
|
|
|
+ @RequestBody ZfireParamBean zfireParamBean
|
|
|
|
+ ) {
|
|
|
|
+ IPage<WebsitPartsCreditItemVO> page = websitPartsCreditLogic.page(zfireParamBean);
|
|
|
|
+ return ResponseHelper.success(page, new TypeReference<WebsitPartsCreditItemVO>() {});
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @PostMapping("/gather/list/export")
|
|
|
|
+ @ApiOperation("网点记账-列表导出")
|
|
public void listExport(
|
|
public void listExport(
|
|
@RequestBody ZfireParamBean zfireParamBean,
|
|
@RequestBody ZfireParamBean zfireParamBean,
|
|
HttpServletRequest request,
|
|
HttpServletRequest request,
|
|
HttpServletResponse response
|
|
HttpServletResponse response
|
|
) throws Exception {
|
|
) throws Exception {
|
|
//2.查询要导出的内容
|
|
//2.查询要导出的内容
|
|
- IPage<WebsitPartsCreditVO> baseVOIPage = websitPartsCreditLogic.page(zfireParamBean);
|
|
|
|
|
|
+ IPage<WebsitPartsCreditItemVO> baseVOIPage = websitPartsCreditLogic.page(zfireParamBean);
|
|
//3.导出
|
|
//3.导出
|
|
FieldUtils.exportData(baseVOIPage.getRecords(), zfireParamBean.getExportFields(), request, response);
|
|
FieldUtils.exportData(baseVOIPage.getRecords(), zfireParamBean.getExportFields(), request, response);
|
|
}
|
|
}
|