|
|
@@ -114,11 +114,11 @@ public class ErpProdIODetailServiceImpl implements ErpProdIODetailService {
|
|
|
if (!CollectionUtil.isEmpty(totalTrades)) {
|
|
|
erpProdIo.setTotalCount(totalTrades);
|
|
|
String tradeString = JSON.toJSONString(totalTrades);
|
|
|
- ThreadUtils.task(() -> {
|
|
|
- if (!CollectionUtil.isEmpty(vendors)) {
|
|
|
+ if (!CollectionUtil.isEmpty(vendors)) {
|
|
|
+ ThreadUtils.task(() -> {
|
|
|
commonDao.getJdbcTemplate().update(String.format(ApCheckTask.UPDATE_COUNT_SQL, tradeString, vendors.get(0).getId()));
|
|
|
- }
|
|
|
- });
|
|
|
+ });
|
|
|
+ }
|
|
|
}
|
|
|
// 本月应收
|
|
|
List<TradeCount> thisMonthTrades = apCheckService.getThisMonthTrade(enUU, keyword.getCustomerUU(), checkDate, fromDate, endDate);
|