This commit is contained in:
parent
f0b1668a71
commit
fb297128dc
|
|
@ -14,6 +14,7 @@ import com.bonus.material.basic.domain.report.*;
|
||||||
import com.bonus.material.basic.service.BmReportService;
|
import com.bonus.material.basic.service.BmReportService;
|
||||||
import com.bonus.material.common.utils.DocxUtil;
|
import com.bonus.material.common.utils.DocxUtil;
|
||||||
import com.bonus.material.common.utils.HttpFileUtil;
|
import com.bonus.material.common.utils.HttpFileUtil;
|
||||||
|
import com.bonus.material.ma.service.ITypeService;
|
||||||
import com.bonus.material.part.domain.PartTypeCheckInfo;
|
import com.bonus.material.part.domain.PartTypeCheckInfo;
|
||||||
import com.bonus.material.part.domain.PartTypeQueryDto;
|
import com.bonus.material.part.domain.PartTypeQueryDto;
|
||||||
import io.swagger.annotations.Api;
|
import io.swagger.annotations.Api;
|
||||||
|
|
@ -63,6 +64,9 @@ public class BmReportController extends BaseController {
|
||||||
@Resource
|
@Resource
|
||||||
private BmReportService bmReportService;
|
private BmReportService bmReportService;
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
private ITypeService iTypeService;
|
||||||
|
|
||||||
// 存储下载进度
|
// 存储下载进度
|
||||||
private static final Map<String, DownloadProgress> downloadProgressMap = new ConcurrentHashMap<>();
|
private static final Map<String, DownloadProgress> downloadProgressMap = new ConcurrentHashMap<>();
|
||||||
|
|
||||||
|
|
@ -75,6 +79,8 @@ public class BmReportController extends BaseController {
|
||||||
@GetMapping("/getPurChaseReportList")
|
@GetMapping("/getPurChaseReportList")
|
||||||
public AjaxResult getPurChaseReportList(PurChaseReportInfo bean) {
|
public AjaxResult getPurChaseReportList(PurChaseReportInfo bean) {
|
||||||
bean.setIsExport(1);
|
bean.setIsExport(1);
|
||||||
|
Long companyId = iTypeService.getUserDeptId();
|
||||||
|
bean.setCompanyId(companyId);
|
||||||
startPage();
|
startPage();
|
||||||
List<PurChaseReportInfo> pageList = bmReportService.getPurChaseReportList(bean);
|
List<PurChaseReportInfo> pageList = bmReportService.getPurChaseReportList(bean);
|
||||||
return AjaxResult.success(getDataTable(pageList));
|
return AjaxResult.success(getDataTable(pageList));
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,7 @@ package com.bonus.material.basic.domain.report;
|
||||||
import com.bonus.common.core.annotation.Excel;
|
import com.bonus.common.core.annotation.Excel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
import org.apache.poi.ss.usermodel.HorizontalAlignment;
|
||||||
|
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
|
|
||||||
|
|
@ -26,12 +27,12 @@ public class PurChaseReportDetails {
|
||||||
@Excel(name = "设备编码")
|
@Excel(name = "设备编码")
|
||||||
private String maCode;
|
private String maCode;
|
||||||
|
|
||||||
@ApiModelProperty(value = "采购价格含税")
|
|
||||||
@Excel(name = "采购价格(含税)")
|
|
||||||
private BigDecimal purchasePrice;
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "采购价格不含税")
|
@ApiModelProperty(value = "采购价格不含税")
|
||||||
@Excel(name = "采购价格(不含税)")
|
@Excel(name = "采购价格(不含税)", cellType = Excel.ColumnType.NUMERIC, align = HorizontalAlignment.RIGHT)
|
||||||
private BigDecimal purchasePriceNoTax;
|
private BigDecimal purchasePriceNoTax;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "采购价格含税")
|
||||||
|
@Excel(name = "采购价格(含税)", cellType = Excel.ColumnType.NUMERIC, align = HorizontalAlignment.RIGHT)
|
||||||
|
private BigDecimal purchasePrice;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -58,14 +58,14 @@ public class PurChaseReportInfo {
|
||||||
@Excel(name = "待入库数量", cellType = Excel.ColumnType.NUMERIC, align = HorizontalAlignment.RIGHT)
|
@Excel(name = "待入库数量", cellType = Excel.ColumnType.NUMERIC, align = HorizontalAlignment.RIGHT)
|
||||||
private BigDecimal pendingInputNum;
|
private BigDecimal pendingInputNum;
|
||||||
|
|
||||||
@ApiModelProperty(value = "采购价格含税")
|
|
||||||
@Excel(name = "采购价格(含税)", cellType = Excel.ColumnType.NUMERIC, align = HorizontalAlignment.RIGHT)
|
|
||||||
private BigDecimal purchasePrice;
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "采购价格不含税")
|
@ApiModelProperty(value = "采购价格不含税")
|
||||||
@Excel(name = "采购价格(不含税)", cellType = Excel.ColumnType.NUMERIC, align = HorizontalAlignment.RIGHT)
|
@Excel(name = "采购价格(不含税)", cellType = Excel.ColumnType.NUMERIC, align = HorizontalAlignment.RIGHT)
|
||||||
private BigDecimal purchasePriceNoTax;
|
private BigDecimal purchasePriceNoTax;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "采购价格含税")
|
||||||
|
@Excel(name = "采购价格(含税)", cellType = Excel.ColumnType.NUMERIC, align = HorizontalAlignment.RIGHT)
|
||||||
|
private BigDecimal purchasePrice;
|
||||||
|
|
||||||
@ApiModelProperty(value = "物资厂家")
|
@ApiModelProperty(value = "物资厂家")
|
||||||
@Excel(name = "物资厂家", width = 30)
|
@Excel(name = "物资厂家", width = 30)
|
||||||
private String supplierName;
|
private String supplierName;
|
||||||
|
|
|
||||||
|
|
@ -34,8 +34,6 @@ public class BmReportServiceImpl implements BmReportService {
|
||||||
@Resource
|
@Resource
|
||||||
private BmFileInfoMapper fileInfoMapper;
|
private BmFileInfoMapper fileInfoMapper;
|
||||||
|
|
||||||
@Resource
|
|
||||||
private ITypeService iTypeService;
|
|
||||||
/**
|
/**
|
||||||
* 新购入库报表查询
|
* 新购入库报表查询
|
||||||
* @param bean
|
* @param bean
|
||||||
|
|
@ -44,9 +42,6 @@ public class BmReportServiceImpl implements BmReportService {
|
||||||
@Override
|
@Override
|
||||||
public List<PurChaseReportInfo> getPurChaseReportList(PurChaseReportInfo bean) {
|
public List<PurChaseReportInfo> getPurChaseReportList(PurChaseReportInfo bean) {
|
||||||
bean.setUserId(SecurityUtils.getLoginUser().getUserid());
|
bean.setUserId(SecurityUtils.getLoginUser().getUserid());
|
||||||
// jsk
|
|
||||||
Long companyId=iTypeService.getUserDeptId();
|
|
||||||
bean.setCompanyId(companyId);
|
|
||||||
BigDecimal totalPurchaseNum = BigDecimal.ZERO.setScale(3, RoundingMode.HALF_UP);
|
BigDecimal totalPurchaseNum = BigDecimal.ZERO.setScale(3, RoundingMode.HALF_UP);
|
||||||
BigDecimal totalPassNum = BigDecimal.ZERO.setScale(3, RoundingMode.HALF_UP);
|
BigDecimal totalPassNum = BigDecimal.ZERO.setScale(3, RoundingMode.HALF_UP);
|
||||||
BigDecimal totalInputNum = BigDecimal.ZERO.setScale(3, RoundingMode.HALF_UP);
|
BigDecimal totalInputNum = BigDecimal.ZERO.setScale(3, RoundingMode.HALF_UP);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue