|
@ -243,6 +243,7 @@ public class WmsInventoryCheckbillService extends MybatisBaseService<WmsInventor |
|
|
if (StringUtils.isNotBlank(query.getGoodsSkuCode())) { |
|
|
if (StringUtils.isNotBlank(query.getGoodsSkuCode())) { |
|
|
qw.like("d.goodsSkuCode", query.getGoodsSkuCode()); |
|
|
qw.like("d.goodsSkuCode", query.getGoodsSkuCode()); |
|
|
} |
|
|
} |
|
|
|
|
|
qw.groupBy("d.sid"); |
|
|
IPage<WmsInventoryCheckbill> page = PagerUtil.queryToPage(pq); |
|
|
IPage<WmsInventoryCheckbill> page = PagerUtil.queryToPage(pq); |
|
|
IPage<WmsInventoryCheckbillDetailGoodPageListVo> pagging = baseMapper.detailGoodPageList(page, qw); |
|
|
IPage<WmsInventoryCheckbillDetailGoodPageListVo> pagging = baseMapper.detailGoodPageList(page, qw); |
|
|
PagerVo<WmsInventoryCheckbillDetailGoodPageListVo> p = PagerUtil.pageToVo(pagging, null); |
|
|
PagerVo<WmsInventoryCheckbillDetailGoodPageListVo> p = PagerUtil.pageToVo(pagging, null); |
|
@ -318,7 +319,7 @@ public class WmsInventoryCheckbillService extends MybatisBaseService<WmsInventor |
|
|
//查询本部门下,库存数量大0并且是旧件的库存
|
|
|
//查询本部门下,库存数量大0并且是旧件的库存
|
|
|
wmsInventories = wmsInventoryService.selJJByDeptSid(dto.getDeptSid()); |
|
|
wmsInventories = wmsInventoryService.selJJByDeptSid(dto.getDeptSid()); |
|
|
} |
|
|
} |
|
|
}else if ("03".equals(dto.getWarehouseTypeKey())){//拆件
|
|
|
} else if ("03".equals(dto.getWarehouseTypeKey())) {//拆件
|
|
|
billNo = "CJPD" + sysOrganizationVo.getOrgCode() + date; |
|
|
billNo = "CJPD" + sysOrganizationVo.getOrgCode() + date; |
|
|
if ("1".equals(dto.getCheckTypeKey())) { |
|
|
if ("1".equals(dto.getCheckTypeKey())) { |
|
|
//查询本部门指定库位下,库存数量大0并且拆件的库存
|
|
|
//查询本部门指定库位下,库存数量大0并且拆件的库存
|
|
@ -503,11 +504,11 @@ public class WmsInventoryCheckbillService extends MybatisBaseService<WmsInventor |
|
|
} |
|
|
} |
|
|
map.put("area", area); |
|
|
map.put("area", area); |
|
|
InputStream inputStream = null; |
|
|
InputStream inputStream = null; |
|
|
if ("01".equals(wmsInventoryCheckbillReportDetailsVo.getWarehouseTypeKey())){ |
|
|
if ("01".equals(wmsInventoryCheckbillReportDetailsVo.getWarehouseTypeKey())) { |
|
|
inputStream = this.getClass().getClassLoader().getResourceAsStream("ftl/" + "pdbg" + ".ftl"); |
|
|
inputStream = this.getClass().getClassLoader().getResourceAsStream("ftl/" + "pdbg" + ".ftl"); |
|
|
}else if ("02".equals(wmsInventoryCheckbillReportDetailsVo.getWarehouseTypeKey())){ |
|
|
} else if ("02".equals(wmsInventoryCheckbillReportDetailsVo.getWarehouseTypeKey())) { |
|
|
inputStream = this.getClass().getClassLoader().getResourceAsStream("ftl/" + "jjpdbg" + ".ftl"); |
|
|
inputStream = this.getClass().getClassLoader().getResourceAsStream("ftl/" + "jjpdbg" + ".ftl"); |
|
|
}else if ("03".equals(wmsInventoryCheckbillReportDetailsVo.getWarehouseTypeKey())){ |
|
|
} else if ("03".equals(wmsInventoryCheckbillReportDetailsVo.getWarehouseTypeKey())) { |
|
|
inputStream = this.getClass().getClassLoader().getResourceAsStream("ftl/" + "cj" + ".ftl"); |
|
|
inputStream = this.getClass().getClassLoader().getResourceAsStream("ftl/" + "cj" + ".ftl"); |
|
|
} |
|
|
} |
|
|
//生成word文件名
|
|
|
//生成word文件名
|
|
@ -958,12 +959,12 @@ public class WmsInventoryCheckbillService extends MybatisBaseService<WmsInventor |
|
|
wmsInventoryCheckbillReportService.saveReport(billSid, remarks); |
|
|
wmsInventoryCheckbillReportService.saveReport(billSid, remarks); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public List<InventoryBillVo> selPyByDeptSid(String deptSid,String warehouseTypeKey) { |
|
|
public List<InventoryBillVo> selPyByDeptSid(String deptSid, String warehouseTypeKey) { |
|
|
return baseMapper.selPyByDeptSid(deptSid,warehouseTypeKey); |
|
|
return baseMapper.selPyByDeptSid(deptSid, warehouseTypeKey); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public List<InventoryBillVo> selPkByDeptSid(String deptSid,String warehouseTypeKey) { |
|
|
public List<InventoryBillVo> selPkByDeptSid(String deptSid, String warehouseTypeKey) { |
|
|
return baseMapper.selPkByDeptSid(deptSid,warehouseTypeKey); |
|
|
return baseMapper.selPkByDeptSid(deptSid, warehouseTypeKey); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public ResultBean<String> getToDoNum(WmsToDoNumQuery wmsToDoNumQuery) { |
|
|
public ResultBean<String> getToDoNum(WmsToDoNumQuery wmsToDoNumQuery) { |
|
|