fix:需求单批量删除,需求单同步中鼎,倒冲定时任务提高频率
This commit is contained in:
@@ -47,7 +47,6 @@ public class PmDemandController {
|
||||
|
||||
@DeleteMapping
|
||||
@Log("删除需求单")
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public ResponseEntity<Object> delete(@RequestBody String[] ids) {
|
||||
List<String> idList = Arrays.asList(ids);
|
||||
pmDemandService.deleteByIds(idList);
|
||||
|
||||
@@ -347,7 +347,12 @@ public class PmDemandServiceImpl extends ServiceImpl<PmDemandMapper, PmDemand> i
|
||||
})
|
||||
.map(Map.Entry::getKey)
|
||||
.collect(Collectors.joining(","));
|
||||
throw new BadRequestException("存在未勾选完全的工单" + collect);
|
||||
// throw new BadRequestException("存在未勾选完全的工单" + collect);
|
||||
pmDemandDtos.forEach(item -> {
|
||||
if (collect.contains(item.getWorkOrder())){
|
||||
item.setWorkOrder(item.getWorkOrder() + item.getPriority());
|
||||
}
|
||||
});
|
||||
}
|
||||
// 一次性分成两组
|
||||
Param zdStorParam = iSysParamService.findByCode(EXTConstant.ZD_STOR_SET);
|
||||
|
||||
@@ -40,7 +40,7 @@ public class ReceiveReturnAutoTask {
|
||||
.eq(ReceiveOutReturn::getStatus, StockReturnStatusEnum.FAIL.getCode()))
|
||||
.ge(ReceiveOutReturn::getBiztime, startOfMonth)
|
||||
.orderByAsc(ReceiveOutReturn::getUpdateTime)
|
||||
.last("limit 5"));
|
||||
.last("limit 10"));
|
||||
log.info("========>倒冲领料定时回传列表:{}", list.stream().map(ReceiveOutReturn::getBillno).collect(Collectors.joining(",")));
|
||||
for (ReceiveOutReturn item : list) {
|
||||
try {
|
||||
@@ -48,7 +48,7 @@ public class ReceiveReturnAutoTask {
|
||||
} catch (Exception e) {
|
||||
log.error("========>倒冲领料定时回传错误:{}", e.getMessage());
|
||||
}
|
||||
Thread.sleep(1000 * 3);
|
||||
Thread.sleep(1000);
|
||||
}
|
||||
//停止过账本月之前的记录
|
||||
List<ReceiveOutReturn> formerData = receiveOutReturnService.list(new LambdaQueryWrapper<ReceiveOutReturn>()
|
||||
|
||||
Reference in New Issue
Block a user