Browse Source

opt: 修改首页单据处理数量,单据明细实时自动审核;

test-20240527
龚宝雄 7 months ago
parent
commit
a75c458ae2
  1. 3
      nlsso-server/src/main/java/org/nl/wms/database/eas/service/impl/EasOutInBillDetailServiceImpl.java
  2. 2
      nlsso-server/src/main/java/org/nl/wms/database/eas/service/impl/EasOutInBillServiceImpl.java
  3. 16
      nlsso-server/src/main/java/org/nl/wms/schedule/EasBillSchedule.java

3
nlsso-server/src/main/java/org/nl/wms/database/eas/service/impl/EasOutInBillDetailServiceImpl.java

@ -208,6 +208,7 @@ public class EasOutInBillDetailServiceImpl extends ServiceImpl<EasOutInBillDetai
updateWrapper.set("update_name", SecurityUtils.getCurrentNickName());
updateWrapper.set("update_time", DateUtil.format(DateUtil.beginOfDay(DateUtil.date()), "yyyy-MM-dd"));
easOutInBillDetailMapper.update(null, updateWrapper);
ieasOutInBillService.audit(ids,false);
});
} else {
boolean isValid = entityList.stream()
@ -229,7 +230,7 @@ public class EasOutInBillDetailServiceImpl extends ServiceImpl<EasOutInBillDetai
}
UpdateWrapper<EasOutInBillDetail> updateWrapper = new UpdateWrapper<>();
if(sysl.compareTo(BigDecimal.ZERO)==0) {
updateWrapper.set("djzt", "审核");
updateWrapper.set("djzt", "审核");
}
updateWrapper.eq("flid", entityList.get(0).getFlid());
updateWrapper.set("czsl", czsl);

2
nlsso-server/src/main/java/org/nl/wms/database/eas/service/impl/EasOutInBillServiceImpl.java

@ -386,6 +386,8 @@ public class EasOutInBillServiceImpl extends ServiceImpl<EasOutInBillMapper, Eas
/**
* 单据审核
* 手动审核特殊情况下某些单据明细行物料库存不足但是必须出库或是某些单据明细行确实不需要出库出库数量为0其余单据明细行都满足出库数量需要手动强制审核单据
* 自动审核所有单据明细行的出入库操作数量都等于目标数量则定时查询自动审核
*/
@Override
@Transactional(rollbackFor = Exception.class)

16
nlsso-server/src/main/java/org/nl/wms/schedule/EasBillSchedule.java

@ -73,6 +73,22 @@ public class EasBillSchedule {
//autoDeleteBill(easOutInBillDetails, existingIds);
}
}
}
/**
* eas单据数据同步
*/
@Async("taskExecutor")
@Scheduled(cron = "0/30 * * * * *")
public void automaticAuditBills() {
List<EasOutInBillDetail> easOutInBillDetailList = easOutInBillDetailMapper.selectList(new LambdaQueryWrapper<EasOutInBillDetail>().eq(EasOutInBillDetail::getDjzt, "待审核"));
}
/**

Loading…
Cancel
Save