opt:增加异常抛出

This commit is contained in:
2025-10-30 16:37:53 +08:00
parent f2d7a2350c
commit 65e24314e8

View File

@@ -433,6 +433,8 @@ public class MesToWmsServiceImpl implements MesToWmsService {
} else {
throw new BadRequestException("任务标识为:" + dto.getTask_code() + "的任务正在操作中!");
}
} catch (Exception e) {
throw e;
} finally {
if (tryLock) {
lock.unlock();
@@ -442,6 +444,7 @@ public class MesToWmsServiceImpl implements MesToWmsService {
@Override
@SneakyThrows
@Transactional
public MesResponse backMaterial(MesBackMaterialRequestDto dto) {
log.info("MES下发设备退料信息输入参数-------------------: {}", dto);
@@ -539,6 +542,8 @@ public class MesToWmsServiceImpl implements MesToWmsService {
} else {
throw new BadRequestException("任务标识为:" + dto.getTask_code() + "的任务正在操作中!");
}
} catch (Exception e) {
throw e;
} finally {
if (tryLock) {
lock.unlock();