Browse Source

Merge remote-tracking branch 'remotes/origin/intex_online20250327' into intex

intex
刘忱 2 days ago
parent
commit
c6138640ca
  1. 18
      win-module-wms/win-module-wms-biz/src/main/java/com/win/module/wms/service/balance/BalanceServiceImpl.java

18
win-module-wms/win-module-wms-biz/src/main/java/com/win/module/wms/service/balance/BalanceServiceImpl.java

@ -2388,24 +2388,10 @@ public class BalanceServiceImpl implements BalanceService {
int randomNum = (int) (Math.random() * 100) + 1;
queryWrapper.apply(randomNum+"="+randomNum);
queryWrapper.groupBy("item_code", "batch", "qty", "inventory_status", "warehouse_code", "area_code", "location_group_code", "location_code", "area_type");
List<BalanceDO> balanceDOListTemp = balanceMapper.selectListByWrapper(queryWrapper);
if (balanceDOListTemp == null || balanceDOListTemp.isEmpty()) {
List<BalanceDO> balanceDOList = balanceMapper.selectListByWrapper(queryWrapper);
if (balanceDOList == null || balanceDOList.isEmpty()) {
throw exception(Recommended_NOT_EXISTS, itemCode);
}
List<BalanceDO> balanceDOList = new ArrayList<>();
for(BalanceDO balanceDO:balanceDOListTemp){
BalanceDO tempBalance = new BalanceDO();
BeanUtils.copyProperties(balanceDO,tempBalance);
balanceDOList.add(tempBalance);
}
// 不走mybatis缓存,每次都希望查询
balanceDOListTemp.clear();
balanceDOListTemp = null;
// try {
// Thread.sleep(1000);
// } catch (InterruptedException e) {
// throw new RuntimeException(e);
// }
// 任务子表数据
List<BalanceDO> balanceDOListJob = new ArrayList<>();
if (balanceDOList == null || balanceDOList.isEmpty()) {

Loading…
Cancel
Save