Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
O
oms-ci-test
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
test-ci
oms-ci-test
Commits
4f2a98b5
提交
4f2a98b5
authored
6月 12, 2023
作者:
panda
浏览文件
操作
浏览文件
下载
差异文件
Merge remote-tracking branch 'origin/develop' into develop
上级
46f95f6f
9e1663d0
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
15 行增加
和
1 行删除
+15
-1
kustomization.yaml
kustomization/overlays/dev/kustomization.yaml
+1
-1
PmsClient.java
src/main/java/com/mmc/oms/client/PmsClient.java
+14
-0
没有找到文件。
kustomization/overlays/dev/kustomization.yaml
浏览文件 @
4f2a98b5
...
@@ -14,4 +14,4 @@ patches:
...
@@ -14,4 +14,4 @@ patches:
images
:
images
:
-
name
:
REGISTRY/NAMESPACE/IMAGE:TAG
-
name
:
REGISTRY/NAMESPACE/IMAGE:TAG
newName
:
mmc-registry.cn-shenzhen.cr.aliyuncs.com/sharefly-dev/oms
newName
:
mmc-registry.cn-shenzhen.cr.aliyuncs.com/sharefly-dev/oms
newTag
:
ab651c091ed290c83cebd96a944073317144fd8f
newTag
:
8eb64c025055bfd59beaeda23979e963b24d9b95
src/main/java/com/mmc/oms/client/PmsClient.java
浏览文件 @
4f2a98b5
...
@@ -12,6 +12,8 @@ import io.swagger.annotations.ApiOperation;
...
@@ -12,6 +12,8 @@ import io.swagger.annotations.ApiOperation;
import
io.swagger.annotations.ApiParam
;
import
io.swagger.annotations.ApiParam
;
import
io.swagger.annotations.ApiResponse
;
import
io.swagger.annotations.ApiResponse
;
import
io.swagger.annotations.ApiResponses
;
import
io.swagger.annotations.ApiResponses
;
import
org.apache.commons.lang.StringUtils
;
import
org.omg.PortableInterceptor.SYSTEM_EXCEPTION
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.http.*
;
import
org.springframework.http.*
;
...
@@ -112,4 +114,16 @@ public class PmsClient {
...
@@ -112,4 +114,16 @@ public class PmsClient {
}
}
return
JSONObject
.
parseObject
(
result
,
ServiceDTO
.
class
);
return
JSONObject
.
parseObject
(
result
,
ServiceDTO
.
class
);
}
}
public
List
<
ServiceDTO
>
feignQueryWorkServiceListById
(
List
<
Integer
>
ids
){
HttpHeaders
headers
=
new
HttpHeaders
();
headers
.
setContentType
(
MediaType
.
APPLICATION_JSON
);
HttpEntity
<
String
>
entity
=
new
HttpEntity
<>(
JSONObject
.
toJSONString
(
ids
),
headers
);
ResponseEntity
<
String
>
responseEntity
=
restTemplate
.
exchange
(
pmsAppUri
+
"backstage/work/feignQueryWorkServiceListById"
,
HttpMethod
.
POST
,
entity
,
String
.
class
);
if
(
StringUtils
.
isBlank
(
responseEntity
.
getBody
()))
{
return
null
;
}
List
<
ServiceDTO
>
serviceDTOS
=
JSONArray
.
parseArray
(
responseEntity
.
getBody
(),
ServiceDTO
.
class
);
return
serviceDTOS
;
}
}
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论