rev:修改回库锁范围

This commit is contained in:
zhangzq
2023-11-27 14:30:43 +08:00
parent 8fe6902917
commit cf2b72496c
4 changed files with 24 additions and 25 deletions

View File

@@ -433,7 +433,7 @@ public class HandCleanOutIvtServiceImpl implements HandCleanOutIvtService {
throw new PdaRequestException("任务下发失败:" + result.getString("message")); throw new PdaRequestException("任务下发失败:" + result.getString("message"));
} }
} }
},"backstore"+point_code,2); },"backstore",3);
JSONObject returnjo = new JSONObject(); JSONObject returnjo = new JSONObject();
returnjo.put("code", "1"); returnjo.put("code", "1");

View File

@@ -881,13 +881,6 @@ public class HandPFOutIvtServiceImpl implements HandPFOutIvtService {
}else{ }else{
throw new PdaRequestException("分配货位并发锁获取失败,请稍后再试!"); throw new PdaRequestException("分配货位并发锁获取失败,请稍后再试!");
} }
} catch (Exception e) {
e.printStackTrace();
throw new PdaRequestException("逻辑分配错误:"+e.getMessage());
} finally {
lock.unlock();
}
//调用下发按钮 //调用下发按钮
AbstractAcsTask intask = new InTask(); AbstractAcsTask intask = new InTask();
//调用ACS接受任务接口 //调用ACS接受任务接口
@@ -909,6 +902,12 @@ public class HandPFOutIvtServiceImpl implements HandPFOutIvtService {
throw new PdaRequestException("任务下发失败:" + result.getString("message")); throw new PdaRequestException("任务下发失败:" + result.getString("message"));
} }
} }
} catch (Exception e) {
e.printStackTrace();
throw new PdaRequestException("逻辑分配错误:"+e.getMessage());
} finally {
lock.unlock();
}
JSONObject returnjo = new JSONObject(); JSONObject returnjo = new JSONObject();
returnjo.put("code", "1"); returnjo.put("code", "1");

View File

@@ -35,7 +35,7 @@ public class RedissonUtils {
if (isLock){ if (isLock){
process.accept(null); process.accept(null);
} else { } else {
throw new BadRequestException("The current business is being processed key:"+key); throw new BadRequestException("当前业务正在执行:"+key+",稍后再试");
} }
}finally { }finally {
if (isLock){ if (isLock){

View File

@@ -22,7 +22,7 @@ spring:
client: client:
reactive: reactive:
#endpoints: 172.31.185.110:9200,172.31.154.9:9200 #内网 #endpoints: 172.31.185.110:9200,172.31.154.9:9200 #内网
endpoints: 127.0.0.1:200 #外网 endpoints: 127.0.0.1:9200 #外网
# endpoints: http://10.1.3.90:9200 #外网 # endpoints: http://10.1.3.90:9200 #外网
elasticsearch: elasticsearch:
rest: rest: