Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
haoban3.0
haoban-manage3.0
Commits
f63c6585
Commit
f63c6585
authored
Jun 22, 2020
by
qwmqiuwenmin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
cafc7b39
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
37 additions
and
3 deletions
+37
-3
MemberUnionidRelatedDTO.java
...om/gic/haoban/manage/api/dto/MemberUnionidRelatedDTO.java
+10
-0
MemberUnionidRelated.java
...ic/haoban/manage/service/entity/MemberUnionidRelated.java
+11
-0
MemberUnionidRelatedApiServiceImpl.java
.../service/out/impl/MemberUnionidRelatedApiServiceImpl.java
+2
-0
MemberUnionidRelatedMapper.xml
.../src/main/resources/mapper/MemberUnionidRelatedMapper.xml
+14
-3
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/dto/MemberUnionidRelatedDTO.java
View file @
f63c6585
...
...
@@ -30,6 +30,8 @@ public class MemberUnionidRelatedDTO implements Serializable{
private
String
externalName
;
private
String
addCreateTime
;
private
String
storeId
;
private
Date
createTime
;
...
...
@@ -157,5 +159,13 @@ public class MemberUnionidRelatedDTO implements Serializable{
this
.
enterpriseId
=
enterpriseId
;
}
public
String
getStoreId
()
{
return
storeId
;
}
public
void
setStoreId
(
String
storeId
)
{
this
.
storeId
=
storeId
;
}
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/entity/MemberUnionidRelated.java
View file @
f63c6585
...
...
@@ -29,6 +29,8 @@ public class MemberUnionidRelated implements Serializable {
private
String
externalName
;
private
String
addCreateTime
;
private
String
storeId
;
private
static
final
long
serialVersionUID
=
1L
;
...
...
@@ -136,6 +138,14 @@ public class MemberUnionidRelated implements Serializable {
this
.
enterpriseId
=
enterpriseId
;
}
public
String
getStoreId
()
{
return
storeId
;
}
public
void
setStoreId
(
String
storeId
)
{
this
.
storeId
=
storeId
;
}
}
\ No newline at end of file
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/MemberUnionidRelatedApiServiceImpl.java
View file @
f63c6585
...
...
@@ -340,6 +340,7 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA
MemberUnionidRelatedDTO
exsitDTO
=
memberUnionRelatedService
.
getByParams
(
dto
.
getWxUserId
(),
mainStore
.
getEnterpriseId
(),
name
,
createTime
);
String
uuid
=
""
;
if
(
exsitDTO
==
null
){
dto
.
setStoreId
(
r
.
getStoreId
());
uuid
=
memberUnionRelatedService
.
addMemberUnionidRelated
(
dto
);
}
else
{
//如果是自建更新uuid
...
...
@@ -497,6 +498,7 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA
dto
.
setMemberId
(
dto
.
getMemberId
());
//更新对外联系人id
dto
.
setSelfExternalUserid
(
selfExternalUserId
);
dto
.
setStoreId
(
r
.
getStoreId
());
uuid
=
memberUnionRelatedService
.
addMemberUnionidRelated
(
dto
);
}
else
{
return
""
;
...
...
haoban-manage3-service/src/main/resources/mapper/MemberUnionidRelatedMapper.xml
View file @
f63c6585
...
...
@@ -13,12 +13,13 @@
<result
column=
"self_external_userid"
property=
"selfExternalUserid"
jdbcType=
"VARCHAR"
/>
<result
column=
"add_create_time"
property=
"addCreateTime"
jdbcType=
"VARCHAR"
/>
<result
column=
"external_name"
property=
"externalName"
jdbcType=
"VARCHAR"
/>
<result
column=
"store_id"
property=
"stoerId"
jdbcType=
"VARCHAR"
/>
<result
column=
"create_time"
property=
"createTime"
jdbcType=
"TIMESTAMP"
/>
<result
column=
"update_time"
property=
"updateTime"
jdbcType=
"TIMESTAMP"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
member_unionid_related_id, member_id, unionid, wx_enterprise_id, status_flag, external_userid,
wx_user_id, create_time, update_time,add_create_time,self_external_userid,external_name,enterprise_id
wx_user_id, create_time, update_time,add_create_time,self_external_userid,external_name,enterprise_id
,store_id
</sql>
<select
id=
"selectByPrimaryKey"
resultMap=
"BaseResultMap"
parameterType=
"java.lang.String"
>
select
...
...
@@ -34,11 +35,11 @@
insert into tab_haoban_member_unionid_related (member_unionid_related_id, member_id,
unionid, wx_enterprise_id, status_flag,
external_userid, wx_user_id, create_time,
update_time,add_create_time,self_external_userid,external_name,enterprise_id)
update_time,add_create_time,self_external_userid,external_name,enterprise_id
,store_id
)
values (#{memberUnionidRelatedId,jdbcType=VARCHAR}, #{memberId,jdbcType=VARCHAR},
#{unionid,jdbcType=VARCHAR}, #{wxEnterpriseId,jdbcType=VARCHAR}, #{statusFlag,jdbcType=INTEGER},
#{externalUserid,jdbcType=VARCHAR}, #{wxUserId,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP},#{addCreateTime},#{selfExternalUserid},#{externalName},#{enterpriseId})
#{updateTime,jdbcType=TIMESTAMP},#{addCreateTime},#{selfExternalUserid},#{externalName},#{enterpriseId}
,#{storeId}
)
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.gic.haoban.manage.service.entity.MemberUnionidRelated"
>
insert into tab_haoban_member_unionid_related
...
...
@@ -82,6 +83,9 @@
<if
test=
"externalName != null"
>
external_name,
</if>
<if
test=
"storeId != null"
>
store_id,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"memberUnionidRelatedId != null"
>
...
...
@@ -123,6 +127,9 @@
<if
test=
"externalName != null"
>
#{externalName},
</if>
<if
test=
"storeId != null"
>
#{storeId},
</if>
</trim>
</insert>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.gic.haoban.manage.service.entity.MemberUnionidRelated"
>
...
...
@@ -158,6 +165,9 @@
<if
test=
"externalName != null"
>
external_name = #{externalName,jdbcType=VARCHAR},
</if>
<if
test=
"storeId != null"
>
store_id = #{storeId,jdbcType=VARCHAR},
</if>
<if
test=
"createTime != null"
>
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
...
...
@@ -180,6 +190,7 @@
update_time = #{updateTime,jdbcType=TIMESTAMP},
self_external_userid = #{selfExternalUserid,jdbcType=VARCHAR},
external_name = #{externalName,jdbcType=VARCHAR},
store_id = #{stoerId,jdbcType=VARCHAR},
add_create_time = #{addCreateTime,jdbcType=VARCHAR}
where member_unionid_related_id = #{memberUnionidRelatedId,jdbcType=VARCHAR}
</update>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment