|
@ -193,15 +193,15 @@ public class WarehouseInventoryRecordService extends MybatisBaseService<Warehous |
|
|
qw.apply(StringUtils.isNotBlank(query.getStartDate()), "r.createTime >= '" + query.getStartDate() + "'"). |
|
|
qw.apply(StringUtils.isNotBlank(query.getStartDate()), "r.createTime >= '" + query.getStartDate() + "'"). |
|
|
apply(StringUtils.isNotBlank(query.getEndDate()), "r.createTime <= '" + query.getEndDate() + "'" |
|
|
apply(StringUtils.isNotBlank(query.getEndDate()), "r.createTime <= '" + query.getEndDate() + "'" |
|
|
); |
|
|
); |
|
|
if(query.getSids()!=null){ |
|
|
if(StringUtils.isNotBlank(query.getCustomerSid())){ |
|
|
qw.in("customerSid",query.getSids()); |
|
|
qw.eq("r.customerSid",query.getCustomerSid()); |
|
|
} |
|
|
} |
|
|
if(StringUtils.isNotBlank(query.getCustomerName())){ |
|
|
if(StringUtils.isNotBlank(query.getCustomerName())){ |
|
|
qw.like("customerName",query.getCustomerName()); |
|
|
qw.like("r.customerName",query.getCustomerName()); |
|
|
} |
|
|
} |
|
|
qw.eq("r.billType", "0"); |
|
|
qw.eq("r.billType", "0"); |
|
|
qw.groupBy("r.customerSid"); |
|
|
qw.groupBy("r.customerSid"); |
|
|
qw.eq("createOrgSid",query.getOrgPath()); |
|
|
qw.eq("r.createOrgSid",query.getOrgPath()); |
|
|
IPage<WarehouseInventoryRecord> page = PagerUtil.queryToPage(pq); |
|
|
IPage<WarehouseInventoryRecord> page = PagerUtil.queryToPage(pq); |
|
|
IPage<WarehouseOutReportVo> pagging = baseMapper.customerSales(page, qw); |
|
|
IPage<WarehouseOutReportVo> pagging = baseMapper.customerSales(page, qw); |
|
|
PagerVo<WarehouseOutReportVo> p = PagerUtil.pageToVo(pagging, null); |
|
|
PagerVo<WarehouseOutReportVo> p = PagerUtil.pageToVo(pagging, null); |
|
@ -229,7 +229,7 @@ public class WarehouseInventoryRecordService extends MybatisBaseService<Warehous |
|
|
qw.eq("d.goodsTypeSid",query.getTypeSid()); |
|
|
qw.eq("d.goodsTypeSid",query.getTypeSid()); |
|
|
} |
|
|
} |
|
|
qw.eq("r.billType", "1"); |
|
|
qw.eq("r.billType", "1"); |
|
|
qw.groupBy("r.goodsSpuSid"); |
|
|
qw.groupBy("r.goodsSkuSid"); |
|
|
qw.eq("r.createOrgSid",query.getOrgPath()); |
|
|
qw.eq("r.createOrgSid",query.getOrgPath()); |
|
|
IPage<WarehouseInventoryRecord> page = PagerUtil.queryToPage(pq); |
|
|
IPage<WarehouseInventoryRecord> page = PagerUtil.queryToPage(pq); |
|
|
IPage<WarehouseGoodsPurchaseReportVo> pagging = baseMapper.goodsPurchase(page, qw); |
|
|
IPage<WarehouseGoodsPurchaseReportVo> pagging = baseMapper.goodsPurchase(page, qw); |
|
@ -252,14 +252,18 @@ public class WarehouseInventoryRecordService extends MybatisBaseService<Warehous |
|
|
qw.eq("r.supplierSid",query.getSupplierSid()); |
|
|
qw.eq("r.supplierSid",query.getSupplierSid()); |
|
|
} |
|
|
} |
|
|
if(query.getTypeSids()!=null){ |
|
|
if(query.getTypeSids()!=null){ |
|
|
|
|
|
if(query.getTypeSids().size()!=0){ |
|
|
qw.in("r.goodsSpuSid",query.getTypeSids()); |
|
|
qw.in("r.goodsSpuSid",query.getTypeSids()); |
|
|
} |
|
|
} |
|
|
if(query.getBrandSids()!=null){ |
|
|
} |
|
|
qw.like("r.goodsSpuSid",query.getBrandSids()); |
|
|
if(query.getGoodsSids()!=null){ |
|
|
|
|
|
if(query.getGoodsSids().size()!=0){ |
|
|
|
|
|
qw.in("r.goodsSpuSid",query.getGoodsSids()); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
qw.apply(StringUtils.isNotBlank(query.getCount()), "r.count >= '" + query.getCount() + "'"); |
|
|
qw.apply(StringUtils.isNotBlank(query.getCount()), "r.count >= '" + query.getCount() + "'"); |
|
|
qw.eq("r.billType", "0"); |
|
|
qw.eq("r.billType", "0"); |
|
|
qw.groupBy("r.goodsSpuSid"); |
|
|
qw.groupBy("r.goodsSkuSid"); |
|
|
qw.eq("r.createOrgSid",query.getOrgPath()); |
|
|
qw.eq("r.createOrgSid",query.getOrgPath()); |
|
|
IPage<WarehouseInventoryRecord> page = PagerUtil.queryToPage(pq); |
|
|
IPage<WarehouseInventoryRecord> page = PagerUtil.queryToPage(pq); |
|
|
IPage<WarehouseGoodsSalesReportVo> pagging = baseMapper.goodsSales(page, qw); |
|
|
IPage<WarehouseGoodsSalesReportVo> pagging = baseMapper.goodsSales(page, qw); |
|
@ -282,14 +286,18 @@ public class WarehouseInventoryRecordService extends MybatisBaseService<Warehous |
|
|
qw.eq("r.supplierSid",query.getSupplierSid()); |
|
|
qw.eq("r.supplierSid",query.getSupplierSid()); |
|
|
} |
|
|
} |
|
|
if(query.getTypeSids()!=null){ |
|
|
if(query.getTypeSids()!=null){ |
|
|
|
|
|
if(query.getTypeSids().size()!=0){ |
|
|
qw.in("r.goodsSpuSid",query.getTypeSids()); |
|
|
qw.in("r.goodsSpuSid",query.getTypeSids()); |
|
|
} |
|
|
} |
|
|
if(query.getBrandSids()!=null){ |
|
|
} |
|
|
qw.like("r.goodsSpuSid",query.getBrandSids()); |
|
|
if(query.getGoodsSids()!=null){ |
|
|
|
|
|
if(query.getGoodsSids().size()!=0){ |
|
|
|
|
|
qw.in("r.goodsSpuSid",query.getGoodsSids()); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
qw.apply(StringUtils.isNotBlank(query.getCount()), "r.count >= '" + query.getCount() + "'"); |
|
|
qw.apply(StringUtils.isNotBlank(query.getCount()), "r.count >= '" + query.getCount() + "'"); |
|
|
qw.eq("r.billType", "0"); |
|
|
qw.eq("r.billType", "0"); |
|
|
qw.groupBy("r.goodsSpuSid"); |
|
|
qw.groupBy("r.goodsSkuSid"); |
|
|
qw.eq("r.createOrgSid",query.getOrgPath()); |
|
|
qw.eq("r.createOrgSid",query.getOrgPath()); |
|
|
|
|
|
|
|
|
List<WarehouseGoodsSalesReportExcelVo> pagging = baseMapper.goodsSalesE(qw); |
|
|
List<WarehouseGoodsSalesReportExcelVo> pagging = baseMapper.goodsSalesE(qw); |
|
@ -317,7 +325,7 @@ public class WarehouseInventoryRecordService extends MybatisBaseService<Warehous |
|
|
qw.eq("d.goodsTypeSid",query.getTypeSid()); |
|
|
qw.eq("d.goodsTypeSid",query.getTypeSid()); |
|
|
} |
|
|
} |
|
|
qw.eq("r.billType", "1"); |
|
|
qw.eq("r.billType", "1"); |
|
|
qw.groupBy("r.goodsSpuSid"); |
|
|
qw.groupBy("r.goodsSkuSid"); |
|
|
qw.eq("r.createOrgSid",query.getOrgPath()); |
|
|
qw.eq("r.createOrgSid",query.getOrgPath()); |
|
|
|
|
|
|
|
|
List<WarehouseGoodsPurchaseReportExcelVo> pagging = baseMapper.goodsPurchaseE(qw); |
|
|
List<WarehouseGoodsPurchaseReportExcelVo> pagging = baseMapper.goodsPurchaseE(qw); |
|
@ -331,14 +339,14 @@ public class WarehouseInventoryRecordService extends MybatisBaseService<Warehous |
|
|
apply(StringUtils.isNotBlank(query.getEndDate()), "r.createTime <= '" + query.getEndDate() + "'" |
|
|
apply(StringUtils.isNotBlank(query.getEndDate()), "r.createTime <= '" + query.getEndDate() + "'" |
|
|
); |
|
|
); |
|
|
if(query.getSids()!=null){ |
|
|
if(query.getSids()!=null){ |
|
|
qw.in("customerSid",query.getSids()); |
|
|
qw.in("r.customerSid",query.getSids()); |
|
|
} |
|
|
} |
|
|
if(StringUtils.isNotBlank(query.getCustomerName())){ |
|
|
if(StringUtils.isNotBlank(query.getCustomerName())){ |
|
|
qw.like("customerName",query.getCustomerName()); |
|
|
qw.like("r.customerName",query.getCustomerName()); |
|
|
} |
|
|
} |
|
|
qw.eq("r.billType", "0"); |
|
|
qw.eq("r.billType", "0"); |
|
|
qw.groupBy("r.customerSid"); |
|
|
qw.groupBy("r.customerSid"); |
|
|
qw.eq("createOrgSid",query.getOrgPath()); |
|
|
qw.eq("r.createOrgSid",query.getOrgPath()); |
|
|
List<WarehouseCustomerOutReportExcelVo> pagging = baseMapper.customerSalesE(qw); |
|
|
List<WarehouseCustomerOutReportExcelVo> pagging = baseMapper.customerSalesE(qw); |
|
|
return pagging; |
|
|
return pagging; |
|
|
} |
|
|
} |
|
|