fix: 分切下料-下单上单更新库存失败
This commit is contained in:
@@ -95,9 +95,13 @@ public class SlitterDownTrussTask extends AbstractAcsTask {
|
||||
if (StrUtil.equals(status, TaskStatusEnum.FINISHED.getCode())) {
|
||||
task.setTask_status(TaskStatusEnum.FINISHED.getCode());
|
||||
String pointCode1 = task.getPoint_code1();
|
||||
StIvtCutpointivt point1 = cutpointivtService.getPintByUpOrDownCode(pointCode1, false);
|
||||
String pointCode2 = task.getPoint_code2();
|
||||
StIvtCutpointivt point1 = cutpointivtService.getPintByUpOrDownCode(pointCode1, false);
|
||||
BstIvtCutpointivt point2 = bcutpointivtService.getPintByTrussCode(pointCode2, false);
|
||||
if (ObjectUtil.isEmpty(point1)) {
|
||||
point1 = cutpointivtService.getPintByUpOrDownCode(pointCode2, false);
|
||||
point2 = bcutpointivtService.getPintByTrussCode(pointCode1, false);
|
||||
}
|
||||
String tmpUpQzzNo = point1.getUp_qzzno();
|
||||
String tmpDownQzzNo = point1.getDown_qzzno();
|
||||
// 更新分切计划
|
||||
|
||||
@@ -396,7 +396,7 @@ public class SlitterServiceImpl implements SlitterService {
|
||||
throw new BadRequestException("系统繁忙,稍后在试!");
|
||||
}
|
||||
} finally {
|
||||
if (tryLock) {
|
||||
if (lock.isLocked() && lock.isHeldByCurrentThread()) {
|
||||
lock.unlock();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user