Commit 15ddb63e9c1cdcadb9c27113678fc2cca6d15c55

Authored by 肖超群
2 parents e0c6b5c5 25eff54a

Merge branch 'develop' of http://172.16.29.40:8010/wms/wms4 into develop

huaheng-wms-core/src/main/java/org/jeecg/modules/wms/home/service/impl/HomePageViewServiceImpl.java
... ... @@ -301,13 +301,15 @@ public class HomePageViewServiceImpl implements HomePageViewService {
301 301 @Override
302 302 public Result getCommonData(HttpServletRequest request) {
303 303 // 昨天日期
304   - String today = new SimpleDateFormat("yyyy-MM-dd").format(System.currentTimeMillis() - 1000 * 60 * 60 * 24).toString();
305   - Map<String, Object> map = new HashMap<>();
  304 + Date date = new Date();
  305 + SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");
  306 + String today = dateFormat.format(date).toString(); Map<String, Object> map = new HashMap<>();
306 307  
307 308 // 今天入库量
308 309 LambdaQueryWrapper<InventoryTransaction> inventoryTransactionLambdaQueryWrapper = Wrappers.lambdaQuery();
309 310 HuahengJwtUtil.setWarehouseCode(inventoryTransactionLambdaQueryWrapper, InventoryTransaction.class, request);
310   - inventoryTransactionLambdaQueryWrapper.select(InventoryTransaction::getType, InventoryTransaction::getQty).gt(InventoryTransaction::getCreateTime, today);
  311 + inventoryTransactionLambdaQueryWrapper.select(InventoryTransaction::getType, InventoryTransaction::getQty)
  312 + .gt(InventoryTransaction::getCreateTime, today);
311 313 List<InventoryTransaction> inventoryTransactions = inventoryTransactionService.list(inventoryTransactionLambdaQueryWrapper);
312 314 BigDecimal receiptQty = BigDecimal.ZERO;
313 315 BigDecimal shipmentQty = BigDecimal.ZERO;
... ...