opt:增加异常抛出
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user