Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
payment
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
iuav
payment
Commits
39648be2
提交
39648be2
authored
6月 17, 2023
作者:
余乾开
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'develop'
上级
6c1fe3a5
c26c3fa1
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
29 行增加
和
6 行删除
+29
-6
configMap.yaml
kustomization/base/configMap.yaml
+2
-0
deployment.yaml
kustomization/base/deployment.yaml
+19
-2
kustomization.yaml
kustomization/overlays/dev/kustomization.yaml
+1
-1
JsonUtil.java
src/main/java/com/mmc/payment/common/util/JsonUtil.java
+3
-1
RepoCashServiceImpl.java
...ava/com/mmc/payment/service/Impl/RepoCashServiceImpl.java
+4
-2
没有找到文件。
kustomization/base/configMap.yaml
浏览文件 @
39648be2
...
@@ -5,3 +5,5 @@ metadata:
...
@@ -5,3 +5,5 @@ metadata:
namespace
:
default
namespace
:
default
data
:
data
:
SPRING_PROFILES_ACTIVE
:
default
SPRING_PROFILES_ACTIVE
:
default
SW_AGENT_COLLECTOR_BACKEND_SERVICES
:
"
default-oap.skywalking-swck-system:11800"
SW_AGENT_NAME
:
payment
kustomization/base/deployment.yaml
浏览文件 @
39648be2
...
@@ -14,6 +14,7 @@ spec:
...
@@ -14,6 +14,7 @@ spec:
metadata
:
metadata
:
labels
:
labels
:
app
:
payment
app
:
payment
swck-java-agent-injected
:
'
true'
spec
:
spec
:
containers
:
containers
:
-
name
:
payment
-
name
:
payment
...
@@ -21,6 +22,9 @@ spec:
...
@@ -21,6 +22,9 @@ spec:
volumeMounts
:
volumeMounts
:
-
name
:
log-of-app
-
name
:
log-of-app
mountPath
:
/var/log/app
mountPath
:
/var/log/app
-
name
:
localtime
mountPath
:
/etc/localtime
readOnly
:
true
resources
:
resources
:
limits
:
limits
:
memory
:
1024Mi
memory
:
1024Mi
...
@@ -33,7 +37,20 @@ spec:
...
@@ -33,7 +37,20 @@ spec:
configMapKeyRef
:
configMapKeyRef
:
name
:
payment-map
name
:
payment-map
key
:
SPRING_PROFILES_ACTIVE
key
:
SPRING_PROFILES_ACTIVE
-
name
:
SW_AGENT_COLLECTOR_BACKEND_SERVICES
valueFrom
:
configMapKeyRef
:
name
:
payment-map
key
:
SW_AGENT_COLLECTOR_BACKEND_SERVICES
-
name
:
SW_AGENT_NAME
valueFrom
:
configMapKeyRef
:
name
:
payment-map
key
:
SW_AGENT_NAME
volumes
:
volumes
:
-
name
:
log-of-app
-
name
:
log-of-app
hostPath
:
hostPath
:
path
:
/var/log/app
path
:
/var/log/app
\ No newline at end of file
-
name
:
localtime
hostPath
:
path
:
/etc/localtime
\ No newline at end of file
kustomization/overlays/dev/kustomization.yaml
浏览文件 @
39648be2
...
@@ -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/payment
newName
:
mmc-registry.cn-shenzhen.cr.aliyuncs.com/sharefly-dev/payment
newTag
:
100991a5fb3e8db73695404a54af20b579da421f
newTag
:
f5eadfeec3ddfc5625a89ed26a6e25ffd58ace2a
src/main/java/com/mmc/payment/common/util/JsonUtil.java
浏览文件 @
39648be2
...
@@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSON;
...
@@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSON;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.serializer.SerializerFeature
;
import
com.alibaba.fastjson.serializer.SerializerFeature
;
import
lombok.extern.slf4j.Slf4j
;
import
java.io.*
;
import
java.io.*
;
import
java.util.List
;
import
java.util.List
;
...
@@ -13,12 +14,13 @@ import java.util.List;
...
@@ -13,12 +14,13 @@ import java.util.List;
* @Date 2023/5/23 19:31
* @Date 2023/5/23 19:31
* @Version 1.0
* @Version 1.0
*/
*/
@Slf4j
public
class
JsonUtil
{
public
class
JsonUtil
{
public
static
void
main
(
String
[]
args
)
{
public
static
void
main
(
String
[]
args
)
{
String
array
=
"[1,24,23]"
;
String
array
=
"[1,24,23]"
;
List
<
Integer
>
list
=
JSONArray
.
parseArray
(
array
,
Integer
.
class
);
List
<
Integer
>
list
=
JSONArray
.
parseArray
(
array
,
Integer
.
class
);
System
.
out
.
println
(
list
.
get
(
2
));
log
.
info
(
String
.
valueOf
(
list
.
get
(
2
)
));
}
}
/**
/**
...
...
src/main/java/com/mmc/payment/service/Impl/RepoCashServiceImpl.java
浏览文件 @
39648be2
...
@@ -30,6 +30,7 @@ import com.mmc.payment.model.vo.repo.RepoOrderPayVO;
...
@@ -30,6 +30,7 @@ import com.mmc.payment.model.vo.repo.RepoOrderPayVO;
import
com.mmc.payment.model.vo.wallet.WalletUsersVO
;
import
com.mmc.payment.model.vo.wallet.WalletUsersVO
;
import
com.mmc.payment.service.RepoCashService
;
import
com.mmc.payment.service.RepoCashService
;
import
io.jsonwebtoken.lang.Collections
;
import
io.jsonwebtoken.lang.Collections
;
import
lombok.extern.slf4j.Slf4j
;
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.data.redis.core.StringRedisTemplate
;
import
org.springframework.data.redis.core.StringRedisTemplate
;
...
@@ -52,6 +53,7 @@ import java.util.stream.Collectors;
...
@@ -52,6 +53,7 @@ import java.util.stream.Collectors;
* @Author small @Date 2023/5/24 10:06 @Version 1.0
* @Author small @Date 2023/5/24 10:06 @Version 1.0
*/
*/
@Service
@Service
@Slf4j
public
class
RepoCashServiceImpl
implements
RepoCashService
{
public
class
RepoCashServiceImpl
implements
RepoCashService
{
@Autowired
@Autowired
...
@@ -101,7 +103,7 @@ public class RepoCashServiceImpl implements RepoCashService {
...
@@ -101,7 +103,7 @@ public class RepoCashServiceImpl implements RepoCashService {
t
.
setUserName
(
account
.
getUserName
());
t
.
setUserName
(
account
.
getUserName
());
}
}
});
});
System
.
out
.
println
(
list
);
log
.
info
(
String
.
valueOf
(
list
)
);
List
<
RepoCashDTO
>
data
=
List
<
RepoCashDTO
>
data
=
list
.
stream
()
list
.
stream
()
...
@@ -494,7 +496,7 @@ public class RepoCashServiceImpl implements RepoCashService {
...
@@ -494,7 +496,7 @@ public class RepoCashServiceImpl implements RepoCashService {
HttpEntity
<
MultiValueMap
<
String
,
Object
>>
formEntity
=
new
HttpEntity
<
MultiValueMap
<
String
,
Object
>>(
headers
);
HttpEntity
<
MultiValueMap
<
String
,
Object
>>
formEntity
=
new
HttpEntity
<
MultiValueMap
<
String
,
Object
>>(
headers
);
ResponseEntity
<
String
>
exchange
=
restTemplate
.
exchange
(
omsUrl
+
"RentalOrders/orderStatusChanges?orderNo="
+
orderNo
+
"&tranStatus="
+
200
,
ResponseEntity
<
String
>
exchange
=
restTemplate
.
exchange
(
omsUrl
+
"RentalOrders/orderStatusChanges?orderNo="
+
orderNo
+
"&tranStatus="
+
200
,
HttpMethod
.
GET
,
formEntity
,
String
.
class
);
HttpMethod
.
GET
,
formEntity
,
String
.
class
);
System
.
out
.
println
(
exchange
);
log
.
info
(
String
.
valueOf
(
exchange
)
);
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论