字典查询子节点接口

yun-zuoyi
汪云昊 6 years ago
parent 97c78467e2
commit 983fbf268e

@ -438,4 +438,23 @@ public class SysDictionaryController extends CoreBaseController{
return ImppExceptionBuilder.newInstance().buildExceptionResult(e);
}
}
/**
* id
* @param parentId id
* @return
*/
@GetMapping("/find-child/{parentId}")
@ApiOperation(value = "根据父级id查询字典",notes = "根据父级id查询字典")
public ResultBean<SysDictionary> findSysDictionaryByParentId(@PathVariable("parentId") String parentId){
try {
List<SysDictionary> dictionaryList = sysDictionaryService.findSysDictionaryByParentId(Long.parseLong(parentId));
return ResultBean.success("操作成功").setCode(ResourceEnumUtil.MESSAGE.SUCCESS.getCode()).setResultList(dictionaryList);
}catch(ImppBusiException busExcep){
return ResultBean.fail(busExcep);
}catch(Exception e){
return ImppExceptionBuilder.newInstance().buildExceptionResult(e);
}
}
}

@ -126,6 +126,7 @@ public class MessageWebSocket {
try {
MessageWebSocket websocket = webSocketMap.get(userLoginSid);
if (websocket != null && websocket.session.isOpen()) {
synchronized (websocket.session) {
if (message.equals("heartBit")) {
websocket.session.getBasicRemote().sendText(message + "=" + sendCount);
sendCount++;
@ -133,6 +134,7 @@ public class MessageWebSocket {
websocket.session.getBasicRemote().sendText(message);
}
}
}
} catch (IOException e) {
e.printStackTrace();
}

Loading…
Cancel
Save