|
|
@@ -58,7 +58,7 @@ public class BankNotarizeServiceImpl implements BankNotarizeService {
|
|
|
* @return
|
|
|
*/
|
|
|
public ResponseDTO<?> onlineNotary(String businessNo) {
|
|
|
-
|
|
|
+
|
|
|
//
|
|
|
log.info("删除绑定关系业务流水号: " + businessNo);
|
|
|
appPcBindSocketIo.delBusinessNo(businessNo);
|
|
|
@@ -81,24 +81,26 @@ public class BankNotarizeServiceImpl implements BankNotarizeService {
|
|
|
log.info("查询所有的公证员: " + bankNotary);
|
|
|
// 判断当前是否有人在线,如果没有直接失败
|
|
|
boolean isOnline = false;
|
|
|
+ StringBuilder sb = new StringBuilder();
|
|
|
for (String username : bankNotary) {
|
|
|
Map<UUID, SocketIOClient> socketIo = PcSocketClientCache.socketIOClient(username);
|
|
|
- log.info("查看在线的公证员: " + username+"对应的socketIo:"+socketIo);
|
|
|
+ sb.append("查看在线的公证员: " + username + ",对应的socketIo:" + socketIo);
|
|
|
if (MapUtils.isNotEmpty(socketIo)) {
|
|
|
isOnline = true;
|
|
|
}
|
|
|
}
|
|
|
- if(!isOnline) {
|
|
|
+ log.info(sb.toString());
|
|
|
+ if (!isOnline) {
|
|
|
return ResponseDTO.error(ResultCode.NOTARY_OFFLINE);
|
|
|
}
|
|
|
// 查询绑定的人员,
|
|
|
Set<String> relatedNotary = appPcBindSocketIo.getAllBindNotary();
|
|
|
- log.info("查询绑定的人员,: " +relatedNotary);//
|
|
|
+ log.info("查询绑定的人员,: " + relatedNotary);//
|
|
|
if (CollectionUtils.isEmpty(relatedNotary)) {
|
|
|
return ResponseDTO.success();
|
|
|
}
|
|
|
Collection<String> intersection = CollectionUtils.intersection(bankNotary, relatedNotary);
|
|
|
- log.info("绑定公证员和在线公证员的差值: " +intersection);//
|
|
|
+ log.info("绑定公证员和在线公证员的差值: " + intersection);//
|
|
|
if (CollectionUtils.isEqualCollection(intersection, loginNotary)) {
|
|
|
return ResponseDTO.error(ResultCode.SEAT_BUSY);
|
|
|
}
|