Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
Z
zzfszzy
Project
Project
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
Graph
比较
统计图
议题
0
议题
0
列表
看板
标记
Milestones
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
注册表
注册表
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
svn
zzfszzy
Commits
3fa49092
提交
3fa49092
authored
9月 18, 2019
作者:
xinjunguo
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
--no commit message
上级
2b44be5a
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
19 行增加
和
0 行删除
+19
-0
OrganClient.java
...n/java/com/zrqx/resource/fg/client/organ/OrganClient.java
+11
-0
OrganClientHystric.java
...com/zrqx/resource/fg/client/organ/OrganClientHystric.java
+8
-0
没有找到文件。
com.zrqx.resource/src/main/java/com/zrqx/resource/fg/client/organ/OrganClient.java
浏览文件 @
3fa49092
...
@@ -5,6 +5,8 @@ import org.springframework.web.bind.annotation.GetMapping;
...
@@ -5,6 +5,8 @@ import org.springframework.web.bind.annotation.GetMapping;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
com.zrqx.core.constant.member.MemberRequestPath
;
import
com.zrqx.core.constant.member.MemberRequestPath
;
import
com.zrqx.core.constant.resource.ResourceRequestPath
;
import
com.zrqx.core.model.member.Organ
;
import
com.zrqx.core.util.response.CallBack
;
import
com.zrqx.core.util.response.CallBack
;
/**
/**
...
@@ -23,4 +25,13 @@ public interface OrganClient {
...
@@ -23,4 +25,13 @@ public interface OrganClient {
*/
*/
@GetMapping
(
MemberRequestPath
.
SERVICE
+
MemberRequestPath
.
ORGAN_DIYTYPES
)
@GetMapping
(
MemberRequestPath
.
SERVICE
+
MemberRequestPath
.
ORGAN_DIYTYPES
)
CallBack
<
String
>
getCurrentOrganByMember
(
@PathVariable
(
"organId"
)
Integer
organId
);
CallBack
<
String
>
getCurrentOrganByMember
(
@PathVariable
(
"organId"
)
Integer
organId
);
/**
* 根据机构id查询机构
* @return
* @author ycw
* @date: 2019年2月14日 上午9:21:27
*/
@GetMapping
(
MemberRequestPath
.
ORGAN
+
ResourceRequestPath
.
OID
)
CallBack
<
Organ
>
getById
(
@PathVariable
(
ResourceRequestPath
.
OBJECTID
)
Integer
oid
);
}
}
com.zrqx.resource/src/main/java/com/zrqx/resource/fg/client/organ/OrganClientHystric.java
浏览文件 @
3fa49092
...
@@ -4,6 +4,7 @@ import org.slf4j.Logger;
...
@@ -4,6 +4,7 @@ import org.slf4j.Logger;
import
org.slf4j.LoggerFactory
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.stereotype.Component
;
import
org.springframework.stereotype.Component
;
import
com.zrqx.core.model.member.Organ
;
import
com.zrqx.core.util.response.CallBack
;
import
com.zrqx.core.util.response.CallBack
;
@Component
@Component
...
@@ -17,4 +18,11 @@ public class OrganClientHystric implements OrganClient {
...
@@ -17,4 +18,11 @@ public class OrganClientHystric implements OrganClient {
logger
.
info
(
"通过机构id:"
+
organId
+
"调用机构服务失败"
);
logger
.
info
(
"通过机构id:"
+
organId
+
"调用机构服务失败"
);
return
CallBack
.
fail
();
return
CallBack
.
fail
();
}
}
@Override
public
CallBack
<
Organ
>
getById
(
Integer
organId
)
{
logger
.
info
(
"通过机构id:"
+
organId
+
"调用机构服务失败"
);
return
CallBack
.
fail
();
}
}
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论