Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
张云鹏
/
uc-consumer
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
d59c42ee
...
d59c42eed3e0385d6b135ce1d57c81694f12e164
authored
2021-11-16 21:11:06 +0800
by
xianghan@topdraw.cn
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复测试缺陷
1 parent
3cb72785
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
8 deletions
src/main/java/com/topdraw/business/basicdata/member/profile/domain/MemberProfile.java
src/main/java/com/topdraw/business/basicdata/member/profile/service/dto/MemberProfileDTO.java
src/main/java/com/topdraw/resttemplate/RestTemplateClient.java
src/main/resources/config/application-dev.yml
src/main/resources/config/application.yml
src/main/java/com/topdraw/business/basicdata/member/profile/domain/MemberProfile.java
View file @
d59c42e
...
...
@@ -29,6 +29,10 @@ public class MemberProfile implements Serializable {
@Column
(
name
=
"id"
)
private
Long
id
;
// 手机号
@Column
(
name
=
"phone"
)
private
String
phone
;
// 会员id
@Column
(
name
=
"member_id"
,
nullable
=
false
)
private
Long
memberId
;
...
...
src/main/java/com/topdraw/business/basicdata/member/profile/service/dto/MemberProfileDTO.java
View file @
d59c42e
...
...
@@ -2,6 +2,7 @@ package com.topdraw.business.basicdata.member.profile.service.dto;
import
lombok.Data
;
import
javax.persistence.Column
;
import
java.io.Serializable
;
import
java.sql.Timestamp
;
...
...
@@ -19,6 +20,9 @@ public class MemberProfileDTO implements Serializable {
// 会员id
private
Long
memberId
;
// 手机号
private
String
phone
;
// 姓名
private
String
realname
;
...
...
src/main/java/com/topdraw/resttemplate/RestTemplateClient.java
View file @
d59c42e
...
...
@@ -47,6 +47,7 @@ public class RestTemplateClient {
String
content
=
JSON
.
toJSONString
(
dataSyncMsg
);
HashMap
<
Object
,
Object
>
objectObjectHashMap
=
new
HashMap
<>();
objectObjectHashMap
.
put
(
"content"
,
content
);
log
.
info
(
"===>>>"
+
content
);
restTemplate
.
postForEntity
(
url
,
objectObjectHashMap
,
String
.
class
);
/* ResponseEntity<String> responseEntity = restTemplate.postForEntity(url, objectObjectHashMap, String.class);
if (responseEntity.getStatusCode().is2xxSuccessful()) {
...
...
src/main/resources/config/application-dev.yml
View file @
d59c42e
...
...
@@ -60,15 +60,11 @@ spring:
timeout
:
5000
rabbitmq
:
host
:
47.100.212.170
# rabbitmq的连接地址
# host: 122.112.214.149 # rabbitmq的连接地址
#host: 139.196.192.242 # rabbitmq的连接地址
port
:
5672
# rabbitmq的连接端口号
#virtual-host: /member_center # rabbitmq的虚拟host
#username: member_center # rabbitmq的用户名
#password: Tjlh@2021 # rabbitmq的密码
virtual-host
:
test
# rabbitmq的虚拟host
username
:
omo_test
# rabbitmq的用户名
password
:
omo_test
# rabbitmq的密码
virtual-host
:
/
# rabbitmq的虚拟host
username
:
test
# rabbitmq的用户名
password
:
test
# rabbitmq的密码
publisher-confirms
:
true
#如果对异步消息需要回调必须设置为true
#jwt。依赖的common中有需要jwt的部分属性。
...
...
src/main/resources/config/application.yml
View file @
d59c42e
server
:
port
:
844
9
port
:
844
8
spring
:
application
:
...
...
Please
register
or
sign in
to post a comment