|
@@ -3,15 +3,14 @@ package com.ydtech.modules.inv.controller;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.ydtech.constants.enums.inv.InvPayMethodEnum;
|
|
import com.ydtech.constants.enums.inv.InvPayMethodEnum;
|
|
|
import com.ydtech.core.page.HttpResult;
|
|
import com.ydtech.core.page.HttpResult;
|
|
|
-import com.ydtech.core.page.PageResult;
|
|
|
|
|
import com.ydtech.exception.SystemException;
|
|
import com.ydtech.exception.SystemException;
|
|
|
import com.ydtech.modules.base.controller.BaseController;
|
|
import com.ydtech.modules.base.controller.BaseController;
|
|
|
import com.ydtech.modules.inv.dao.InvAccountExcelMapper;
|
|
import com.ydtech.modules.inv.dao.InvAccountExcelMapper;
|
|
|
|
|
+import com.ydtech.modules.inv.dao.InvAccountOperateMapper;
|
|
|
import com.ydtech.modules.inv.model.InvAccountExcel;
|
|
import com.ydtech.modules.inv.model.InvAccountExcel;
|
|
|
|
|
+import com.ydtech.modules.inv.model.InvAccountOperate;
|
|
|
import com.ydtech.modules.inv.model.excel.InvDisburseExcel;
|
|
import com.ydtech.modules.inv.model.excel.InvDisburseExcel;
|
|
|
-import com.ydtech.modules.inv.model.po.InvSettlementSource;
|
|
|
|
|
-import com.ydtech.modules.inv.model.vo.InvAccountExcelVo;
|
|
|
|
|
-import com.ydtech.modules.inv.model.vo.InvSettlementSourceQueryVo;
|
|
|
|
|
|
|
+import com.ydtech.modules.inv.model.vo.InvAccountOperateVo;
|
|
|
import com.ydtech.modules.inv.service.InvAccountExcelService;
|
|
import com.ydtech.modules.inv.service.InvAccountExcelService;
|
|
|
import com.ydtech.modules.inv.utils.EasyExcelUtils;
|
|
import com.ydtech.modules.inv.utils.EasyExcelUtils;
|
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.Api;
|
|
@@ -44,6 +43,9 @@ public class invAccountExcelController {
|
|
|
@Resource
|
|
@Resource
|
|
|
private InvAccountExcelMapper invAccountExcelMapper;
|
|
private InvAccountExcelMapper invAccountExcelMapper;
|
|
|
|
|
|
|
|
|
|
+ @Resource
|
|
|
|
|
+ private InvAccountOperateMapper invAccountOperateMapper;
|
|
|
|
|
+
|
|
|
@Value("${upload.file.path}")
|
|
@Value("${upload.file.path}")
|
|
|
private String uploadPath;
|
|
private String uploadPath;
|
|
|
|
|
|
|
@@ -59,7 +61,7 @@ public class invAccountExcelController {
|
|
|
@PostMapping("deriveReport")
|
|
@PostMapping("deriveReport")
|
|
|
@ApiOperation("导出支出报表")
|
|
@ApiOperation("导出支出报表")
|
|
|
public HttpResult deriveReport(@RequestBody List<String> idList) throws IOException {
|
|
public HttpResult deriveReport(@RequestBody List<String> idList) throws IOException {
|
|
|
- List<InvAccountExcel> insAccountExcels = invAccountExcelMapper.selectBatchIds(idList);
|
|
|
|
|
|
|
+ List<InvAccountOperate> insAccountExcels = invAccountOperateMapper.selectBatchIds(idList);
|
|
|
String uploadPath = this.uploadPath + "/excel/";
|
|
String uploadPath = this.uploadPath + "/excel/";
|
|
|
Path path = Paths.get(uploadPath);
|
|
Path path = Paths.get(uploadPath);
|
|
|
if (!Files.exists(path)) {
|
|
if (!Files.exists(path)) {
|
|
@@ -151,8 +153,8 @@ public class invAccountExcelController {
|
|
|
|
|
|
|
|
@ApiOperation("支出报表查看")
|
|
@ApiOperation("支出报表查看")
|
|
|
@PostMapping("getDisburse")
|
|
@PostMapping("getDisburse")
|
|
|
- public HttpResult getDisburse(@RequestBody InvAccountExcelVo invAccountExcelVo) {
|
|
|
|
|
- return invAccountExcelService.selectDisburse(invAccountExcelVo);
|
|
|
|
|
|
|
+ public HttpResult getDisburse(@RequestBody InvAccountOperateVo invAccountOperateVo) {
|
|
|
|
|
+ return invAccountExcelService.selectDisburse(invAccountOperateVo);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|