|
|
@@ -3,8 +3,6 @@ package com.uas.platform.b2b.service.impl;
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
import com.uas.platform.b2b.constant.StringConstant;
|
|
|
import com.uas.platform.b2b.core.util.ContextUtils;
|
|
|
-import com.uas.platform.b2b.core.util.DateFormatUtils;
|
|
|
-import com.uas.platform.b2b.core.util.DateUtils;
|
|
|
import com.uas.platform.b2b.core.util.ThreadUtils;
|
|
|
import com.uas.platform.b2b.dao.CommonDao;
|
|
|
import com.uas.platform.b2b.dao.EnterpriseDao;
|
|
|
@@ -14,6 +12,7 @@ import com.uas.platform.b2b.dao.PurchaseApCheckItemDao;
|
|
|
import com.uas.platform.b2b.dao.PurchaseApCheckTodoDao;
|
|
|
import com.uas.platform.b2b.dao.VendorDao;
|
|
|
import com.uas.platform.b2b.event.PurchaseApCheckReplyReleaseEvent;
|
|
|
+import com.uas.platform.b2b.model.DateFilter;
|
|
|
import com.uas.platform.b2b.model.Enterprise;
|
|
|
import com.uas.platform.b2b.model.OrderRedDotAll;
|
|
|
import com.uas.platform.b2b.model.OrderType;
|
|
|
@@ -24,15 +23,16 @@ import com.uas.platform.b2b.model.PurchaseApCheckTodo;
|
|
|
import com.uas.platform.b2b.model.SearchFilter;
|
|
|
import com.uas.platform.b2b.model.SourceForApcheck;
|
|
|
import com.uas.platform.b2b.model.Vendor;
|
|
|
-import com.uas.platform.b2b.model.util.UnCheckedCountSqls;
|
|
|
+import com.uas.platform.b2b.model.util.ApCheckeAllCountSqls;
|
|
|
+import com.uas.platform.b2b.model.util.ApCheckeDoneCountSqls;
|
|
|
+import com.uas.platform.b2b.model.util.ApCheckeTodoCountSqls;
|
|
|
import com.uas.platform.b2b.publicapi.model.ApCheckAmount;
|
|
|
-import com.uas.platform.b2b.publicapi.model.TradeCount;
|
|
|
import com.uas.platform.b2b.search.SearchService;
|
|
|
+import com.uas.platform.b2b.service.ErpProdIODetailService;
|
|
|
import com.uas.platform.b2b.service.OrderRedDotService;
|
|
|
import com.uas.platform.b2b.service.PurchaseApCheckService;
|
|
|
import com.uas.platform.b2b.service.UserService;
|
|
|
import com.uas.platform.b2b.support.DecimalUtils;
|
|
|
-import com.uas.platform.b2b.support.SPageUtils;
|
|
|
import com.uas.platform.b2b.support.SystemSession;
|
|
|
import com.uas.platform.core.exception.IllegalOperatorException;
|
|
|
import com.uas.platform.core.model.Constant;
|
|
|
@@ -57,9 +57,9 @@ import javax.persistence.criteria.CriteriaQuery;
|
|
|
import javax.persistence.criteria.Predicate;
|
|
|
import javax.persistence.criteria.Root;
|
|
|
import java.sql.SQLException;
|
|
|
-import java.text.ParseException;
|
|
|
import java.text.SimpleDateFormat;
|
|
|
import java.util.ArrayList;
|
|
|
+import java.util.Comparator;
|
|
|
import java.util.Date;
|
|
|
import java.util.HashMap;
|
|
|
import java.util.HashSet;
|
|
|
@@ -119,6 +119,9 @@ public class PurchaseApCheckServiceImpl implements PurchaseApCheckService {
|
|
|
*/
|
|
|
private final String USD = "USD";
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private ErpProdIODetailService erpProdIODetailService;
|
|
|
+
|
|
|
@Override
|
|
|
public List<PurchaseApCheck> findNotUploadAPcheck() {
|
|
|
return purchaseApCheckDao.findByCustUuAndStatusAndCheckStatus(SystemSession.getUser().getEnterprise().getUu(),
|
|
|
@@ -522,24 +525,54 @@ public class PurchaseApCheckServiceImpl implements PurchaseApCheckService {
|
|
|
*/
|
|
|
@Override
|
|
|
public SPage<Vendor> getCustomerInfo(PageParams params, String keyword, String checkDate, Long fromDate, Long endDate) {
|
|
|
- SPage<Vendor> vendorSPage = findCustomerByPage(params, keyword);
|
|
|
+ List<Vendor> vendors = findCustomerByPage(params, keyword);
|
|
|
final Long enUU = SystemSession.getUser().getEnterprise().getUu();
|
|
|
- if (!CollectionUtils.isEmpty(vendorSPage.getContent())) {
|
|
|
- vendorSPage.getContent().stream().filter(customer -> null != customer.getApcheck() && customer.getApcheck() == 1)
|
|
|
+ SPage<Vendor> vendorSPage = new SPage<>();
|
|
|
+ if (!CollectionUtils.isEmpty(vendors)) {
|
|
|
+ vendors.stream().filter(customer -> null != customer.getApcheck() && customer.getApcheck() == 1)
|
|
|
.forEach(customer -> {
|
|
|
Long customerUU = customer.getMyEnUU();
|
|
|
if (!StringUtils.isEmpty(customer.getTotalCountString())) {
|
|
|
List<ApCheckAmount> tradeCounts = JSON.parseArray(customer.getTotalCountString(), ApCheckAmount.class);
|
|
|
customer.setTotalCount(tradeCounts);
|
|
|
}
|
|
|
- // 本月应收
|
|
|
+ // 本月应收(未收)
|
|
|
+ List<ApCheckAmount> thisMonthTodoTrades = getThisMonthTodoTrade(enUU, customerUU, checkDate, fromDate, endDate);
|
|
|
+ customer.setThisMonthTodoCount(thisMonthTodoTrades);
|
|
|
+ // 本月应收(已收)
|
|
|
+ List<ApCheckAmount> thisMonthDoneTrades = getThisMonthDoneTrade(enUU, customerUU, checkDate, fromDate, endDate);
|
|
|
+ customer.setThisMonthDoneCount(thisMonthDoneTrades);
|
|
|
+ // 本月应收(总额)
|
|
|
List<ApCheckAmount> thisMonthTrades = getThisMonthTrade(enUU, customerUU, checkDate, fromDate, endDate);
|
|
|
customer.setThisMonthCount(thisMonthTrades);
|
|
|
});
|
|
|
+ vendors.stream().filter(vendor -> null != vendor.getThisMonthCount());
|
|
|
+ setVendorSPage(params, vendors, vendorSPage);
|
|
|
}
|
|
|
return vendorSPage;
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 设置供应商信息
|
|
|
+ * @param params 分页参数
|
|
|
+ * @param vendors 查询结果
|
|
|
+ * @param vendorSPage 分页处理
|
|
|
+ */
|
|
|
+ @Override
|
|
|
+ public void setVendorSPage(PageParams params, List<Vendor> vendors, SPage<Vendor> vendorSPage) {
|
|
|
+ List<Vendor> vendorList;
|
|
|
+ int startIndex = (params.getPage() - 1) * params.getCount();
|
|
|
+ int endIndex = params.getPage() * params.getCount();
|
|
|
+ int totalCount = vendors.size();
|
|
|
+ int totalPage = (int) Math.ceil(totalCount / params.getCount());
|
|
|
+ vendorSPage.setTotalElement(vendors.size());
|
|
|
+ vendorSPage.setTotalPage(totalPage);
|
|
|
+ vendorSPage.setPage(params.getPage());
|
|
|
+ vendorSPage.setSize(params.getCount());
|
|
|
+ vendorList = vendors.subList(startIndex, endIndex > totalCount ? totalCount : endIndex);
|
|
|
+ vendorSPage.setContent(vendorList);
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 通过分页信息查询客户信息
|
|
|
*
|
|
|
@@ -547,15 +580,13 @@ public class PurchaseApCheckServiceImpl implements PurchaseApCheckService {
|
|
|
* @param keyword 搜索关键词
|
|
|
* @return 搜索结果
|
|
|
*/
|
|
|
- private SPage<Vendor> findCustomerByPage(PageParams params, String keyword) {
|
|
|
+ private List<Vendor> findCustomerByPage(PageParams params, String keyword) {
|
|
|
// 只使用前端的页码和分页大小,防止排序信息注入
|
|
|
SearchFilter filter = userService.distribute();
|
|
|
if (filter != null && filter.getDistribute() == null) {
|
|
|
- return new SPage<>();
|
|
|
+ return new ArrayList<>();
|
|
|
}
|
|
|
PageInfo pageInfo = new PageInfo(params.getPage(), params.getCount());
|
|
|
- org.springframework.data.domain.Sort sort = new org.springframework.data.domain.Sort( org.springframework.data.domain.Sort.Direction.DESC, "totalCountString");
|
|
|
- pageInfo.setSort(sort);
|
|
|
/*
|
|
|
* 过滤条件
|
|
|
* 1、 当前企业为供应商
|
|
|
@@ -573,13 +604,16 @@ public class PurchaseApCheckServiceImpl implements PurchaseApCheckService {
|
|
|
if (!StringUtils.isEmpty(keyword)) {
|
|
|
pageInfo.expression(PredicateUtils.like("myEnterprise.enName", keyword, true));
|
|
|
}
|
|
|
- Page<Vendor> vendors = vendorDao.findAll((Root<Vendor> root, CriteriaQuery<?> query, CriteriaBuilder builder) ->
|
|
|
- query.where(pageInfo.getPredicates(root, query, builder)).getRestriction(), pageInfo);
|
|
|
- return SPageUtils.covertSPage(vendors);
|
|
|
+ /*
|
|
|
+ * 1、 筛选所有符合条件的客户信息
|
|
|
+ * 2、 后端做其他数据操作处理
|
|
|
+ */
|
|
|
+ return vendorDao.findAll((Root<Vendor> root, CriteriaQuery<?> query, CriteriaBuilder builder) ->
|
|
|
+ query.where(pageInfo.getPredicates(root, query, builder)).getRestriction());
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 获取指定月份应收金额
|
|
|
+ * 获取指定月份应收金额(未收)
|
|
|
*
|
|
|
* @param enUU 企业UU
|
|
|
* @param customerUU 客户企业UU
|
|
|
@@ -589,62 +623,46 @@ public class PurchaseApCheckServiceImpl implements PurchaseApCheckService {
|
|
|
* @return 统计结果
|
|
|
*/
|
|
|
@Override
|
|
|
- public List<ApCheckAmount> getThisMonthTrade(Long enUU, Long customerUU, String checkDate, Long fromDate, Long endDate) {
|
|
|
- String sqlFromDate;
|
|
|
- String sqlEndDate;
|
|
|
- /*
|
|
|
- * 1、 如果前端指定开始截止时间,直接使用
|
|
|
- * 2、 如果前端未指定,采用选择月份,使用月份处理
|
|
|
- * 3、 截止时间筛为指定月份加1,即下月一号,采用小于这天,能取到当月所有数据
|
|
|
- */
|
|
|
- final Integer oneDayMilliseconds = 86400000;
|
|
|
- boolean onlyCheckDate = (null == fromDate || null == endDate) && null != checkDate;
|
|
|
- if (null != fromDate && null != endDate ) {
|
|
|
- sqlFromDate = DateFormatUtils.DATE_FORMAT.format(new Date(fromDate));
|
|
|
- sqlEndDate = DateFormatUtils.DATE_FORMAT.format(new Date(endDate + oneDayMilliseconds));
|
|
|
- } else if (onlyCheckDate) {
|
|
|
- SimpleDateFormat format = new SimpleDateFormat("yyyy-MM");
|
|
|
- Date date;
|
|
|
- Date checkTime;
|
|
|
- try {
|
|
|
- date = DateUtils.dateAddMonth(format.parse(checkDate), 1);
|
|
|
- checkTime = format.parse(checkDate);
|
|
|
- } catch (ParseException e) {
|
|
|
- throw new IllegalOperatorException("时间格式异常");
|
|
|
- }
|
|
|
- sqlFromDate = DateFormatUtils.DATE_FORMAT.format(checkTime);
|
|
|
- sqlEndDate = DateFormatUtils.DATE_FORMAT.format(date);
|
|
|
- } else {
|
|
|
- throw new IllegalOperatorException("请选择对账时间");
|
|
|
- }
|
|
|
+ public List<ApCheckAmount> getThisMonthTodoTrade(Long enUU, Long customerUU, String checkDate, Long fromDate, Long endDate) {
|
|
|
+ DateFilter filter = erpProdIODetailService.initFilter(fromDate, endDate, checkDate);
|
|
|
List<ApCheckAmount> totalTrades = new ArrayList<>();
|
|
|
ThreadUtils
|
|
|
// 货款调账
|
|
|
.task(() -> {
|
|
|
- List<ApCheckAmount> trades = commonDao.query(UnCheckedCountSqls.THISMONTH_ADJUSTMENT_COUNT_SQL, ApCheckAmount.class, enUU, customerUU, sqlFromDate, sqlEndDate);
|
|
|
+ List<ApCheckAmount> trades = commonDao.query(ApCheckeTodoCountSqls.THISMONTH_ADJUSTMENT_COUNT_SQL, ApCheckAmount.class, enUU, customerUU, filter.getFromDate(), filter.getEndDate());
|
|
|
totalTrades.addAll(trades);
|
|
|
})
|
|
|
// 采购验收
|
|
|
.task(() -> {
|
|
|
- List<ApCheckAmount> trades = commonDao.query(UnCheckedCountSqls.THISMONTH_SALE_ACCEPT_COUNT_SQL, ApCheckAmount.class, enUU, customerUU, sqlFromDate, sqlEndDate);
|
|
|
+ List<ApCheckAmount> trades = commonDao.query(ApCheckeTodoCountSqls.THISMONTH_SALE_ACCEPT_COUNT_SQL, ApCheckAmount.class, enUU, customerUU, filter.getFromDate(), filter.getEndDate());
|
|
|
totalTrades.addAll(trades);
|
|
|
})
|
|
|
// 采购验退
|
|
|
.task(() -> {
|
|
|
- List<ApCheckAmount> trades = commonDao.query(UnCheckedCountSqls.THISMONTH_SALE_RETURN_COUNT_SQL, ApCheckAmount.class, enUU, customerUU, sqlFromDate, sqlEndDate);
|
|
|
+ List<ApCheckAmount> trades = commonDao.query(ApCheckeTodoCountSqls.THISMONTH_SALE_RETURN_COUNT_SQL, ApCheckAmount.class, enUU, customerUU, filter.getFromDate(), filter.getEndDate());
|
|
|
totalTrades.addAll(trades);
|
|
|
})
|
|
|
// 委外验收
|
|
|
.task(() -> {
|
|
|
- List<ApCheckAmount> trades = commonDao.query(UnCheckedCountSqls.THISMONTH_MAKE_ACCEPT_COUNT_SQL, ApCheckAmount.class, enUU, customerUU, sqlFromDate, sqlEndDate);
|
|
|
+ List<ApCheckAmount> trades = commonDao.query(ApCheckeTodoCountSqls.THISMONTH_MAKE_ACCEPT_COUNT_SQL, ApCheckAmount.class, enUU, customerUU, filter.getFromDate(), filter.getEndDate());
|
|
|
totalTrades.addAll(trades);
|
|
|
})
|
|
|
// 委外验退
|
|
|
.task(() -> {
|
|
|
- List<ApCheckAmount> trades = commonDao.query(UnCheckedCountSqls.THISMONTH_MAKE_RETURN_COUNT_SQL, ApCheckAmount.class, enUU, customerUU, sqlFromDate, sqlEndDate);
|
|
|
+ List<ApCheckAmount> trades = commonDao.query(ApCheckeTodoCountSqls.THISMONTH_MAKE_RETURN_COUNT_SQL, ApCheckAmount.class, enUU, customerUU, filter.getFromDate(), filter.getEndDate());
|
|
|
totalTrades.addAll(trades);
|
|
|
})
|
|
|
.run();
|
|
|
+ return groupCountByCurrency(totalTrades);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 根据统计信息按币别分类处理
|
|
|
+ * @param totalTrades 总额
|
|
|
+ * @return 处理后的数据
|
|
|
+ */
|
|
|
+ @Override
|
|
|
+ public List<ApCheckAmount> groupCountByCurrency(List<ApCheckAmount> totalTrades) {
|
|
|
Double rmbCount = totalTrades.stream().filter(tradeCount -> RMB.equals(tradeCount.getCurrency()))
|
|
|
.mapToDouble(ApCheckAmount::getCount).sum();
|
|
|
Double usdCount = totalTrades.stream().filter(tradeCount -> USD.equals(tradeCount.getCurrency()))
|
|
|
@@ -664,6 +682,94 @@ public class PurchaseApCheckServiceImpl implements PurchaseApCheckService {
|
|
|
return resultCounts;
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 获取指定月份应收金额(已收)
|
|
|
+ *
|
|
|
+ * @param enUU 企业UU
|
|
|
+ * @param customerUU 客户企业UU
|
|
|
+ * @param checkDate 筛选月份
|
|
|
+ * @param fromDate 开始时间
|
|
|
+ * @param endDate 截止时间
|
|
|
+ * @return 统计结果
|
|
|
+ */
|
|
|
+ @Override
|
|
|
+ public List<ApCheckAmount> getThisMonthDoneTrade(Long enUU, Long customerUU, String checkDate, Long fromDate, Long endDate) {
|
|
|
+ DateFilter filter = erpProdIODetailService.initFilter(fromDate, endDate, checkDate);
|
|
|
+ List<ApCheckAmount> totalTrades = new ArrayList<>();
|
|
|
+ ThreadUtils
|
|
|
+ // 货款调账
|
|
|
+ .task(() -> {
|
|
|
+ List<ApCheckAmount> trades = commonDao.query(ApCheckeDoneCountSqls.THISMONTH_ADJUSTMENT_COUNT_SQL, ApCheckAmount.class, enUU, customerUU, filter.getFromDate(), filter.getEndDate());
|
|
|
+ totalTrades.addAll(trades);
|
|
|
+ })
|
|
|
+ // 采购验收
|
|
|
+ .task(() -> {
|
|
|
+ List<ApCheckAmount> trades = commonDao.query(ApCheckeDoneCountSqls.THISMONTH_SALE_ACCEPT_COUNT_SQL, ApCheckAmount.class, enUU, customerUU, filter.getFromDate(), filter.getEndDate());
|
|
|
+ totalTrades.addAll(trades);
|
|
|
+ })
|
|
|
+ // 采购验退
|
|
|
+ .task(() -> {
|
|
|
+ List<ApCheckAmount> trades = commonDao.query(ApCheckeDoneCountSqls.THISMONTH_SALE_RETURN_COUNT_SQL, ApCheckAmount.class, enUU, customerUU, filter.getFromDate(), filter.getEndDate());
|
|
|
+ totalTrades.addAll(trades);
|
|
|
+ })
|
|
|
+ // 委外验收
|
|
|
+ .task(() -> {
|
|
|
+ List<ApCheckAmount> trades = commonDao.query(ApCheckeDoneCountSqls.THISMONTH_MAKE_ACCEPT_COUNT_SQL, ApCheckAmount.class, enUU, customerUU, filter.getFromDate(), filter.getEndDate());
|
|
|
+ totalTrades.addAll(trades);
|
|
|
+ })
|
|
|
+ // 委外验退
|
|
|
+ .task(() -> {
|
|
|
+ List<ApCheckAmount> trades = commonDao.query(ApCheckeDoneCountSqls.THISMONTH_MAKE_RETURN_COUNT_SQL, ApCheckAmount.class, enUU, customerUU, filter.getFromDate(), filter.getEndDate());
|
|
|
+ totalTrades.addAll(trades);
|
|
|
+ })
|
|
|
+ .run();
|
|
|
+ return groupCountByCurrency(totalTrades);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 获取指定月份应收金额(总额)
|
|
|
+ *
|
|
|
+ * @param enUU 企业UU
|
|
|
+ * @param customerUU 客户企业UU
|
|
|
+ * @param checkDate 筛选月份
|
|
|
+ * @param fromDate 开始时间
|
|
|
+ * @param endDate 截止时间
|
|
|
+ * @return 统计结果
|
|
|
+ */
|
|
|
+ @Override
|
|
|
+ public List<ApCheckAmount> getThisMonthTrade(Long enUU, Long customerUU, String checkDate, Long fromDate, Long endDate) {
|
|
|
+ DateFilter filter = erpProdIODetailService.initFilter(fromDate, endDate, checkDate);
|
|
|
+ List<ApCheckAmount> totalTrades = new ArrayList<>();
|
|
|
+ ThreadUtils
|
|
|
+ // 货款调账
|
|
|
+ .task(() -> {
|
|
|
+ List<ApCheckAmount> trades = commonDao.query(ApCheckeAllCountSqls.THISMONTH_ADJUSTMENT_COUNT_SQL, ApCheckAmount.class, enUU, customerUU, filter.getFromDate(), filter.getEndDate());
|
|
|
+ totalTrades.addAll(trades);
|
|
|
+ })
|
|
|
+ // 采购验收
|
|
|
+ .task(() -> {
|
|
|
+ List<ApCheckAmount> trades = commonDao.query(ApCheckeAllCountSqls.THISMONTH_SALE_ACCEPT_COUNT_SQL, ApCheckAmount.class, enUU, customerUU, filter.getFromDate(), filter.getEndDate());
|
|
|
+ totalTrades.addAll(trades);
|
|
|
+ })
|
|
|
+ // 采购验退
|
|
|
+ .task(() -> {
|
|
|
+ List<ApCheckAmount> trades = commonDao.query(ApCheckeAllCountSqls.THISMONTH_SALE_RETURN_COUNT_SQL, ApCheckAmount.class, enUU, customerUU, filter.getFromDate(), filter.getEndDate());
|
|
|
+ totalTrades.addAll(trades);
|
|
|
+ })
|
|
|
+ // 委外验收
|
|
|
+ .task(() -> {
|
|
|
+ List<ApCheckAmount> trades = commonDao.query(ApCheckeAllCountSqls.THISMONTH_MAKE_ACCEPT_COUNT_SQL, ApCheckAmount.class, enUU, customerUU, filter.getFromDate(), filter.getEndDate());
|
|
|
+ totalTrades.addAll(trades);
|
|
|
+ })
|
|
|
+ // 委外验退
|
|
|
+ .task(() -> {
|
|
|
+ List<ApCheckAmount> trades = commonDao.query(ApCheckeAllCountSqls.THISMONTH_MAKE_RETURN_COUNT_SQL, ApCheckAmount.class, enUU, customerUU, filter.getFromDate(), filter.getEndDate());
|
|
|
+ totalTrades.addAll(trades);
|
|
|
+ })
|
|
|
+ .run();
|
|
|
+ return groupCountByCurrency(totalTrades);
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 获取总的应收金额
|
|
|
*
|
|
|
@@ -677,27 +783,27 @@ public class PurchaseApCheckServiceImpl implements PurchaseApCheckService {
|
|
|
ThreadUtils
|
|
|
// 货款调账
|
|
|
.task(() -> {
|
|
|
- List<ApCheckAmount> trades = commonDao.query(UnCheckedCountSqls.ADJUSTMENT_COUNT_SQL, ApCheckAmount.class, enUU, customerUU);
|
|
|
+ List<ApCheckAmount> trades = commonDao.query(ApCheckeAllCountSqls.ADJUSTMENT_COUNT_SQL, ApCheckAmount.class, enUU, customerUU);
|
|
|
totalTrades.addAll(trades);
|
|
|
})
|
|
|
// 采购验收
|
|
|
.task(() -> {
|
|
|
- List<ApCheckAmount> trades = commonDao.query(UnCheckedCountSqls.SALE_ACCEPT_COUNT_SQL, ApCheckAmount.class, enUU, customerUU);
|
|
|
+ List<ApCheckAmount> trades = commonDao.query(ApCheckeAllCountSqls.SALE_ACCEPT_COUNT_SQL, ApCheckAmount.class, enUU, customerUU);
|
|
|
totalTrades.addAll(trades);
|
|
|
})
|
|
|
// 采购验退
|
|
|
.task(() -> {
|
|
|
- List<ApCheckAmount> trades = commonDao.query(UnCheckedCountSqls.SALE_RETURN_COUNT_SQL, ApCheckAmount.class, enUU, customerUU);
|
|
|
+ List<ApCheckAmount> trades = commonDao.query(ApCheckeAllCountSqls.SALE_RETURN_COUNT_SQL, ApCheckAmount.class, enUU, customerUU);
|
|
|
totalTrades.addAll(trades);
|
|
|
})
|
|
|
// 委外验收
|
|
|
.task(() -> {
|
|
|
- List<ApCheckAmount> trades = commonDao.query(UnCheckedCountSqls.MAKE_ACCEPT_COUNT_SQL, ApCheckAmount.class, enUU, customerUU);
|
|
|
+ List<ApCheckAmount> trades = commonDao.query(ApCheckeAllCountSqls.MAKE_ACCEPT_COUNT_SQL, ApCheckAmount.class, enUU, customerUU);
|
|
|
totalTrades.addAll(trades);
|
|
|
})
|
|
|
// 委外验退
|
|
|
.task(() -> {
|
|
|
- List<ApCheckAmount> trades = commonDao.query(UnCheckedCountSqls.MAKE_RETURN_COUNT_SQL, ApCheckAmount.class, enUU, customerUU);
|
|
|
+ List<ApCheckAmount> trades = commonDao.query(ApCheckeAllCountSqls.MAKE_RETURN_COUNT_SQL, ApCheckAmount.class, enUU, customerUU);
|
|
|
totalTrades.addAll(trades);
|
|
|
})
|
|
|
.run();
|