Browse Source

生成盘点报告接口开发完成

查看盘点报告接口开发完成
生成盘点报告PDF接口开发完成
master
God 9 months ago
parent
commit
8a69ff04d1
  1. 25
      yxt-wms-biz/src/main/java/com/yxt/wms/apiadmin/inventroy/WmsInventoryCheckbillRest.java
  2. 4
      yxt-wms-biz/src/main/java/com/yxt/wms/biz/inventory/wmsinventorycheckbill/WmsInventoryCheckbillMapper.java
  3. 2
      yxt-wms-biz/src/main/java/com/yxt/wms/biz/inventory/wmsinventorycheckbill/WmsInventoryCheckbillMapper.xml
  4. 108
      yxt-wms-biz/src/main/java/com/yxt/wms/biz/inventory/wmsinventorycheckbill/WmsInventoryCheckbillService.java
  5. 6
      yxt-wms-biz/src/main/java/com/yxt/wms/biz/inventory/wmsinventorycheckbill/WmsInventoryCheckbillVo.java
  6. 7
      yxt-wms-biz/src/main/java/com/yxt/wms/biz/inventory/wmsinventorycheckbilldetail/WmsInventoryCheckbillDetailMapper.java
  7. 61
      yxt-wms-biz/src/main/java/com/yxt/wms/biz/inventory/wmsinventorycheckbilldetail/WmsInventoryCheckbillDetailMapper.xml
  8. 21
      yxt-wms-biz/src/main/java/com/yxt/wms/biz/inventory/wmsinventorycheckbilldetail/WmsInventoryCheckbillDetailService.java
  9. 50
      yxt-wms-biz/src/main/java/com/yxt/wms/biz/inventory/wmsinventorycheckbillreport/WmsInventoryCheckbillReportDetailsVo.java
  10. 4
      yxt-wms-biz/src/main/java/com/yxt/wms/biz/inventory/wmsinventorycheckbillreport/WmsInventoryCheckbillReportMapper.java
  11. 4
      yxt-wms-biz/src/main/java/com/yxt/wms/biz/inventory/wmsinventorycheckbillreport/WmsInventoryCheckbillReportService.java
  12. 77
      yxt-wms-biz/src/main/java/com/yxt/wms/biz/inventory/wmsinventorycheckbillreport/WmsInventoryCheckbillReportSumVo.java
  13. 3733
      yxt-wms-biz/src/main/resources/ftl/pdbg.ftl
  14. 18
      yxt-wms-biz/src/main/resources/ftl/盘点报告.doc

25
yxt-wms-biz/src/main/java/com/yxt/wms/apiadmin/inventroy/WmsInventoryCheckbillRest.java

@ -30,6 +30,7 @@ import com.yxt.common.core.result.ResultBean;
import com.yxt.common.core.vo.PagerVo;
import com.yxt.wms.biz.inventory.wmsinventorycheckbill.*;
import com.yxt.wms.biz.inventory.wmsinventorycheckbilldetail.*;
import com.yxt.wms.biz.inventory.wmsinventorycheckbillreport.WmsInventoryCheckbillReportDetailsVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
@ -72,6 +73,30 @@ public class WmsInventoryCheckbillRest {
return rb.success();
}
@ApiOperation("生成盘点报告")
@PostMapping("/createReport")
public ResultBean createReport(@RequestParam("sid") String sid){
ResultBean rb = ResultBean.fireFail();
wmsInventoryCheckbillService.createReport(sid);
return rb.success();
}
@ApiOperation("查看盘点报告")
@PostMapping("/viewReport")
public ResultBean<WmsInventoryCheckbillReportDetailsVo> viewReport(@RequestParam("sid") String sid){
ResultBean rb = ResultBean.fireFail();
WmsInventoryCheckbillReportDetailsVo wmsInventoryCheckbillReportDetailsVo = wmsInventoryCheckbillService.viewReport(sid);
return rb.success().success().setData(wmsInventoryCheckbillReportDetailsVo);
}
@ApiOperation("生成盘点报告PDF")
@PostMapping("/createPdf")
public ResultBean<String> createPdf(@RequestParam("sid") String sid){
ResultBean rb = ResultBean.fireFail();
String url = wmsInventoryCheckbillService.createPdf(sid);
return rb.success().success().setData(url);
}
@ApiOperation("根据sid批量删除")
@DeleteMapping("/delBySids")
public ResultBean delBySids(@RequestBody String[] sids){

4
yxt-wms-biz/src/main/java/com/yxt/wms/biz/inventory/wmsinventorycheckbill/WmsInventoryCheckbillMapper.java

@ -35,6 +35,7 @@ import com.yxt.wms.biz.inventory.wmsinventorycheckbilldetail.WmsInventoryCheckbi
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import java.util.List;
@ -68,4 +69,7 @@ public interface WmsInventoryCheckbillMapper extends BaseMapper<WmsInventoryChec
String selectNum(String billNo);
int selectBySid(String join);
@Update("update wms_inventory_checkbill set state = 0 where sid = #{sid}")
void createReport(String sid);
}

2
yxt-wms-biz/src/main/java/com/yxt/wms/biz/inventory/wmsinventorycheckbill/WmsInventoryCheckbillMapper.xml

@ -5,6 +5,8 @@
<!-- ${ew.customSqlSegment} -->
<select id="selectPageVo" resultType="com.yxt.wms.biz.inventory.wmsinventorycheckbill.WmsInventoryCheckbillVo">
SELECT
wic.sid,
wic.state,
wic.`remarks`,
wic.`nodeState`,
wic.`deptName`,

108
yxt-wms-biz/src/main/java/com/yxt/wms/biz/inventory/wmsinventorycheckbill/WmsInventoryCheckbillService.java

@ -29,6 +29,8 @@ import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.date.DateUtil;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.yxt.common.base.config.component.DocPdfComponent;
import com.yxt.common.base.utils.WordConvertUtils;
import com.yxt.common.core.result.ResultBean;
import com.yxt.wms.biz.base.wmswarehousearea.WmsWarehouseArea;
import com.yxt.wms.biz.base.wmswarehousearea.WmsWarehouseAreaService;
@ -38,7 +40,7 @@ import com.yxt.wms.biz.inventory.wmsappendix.WmsAppendixService;
import com.yxt.wms.biz.inventory.wmsinventory.WmsInventory;
import com.yxt.wms.biz.inventory.wmsinventory.WmsInventoryService;
import com.yxt.wms.biz.inventory.wmsinventorycheckbilldetail.*;
import com.yxt.wms.biz.inventory.wmsinventorycheckbillreport.WmsInventoryCheckbillReportService;
import com.yxt.wms.biz.inventory.wmsinventorycheckbillreport.*;
import com.yxt.wms.feign.portal.privilege.PrivilegeQuery;
import com.yxt.wms.feign.portal.sysorganization.SysOrganizationFeign;
import com.yxt.wms.feign.portal.sysorganization.SysOrganizationVo;
@ -54,7 +56,9 @@ import com.yxt.common.core.vo.PagerVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
import java.io.File;
import java.io.InputStream;
import java.util.*;
/**
* Project: yxt-wms(仓储) <br/>
@ -90,6 +94,8 @@ public class WmsInventoryCheckbillService extends MybatisBaseService<WmsInventor
private SysUserFeign sysUserFeign;
@Autowired
private SysStaffOrgFeign sysStaffOrgFeign;
@Autowired
private DocPdfComponent docPdfComponent;
public PagerVo<WmsInventoryCheckbillVo> listPageVo(PagerQuery<WmsInventoryCheckbillQuery> pq) {
WmsInventoryCheckbillQuery query = pq.getParams();
@ -294,4 +300,102 @@ public class WmsInventoryCheckbillService extends MybatisBaseService<WmsInventor
}
return rb.success();
}
public void createReport(String sid) {
baseMapper.createReport(sid);
WmsInventoryCheckbillReportDto wmsInventoryCheckbillReportDto = new WmsInventoryCheckbillReportDto();
wmsInventoryCheckbillReportDto.setBillSid(sid);
wmsInventoryCheckbillReportService.insertByDto(wmsInventoryCheckbillReportDto);
}
public WmsInventoryCheckbillReportDetailsVo viewReport(String sid) {
WmsInventoryCheckbillReportDetailsVo wmsInventoryCheckbillReportDetailsVo = new WmsInventoryCheckbillReportDetailsVo();
//表头
WmsInventoryCheckbill wmsInventoryCheckbill = fetchBySid(sid);
wmsInventoryCheckbillReportDetailsVo.setCreateByName(wmsInventoryCheckbill.getCreateByName());
wmsInventoryCheckbillReportDetailsVo.setDeptName(wmsInventoryCheckbill.getDeptName());
wmsInventoryCheckbillReportDetailsVo.setCreateTime(wmsInventoryCheckbill.getCreateTime());
wmsInventoryCheckbillReportDetailsVo.setSuperviseName(wmsInventoryCheckbill.getSuperviseName());
//盘点报告备注
WmsInventoryCheckbillReport wmsInventoryCheckbillReport = wmsInventoryCheckbillReportService.selByBillSid(sid);
wmsInventoryCheckbillReportDetailsVo.setRemarks(wmsInventoryCheckbillReport.getRemarks());
//盘点报告PDF路径
wmsInventoryCheckbillReportDetailsVo.setPdfUrl(wmsInventoryCheckbillReport.getPdfUrl());
//总体盘点情况
List<WmsInventoryCheckbillReportSumVo> total = wmsInventoryCheckbillDetailService.reportSum(sid, "total");
for (WmsInventoryCheckbillReportSumVo totalSum : total) {
wmsInventoryCheckbillReportDetailsVo.setBookCountTotal(totalSum.getBookCount());
wmsInventoryCheckbillReportDetailsVo.setBookAmountTotal(totalSum.getBookAmount());
wmsInventoryCheckbillReportDetailsVo.setRealCountTotal(totalSum.getRealCount());
wmsInventoryCheckbillReportDetailsVo.setRealAmountTotal(totalSum.getRealAmount());
wmsInventoryCheckbillReportDetailsVo.setProfitCountTotal(totalSum.getProfitCount());
wmsInventoryCheckbillReportDetailsVo.setProfitAmountTotal(totalSum.getProfitAmount());
wmsInventoryCheckbillReportDetailsVo.setLoseCountTotal(totalSum.getLoseCount());
wmsInventoryCheckbillReportDetailsVo.setLoseAmountTotal(totalSum.getLoseAmount());
}
//仓库盘点情况
List<WmsInventoryCheckbillReportSumVo> ware = wmsInventoryCheckbillDetailService.reportSum(sid, "ware");
wmsInventoryCheckbillReportDetailsVo.setWare(ware);
//库区盘点情况
List<WmsInventoryCheckbillReportSumVo> area = wmsInventoryCheckbillDetailService.reportSum(sid, "area");
wmsInventoryCheckbillReportDetailsVo.setArea(area);
return wmsInventoryCheckbillReportDetailsVo;
}
public String createPdf(String sid) {
WmsInventoryCheckbillReportDetailsVo wmsInventoryCheckbillReportDetailsVo = viewReport(sid);
Map<String, Object> map = new HashMap<>();
//发起人
map.put("createName", wmsInventoryCheckbillReportDetailsVo.getCreateByName());
//发起部门
map.put("deptName", wmsInventoryCheckbillReportDetailsVo.getDeptName());
//发起日期
map.put("createTime", wmsInventoryCheckbillReportDetailsVo.getCreateTime());
//盘点人
map.put("pdrName", wmsInventoryCheckbillReportDetailsVo.getCreateByName());
//监盘人
map.put("jprName", wmsInventoryCheckbillReportDetailsVo.getSuperviseName());
//备注
map.put("remarks", wmsInventoryCheckbillReportDetailsVo.getRemarks());
//总体应盘数量
map.put("ypsl",wmsInventoryCheckbillReportDetailsVo.getBookCountTotal());
//总体应盘金额
map.put("ypje",wmsInventoryCheckbillReportDetailsVo.getBookAmountTotal());
//总体实盘数量
map.put("spsl",wmsInventoryCheckbillReportDetailsVo.getRealCountTotal());
//总体实盘金额
map.put("spje",wmsInventoryCheckbillReportDetailsVo.getRealAmountTotal());
//总体盘盈数量
map.put("pysl",wmsInventoryCheckbillReportDetailsVo.getProfitCountTotal());
//总体盘盈金额
map.put("pyje",wmsInventoryCheckbillReportDetailsVo.getProfitAmountTotal());
//总体盘亏数量
map.put("pksl",wmsInventoryCheckbillReportDetailsVo.getLoseCountTotal());
//总体盘亏金额
map.put("pkje",wmsInventoryCheckbillReportDetailsVo.getLoseAmountTotal());
//总体盘损数量
map.put("pssl",wmsInventoryCheckbillReportDetailsVo.getLossCountTotal());
//总体盘损金额
map.put("psje",wmsInventoryCheckbillReportDetailsVo.getLossAmountTotal());
List<WmsInventoryCheckbillReportSumVo> ware = wmsInventoryCheckbillReportDetailsVo.getWare();
map.put("ware",ware);
List<WmsInventoryCheckbillReportSumVo> area = wmsInventoryCheckbillReportDetailsVo.getArea();
map.put("area",area);
InputStream inputStream = this.getClass().getClassLoader().getResourceAsStream("ftl/" + "pdbg" + ".ftl");
//生成word文件名
String targetPath = docPdfComponent.getUploadTemplateUrl();
String dateStr = DateUtil.format(new Date(), "yyyyMMdd");
long seconds = System.currentTimeMillis();
String typeName = dateStr + seconds + ".doc";
File file = new File(targetPath + "pdbg" + seconds + ".ftl");
File dir = new File(targetPath);
WordConvertUtils.inputStreamToFile(inputStream, file);
WordConvertUtils.creatWord1(map, file, targetPath, typeName, dir);
//新生成的word路径
String wordPath = targetPath + typeName;
//生成文件名
String pdfName = map.get("num").toString() + "盘点报告_" + dateStr + seconds + ".pdf";
WordConvertUtils.doc2pdf(wordPath, targetPath, pdfName);
return pdfName;
}
}

6
yxt-wms-biz/src/main/java/com/yxt/wms/biz/inventory/wmsinventorycheckbill/WmsInventoryCheckbillVo.java

@ -55,6 +55,8 @@ public class WmsInventoryCheckbillVo implements Vo {
private String sid; // sid
@ApiModelProperty("是否生成盘库报告")
private String state;
@ApiModelProperty("备注")
private String remarks;
@ApiModelProperty("流程状态")
@ -81,6 +83,10 @@ public class WmsInventoryCheckbillVo implements Vo {
private BigDecimal realCount;
@ApiModelProperty("实盘金额")
private BigDecimal realAmount;
@ApiModelProperty("未盘数量")
private BigDecimal notCount;
@ApiModelProperty("未盘金额")
private BigDecimal notAmount;
@ApiModelProperty("盘盈数量")
private BigDecimal profitCount;
@ApiModelProperty("盘盈金额")

7
yxt-wms-biz/src/main/java/com/yxt/wms/biz/inventory/wmsinventorycheckbilldetail/WmsInventoryCheckbillDetailMapper.java

@ -29,6 +29,7 @@ import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.yxt.wms.biz.inventory.wmsinventorycheckbillreport.WmsInventoryCheckbillReportSumVo;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@ -56,4 +57,10 @@ public interface WmsInventoryCheckbillDetailMapper extends BaseMapper<WmsInvento
void delByMainSid(String dtoSid);
List<WmsInventoryCheckbillDetailDetailsVo> selByMainSid(String billSid);
WmsInventoryCheckbillReportSumVo reportSumTotal(String billSid);
List<WmsInventoryCheckbillReportSumVo> reportSumWare(String billSid);
List<WmsInventoryCheckbillReportSumVo> reportSumArea(String billSid);
}

61
yxt-wms-biz/src/main/java/com/yxt/wms/biz/inventory/wmsinventorycheckbilldetail/WmsInventoryCheckbillDetailMapper.xml

@ -17,4 +17,65 @@
ON wicd.inventorySid = wi.`sid`
WHERE billSid = #{billSid}
</select>
<select id="reportSumTotal"
resultType="com.yxt.wms.biz.inventory.wmsinventorycheckbillreport.WmsInventoryCheckbillReportSumVo">
SELECT
SUM(wicd.bookCount) AS bookCount,
SUM(wicd.bookCount) * cost AS bookAmount,
SUM(wicd.realCount) AS realCount,
SUM(wicd.realCount) * cost AS realAmount,
SUM(wicd.profitCount) AS profitCount,
SUM(wicd.profitCount) * cost AS profitAmount,
SUM(wicd.loseCount) AS loseCount,
SUM(wicd.loseCount) * cost AS loseAmount
FROM
wms_inventory_checkbill_detail AS wicd
WHERE wicd.billSid = #{billSid}
GROUP BY wicd.billSid
</select>
<select id="reportSumWare"
resultType="com.yxt.wms.biz.inventory.wmsinventorycheckbillreport.WmsInventoryCheckbillReportSumVo">
SELECT
wicd.warehouseName,
SUM(wicd.bookCount) AS bookCount,
SUM(wicd.bookCount) * cost AS bookAmount,
SUM(wicd.realCount) AS realCount,
SUM(wicd.realCount) * cost AS realAmount,
SUM(wicd.profitCount) AS profitCount,
SUM(wicd.profitCount) * cost AS profitAmount,
SUM(wicd.loseCount) AS loseCount,
SUM(wicd.loseCount) * cost AS loseAmount,
SUM(lossCount) AS lossCount,
SUM(lossCount) * cost AS lossAmount
FROM
wms_inventory_checkbill_detail AS wicd
WHERE wicd.billSid = #{billSid}
GROUP BY wicd.warehouseSid
</select>
<select id="reportSumArea"
resultType="com.yxt.wms.biz.inventory.wmsinventorycheckbillreport.WmsInventoryCheckbillReportSumVo">
SELECT
CONCAT(
wicd.warehouseName,
'-',
wicd.warehouseArea
) AS warehouseName,
SUM(wicd.bookCount) AS bookCount,
SUM(wicd.bookCount) * cost AS bookAmount,
SUM(wicd.realCount) AS realCount,
SUM(wicd.realCount) * cost AS realAmount,
SUM(wicd.profitCount) AS profitCount,
SUM(wicd.profitCount) * cost AS profitAmount,
SUM(wicd.loseCount) AS loseCount,
SUM(wicd.loseCount) * cost AS loseAmount,
SUM(lossCount) AS lossCount,
SUM(lossCount) * cost AS lossAmount
FROM
wms_inventory_checkbill_detail AS wicd
WHERE wicd.billSid = #{billSid}
GROUP BY wicd.warehouseAreaSid
</select>
</mapper>

21
yxt-wms-biz/src/main/java/com/yxt/wms/biz/inventory/wmsinventorycheckbilldetail/WmsInventoryCheckbillDetailService.java

@ -26,16 +26,12 @@
package com.yxt.wms.biz.inventory.wmsinventorycheckbilldetail;
import cn.hutool.core.bean.BeanUtil;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.commons.lang3.StringUtils;
import com.yxt.wms.biz.inventory.wmsinventorycheckbillreport.WmsInventoryCheckbillReportSumVo;
import com.yxt.common.base.service.MybatisBaseService;
import com.yxt.common.base.utils.PagerUtil;
import com.yxt.common.core.query.PagerQuery;
import com.yxt.common.core.vo.PagerVo;
import org.springframework.stereotype.Service;
import java.util.ArrayList;
import java.util.List;
/**
@ -74,4 +70,17 @@ public class WmsInventoryCheckbillDetailService extends MybatisBaseService<WmsIn
public List<WmsInventoryCheckbillDetailDetailsVo> selByMainSid(String billSid) {
return baseMapper.selByMainSid(billSid);
}
public List<WmsInventoryCheckbillReportSumVo> reportSum(String sid, String sumType) {
List<WmsInventoryCheckbillReportSumVo> wmsInventoryCheckbillReportSumVos = new ArrayList<>();
if ("total".equals(sumType)){
WmsInventoryCheckbillReportSumVo wmsInventoryCheckbillReportSumVo = baseMapper.reportSumTotal(sid);
wmsInventoryCheckbillReportSumVos.add(wmsInventoryCheckbillReportSumVo);
}else if ("ware".equals(sumType)){
wmsInventoryCheckbillReportSumVos = baseMapper.reportSumWare(sid);
}else if ("area".equals(sumType)){
wmsInventoryCheckbillReportSumVos = baseMapper.reportSumArea(sid);
}
return wmsInventoryCheckbillReportSumVos;
}
}

50
yxt-wms-biz/src/main/java/com/yxt/wms/biz/inventory/wmsinventorycheckbillreport/WmsInventoryCheckbillReportDetailsVo.java

@ -26,12 +26,18 @@
package com.yxt.wms.biz.inventory.wmsinventorycheckbillreport;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.yxt.common.core.vo.Vo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
/**
* Project: yxt-wms(盘点报告) <br/>
* File: WmsInventoryCheckbillReportVo.java <br/>
@ -51,9 +57,45 @@ public class WmsInventoryCheckbillReportDetailsVo implements Vo {
private String sid; // sid
@ApiModelProperty("盘点单sid")
private String billSid; // 盘点单sid
@ApiModelProperty("pdf路径")
private String pdfUrl; // pdf路径
@ApiModelProperty("制单人姓名")
private String createByName;
@ApiModelProperty("申请部门名称")
private String deptName;
@ApiModelProperty("生成日期")
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
private Date createTime;
@ApiModelProperty("监盘人姓名")
private String superviseName;
@ApiModelProperty("备注")
private String remarks;
@ApiModelProperty("pdf路径")
private String pdfUrl;
//总体盘点情况
@ApiModelProperty("应盘数量")
private BigDecimal bookCountTotal;
@ApiModelProperty("应盘金额")
private BigDecimal bookAmountTotal;
@ApiModelProperty("实盘数量")
private BigDecimal realCountTotal;
@ApiModelProperty("实盘金额")
private BigDecimal realAmountTotal;
@ApiModelProperty("盘盈数量")
private BigDecimal profitCountTotal;
@ApiModelProperty("盘盈金额")
private BigDecimal profitAmountTotal;
@ApiModelProperty("盘亏数量")
private BigDecimal loseCountTotal;
@ApiModelProperty("盘亏金额")
private BigDecimal loseAmountTotal;
@ApiModelProperty("盘损数量")
private BigDecimal lossCountTotal;
@ApiModelProperty("盘损金额")
private BigDecimal lossAmountTotal;
//仓库盘点情况
List<WmsInventoryCheckbillReportSumVo> ware = new ArrayList<>();
//库区盘点情况
List<WmsInventoryCheckbillReportSumVo> Area = new ArrayList<>();
}

4
yxt-wms-biz/src/main/java/com/yxt/wms/biz/inventory/wmsinventorycheckbillreport/WmsInventoryCheckbillReportMapper.java

@ -28,6 +28,7 @@ package com.yxt.wms.biz.inventory.wmsinventorycheckbillreport;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
/**
* Project: yxt-wms(盘点报告) <br/>
@ -47,4 +48,7 @@ public interface WmsInventoryCheckbillReportMapper extends BaseMapper<WmsInvento
@Delete("delete from wms_inventory_checkbill_report where billSid = #{billSid}")
void delByMainSid(String billSid);
@Select("select * from wms_inventory_checkbill_report where billSid = #{billSid}")
WmsInventoryCheckbillReport selByBillSid(String billSid);
}

4
yxt-wms-biz/src/main/java/com/yxt/wms/biz/inventory/wmsinventorycheckbillreport/WmsInventoryCheckbillReportService.java

@ -62,4 +62,8 @@ public class WmsInventoryCheckbillReportService extends MybatisBaseService<WmsIn
public void delByMainSid(String billSid) {
baseMapper.delByMainSid(billSid);
}
public WmsInventoryCheckbillReport selByBillSid(String billSid) {
return baseMapper.selByBillSid(billSid);
}
}

77
yxt-wms-biz/src/main/java/com/yxt/wms/biz/inventory/wmsinventorycheckbillreport/WmsInventoryCheckbillReportSumVo.java

@ -0,0 +1,77 @@
/*********************************************************
*********************************************************
******************** *******************
************* ************
******* _oo0oo_ *******
*** o8888888o ***
* 88" . "88 *
* (| -_- |) *
* 0\ = /0 *
* ___/`---'\___ *
* .' \\| |// '. *
* / \\||| : |||// \ *
* / _||||| -:- |||||- \ *
* | | \\\ - /// | | *
* | \_| ''\---/'' |_/ | *
* \ .-\__ '-' ___/-. / *
* ___'. .' /--.--\ `. .'___ *
* ."" '< `.___\_<|>_/___.' >' "". *
* | | : `- \`.;`\ _ /`;.`/ - ` : | | *
* \ \ `_. \_ __\ /__ _/ .-` / / *
* =====`-.____`.___ \_____/___.-`___.-'===== *
* `=---=' *
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *
*********__佛祖保佑__永无BUG__验收通过__钞票多多__*********
*********************************************************/
package com.yxt.wms.biz.inventory.wmsinventorycheckbillreport;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.yxt.common.core.vo.Vo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.math.BigDecimal;
import java.util.Date;
/**
* Project: yxt-wms(盘点报告) <br/>
* File: WmsInventoryCheckbillReportVo.java <br/>
* Class: com.yxt.wms.api.wmsinventorycheckbillreport.WmsInventoryCheckbillReportVo <br/>
* Description: 盘点报告 视图数据对象. <br/>
* Copyright: Copyright (c) 2011 <br/>
* Company: https://gitee.com/liuzp315 <br/>
* Makedate: 2024-07-19 09:52:51 <br/>
*
* @author liupopo
* @version 1.0
* @since 1.0
*/
@Data
@ApiModel(value = "盘点报告 视图数据详情", description = "盘点报告 视图数据详情")
public class WmsInventoryCheckbillReportSumVo implements Vo {
@ApiModelProperty("仓库名称(或仓库-库区名称)")
private String warehouseName;
@ApiModelProperty("应盘数量")
private BigDecimal bookCount;
@ApiModelProperty("应盘金额")
private BigDecimal bookAmount;
@ApiModelProperty("实盘数量")
private BigDecimal realCount;
@ApiModelProperty("实盘金额")
private BigDecimal realAmount;
@ApiModelProperty("盘盈数量")
private BigDecimal profitCount;
@ApiModelProperty("盘盈金额")
private BigDecimal profitAmount;
@ApiModelProperty("盘亏数量")
private BigDecimal loseCount;
@ApiModelProperty("盘亏金额")
private BigDecimal loseAmount;
@ApiModelProperty("盘损数量")
private BigDecimal lossCount;
@ApiModelProperty("盘损金额")
private BigDecimal lossAmount;
}

3733
yxt-wms-biz/src/main/resources/ftl/pdbg.ftl

File diff suppressed because it is too large

18
yxt-wms-biz/src/main/resources/ftl/盘点报告.doc

@ -0,0 +1,18 @@
|盘点报告 |
|发起人 |${createName} |发起部|${deptName} |发起日|${createTime}|
| | |门 | |期 | |
|盘点人 |${pdrName} |监盘人|${jprName} |备注 |${remarks} |
|总体盘点情况 |
|应盘数量:${ypsl} 应盘金额:${ypje} |
|实盘数量:${spsl} 实盘金额:${spje} |
|盘盈数量:${pysl} 盘盈金额:${pyje} |
|盘亏数量:${pksl} 盘亏金额:${pkje} |
|盘损数量:${pssl} 盘损金额:${psje} |
|仓库盘点情况 |
|序号 |
序号 |仓库-库区 |应盘 |应盘金额 |实盘 |实盘金额 |盘盈 |盘盈金额 |盘亏
|盘亏金额 |盘损 |盘损金额 | |${id2} |${ck2} |${yp2} |${ypje2} |${sp2}
|${spje2} |${py2} |${pyje2} |${pk2} |${pkje2} |${ps2} |${psje2} | |
Loading…
Cancel
Save