提交 3fa49092 authored 作者: xinjunguo's avatar xinjunguo

--no commit message

上级 2b44be5a
...@@ -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);
} }
...@@ -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 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论