Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit d97b5f86
authored
Mar 17, 2021
by
YaoYuHang
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge remote-tracking branch 'origin/back_end_dev' into back_end_dev
2 parents
ca97baf5
c2b0b085
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
45 additions
and
12 deletions
linkwe-admin/pom.xml
linkwe-admin/src/main/java/com/linkwechat/web/controller/wecom/WeTaskFissionController.java
linkwe-admin/src/main/resources/bootstrap.properties
linkwe-wecom/src/main/java/com/linkwechat/wecom/domain/WeCommunityNewGroup.java
linkwe-wecom/src/main/java/com/linkwechat/wecom/domain/vo/WeCommunityNewGroupVo.java
linkwe-wecom/src/main/java/com/linkwechat/wecom/service/impl/WeCommunityNewGroupServiceImpl.java
linkwe-wecom/src/main/resources/mapper/wecom/WeCommunityNewGroupMapper.xml
pom.xml
linkwe-admin/pom.xml
View file @
d97b5f8
...
@@ -83,6 +83,11 @@
...
@@ -83,6 +83,11 @@
<!-- <groupId>com.alibaba.cloud</groupId>-->
<!-- <groupId>com.alibaba.cloud</groupId>-->
<!-- <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>-->
<!-- <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>-->
<!-- </dependency>-->
<!-- </dependency>-->
<dependency>
<groupId>
javax.xml.bind
</groupId>
<artifactId>
jaxb-api
</artifactId>
</dependency>
</dependencies>
</dependencies>
<build>
<build>
...
...
linkwe-admin/src/main/java/com/linkwechat/web/controller/wecom/WeTaskFissionController.java
View file @
d97b5f8
...
@@ -64,6 +64,12 @@ public class WeTaskFissionController extends BaseController {
...
@@ -64,6 +64,12 @@ public class WeTaskFissionController extends BaseController {
@GetMapping
(
"/stat"
)
@GetMapping
(
"/stat"
)
public
AjaxResult
statistics
(
WeTaskFissionStatisticQO
weTaskFissionStatisticQO
)
{
public
AjaxResult
statistics
(
WeTaskFissionStatisticQO
weTaskFissionStatisticQO
)
{
//TODO 待完成
//TODO 待完成
//record表和complete_record表增加创建时间
//record表增加完成时间
//三个统计维度:
// 1. 日新增:每天裂变客户数
// 2. 日参与:每天扫码参加活动的客户数
// 3. 日完成:每天完成裂变任务的客户数
return
null
;
return
null
;
}
}
...
...
linkwe-admin/src/main/resources/bootstrap.properties
View file @
d97b5f8
spring.cloud.nacos.config.server-
addr
=
${NACOS_SERVER:119.45.28.29:10848}
spring.cloud.nacos.config.namespace
=
627a666a-76b2-42ad-a1b0-70a12d2c73fd
spring.application.name
=
link-wechat
spring.cloud.nacos.config.file-
extension
=
yaml
\ No newline at end of file
\ No newline at end of file
#spring.cloud.nacos.config.server-addr=
#spring.cloud.nacos.config.namespace=
#spring.application.name=
#spring.cloud.nacos.config.file-
extension
=
\ No newline at end of file
\ No newline at end of file
linkwe-wecom/src/main/java/com/linkwechat/wecom/domain/WeCommunityNewGroup.java
View file @
d97b5f8
...
@@ -85,4 +85,10 @@ public class WeCommunityNewGroup extends BaseEntity {
...
@@ -85,4 +85,10 @@ public class WeCommunityNewGroup extends BaseEntity {
@ApiModelProperty
(
"0 未删除 1 已删除"
)
@ApiModelProperty
(
"0 未删除 1 已删除"
)
private
int
delFlag
;
private
int
delFlag
;
/**
* 员工活码
*/
private
String
userQrCode
;
}
}
linkwe-wecom/src/main/java/com/linkwechat/wecom/domain/vo/WeCommunityNewGroupVo.java
View file @
d97b5f8
...
@@ -120,4 +120,9 @@ public class WeCommunityNewGroupVo {
...
@@ -120,4 +120,9 @@ public class WeCommunityNewGroupVo {
@ApiModelProperty
(
value
=
"创建时间"
,
hidden
=
true
)
@ApiModelProperty
(
value
=
"创建时间"
,
hidden
=
true
)
private
Date
createTime
=
new
Date
();
private
Date
createTime
=
new
Date
();
/**
* 个人码
*/
private
String
userQrCode
;
}
}
linkwe-wecom/src/main/java/com/linkwechat/wecom/service/impl/WeCommunityNewGroupServiceImpl.java
View file @
d97b5f8
...
@@ -73,7 +73,6 @@ public class WeCommunityNewGroupServiceImpl extends ServiceImpl<WeCommunityNewGr
...
@@ -73,7 +73,6 @@ public class WeCommunityNewGroupServiceImpl extends ServiceImpl<WeCommunityNewGr
WeExternalContactDto
.
WeContactWay
weContactWay
=
weEmpleCodeService
.
getWeContactWay
(
weEmpleCode
);
WeExternalContactDto
.
WeContactWay
weContactWay
=
weEmpleCodeService
.
getWeContactWay
(
weEmpleCode
);
WeExternalContactDto
qrCode
=
weEmpleCodeService
.
getQrCode
(
weContactWay
);
WeExternalContactDto
qrCode
=
weEmpleCodeService
.
getQrCode
(
weContactWay
);
//保存新客自动拉群信息
//保存新客自动拉群信息
WeCommunityNewGroup
communityNewGroup
=
new
WeCommunityNewGroup
();
WeCommunityNewGroup
communityNewGroup
=
new
WeCommunityNewGroup
();
communityNewGroup
.
setGroupCodeId
(
weGroupCode
.
getId
());
communityNewGroup
.
setGroupCodeId
(
weGroupCode
.
getId
());
...
@@ -84,14 +83,16 @@ public class WeCommunityNewGroupServiceImpl extends ServiceImpl<WeCommunityNewGr
...
@@ -84,14 +83,16 @@ public class WeCommunityNewGroupServiceImpl extends ServiceImpl<WeCommunityNewGr
communityNewGroup
.
setActivityScene
(
communityNewGroupDto
.
getActivityScene
());
communityNewGroup
.
setActivityScene
(
communityNewGroupDto
.
getActivityScene
());
communityNewGroup
.
setWelcomeMsg
(
communityNewGroupDto
.
getWelcomeMsg
());
communityNewGroup
.
setWelcomeMsg
(
communityNewGroupDto
.
getWelcomeMsg
());
communityNewGroup
.
setIsJoinConfirmFriends
(
communityNewGroupDto
.
getIsJoinConfirmFriends
());
communityNewGroup
.
setIsJoinConfirmFriends
(
communityNewGroupDto
.
getIsJoinConfirmFriends
());
communityNewGroup
.
setMediaId
(
communityNewGroup
.
getMediaId
());
communityNewGroup
.
setMediaId
(
communityNewGroupDto
.
getMediaId
());
communityNewGroup
.
setQrCode
(
communityNewGroupDto
.
getQrCode
());
if
(
qrCode
!=
null
)
{
communityNewGroup
.
setQrCode
(
qrCode
.
getQr_code
());
communityNewGroup
.
setConfigId
(
qrCode
.
getConfig_id
());
communityNewGroup
.
setConfigId
(
qrCode
.
getConfig_id
());
if
(
qrCode
!=
null
)
{
communityNewGroup
.
setUserQrCode
(
qrCode
.
getQr_code
());
}
}
if
(
this
.
save
(
communityNewGroup
))
{
if
(
this
.
save
(
communityNewGroup
))
{
if
(
CollectionUtil
.
isNotEmpty
(
weEmpleCode
.
getWeEmpleCodeUseScops
()))
{
if
(
CollectionUtil
.
isNotEmpty
(
weEmpleCode
.
getWeEmpleCodeUseScops
()))
{
weEmpleCode
.
getWeEmpleCodeUseScops
().
forEach
(
item
->
item
.
setEmpleCodeId
(
communityNewGroup
.
getNewGroupId
()));
weEmpleCode
.
getWeEmpleCodeUseScops
().
forEach
(
item
->
item
.
setEmpleCodeId
(
communityNewGroup
.
getNewGroupId
()));
iWeEmpleCodeUseScopService
.
saveBatch
(
weEmpleCode
.
getWeEmpleCodeUseScops
());
iWeEmpleCodeUseScopService
.
saveBatch
(
weEmpleCode
.
getWeEmpleCodeUseScops
());
...
@@ -192,7 +193,9 @@ public class WeCommunityNewGroupServiceImpl extends ServiceImpl<WeCommunityNewGr
...
@@ -192,7 +193,9 @@ public class WeCommunityNewGroupServiceImpl extends ServiceImpl<WeCommunityNewGr
WeExternalContactDto
.
WeContactWay
weContactWay
=
weEmpleCodeService
.
getWeContactWay
(
weEmpleCode
);
WeExternalContactDto
.
WeContactWay
weContactWay
=
weEmpleCodeService
.
getWeContactWay
(
weEmpleCode
);
try
{
try
{
weExternalContactClient
.
updateContactWay
(
weContactWay
);
WeExternalContactDto
weExternalContactDto
=
weExternalContactClient
.
updateContactWay
(
weContactWay
);
System
.
out
.
println
(
weExternalContactDto
.
getQr_code
());
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
}
}
...
@@ -205,7 +208,7 @@ public class WeCommunityNewGroupServiceImpl extends ServiceImpl<WeCommunityNewGr
...
@@ -205,7 +208,7 @@ public class WeCommunityNewGroupServiceImpl extends ServiceImpl<WeCommunityNewGr
communityNewGroup
.
setIsJoinConfirmFriends
(
communityNewGroupDto
.
getIsJoinConfirmFriends
());
communityNewGroup
.
setIsJoinConfirmFriends
(
communityNewGroupDto
.
getIsJoinConfirmFriends
());
communityNewGroup
.
setMediaId
(
communityNewGroupDto
.
getMediaId
());
communityNewGroup
.
setMediaId
(
communityNewGroupDto
.
getMediaId
());
communityNewGroup
.
setGroupCodeId
(
communityNewGroupDto
.
getGroupCodeId
());
communityNewGroup
.
setGroupCodeId
(
communityNewGroupDto
.
getGroupCodeId
());
communityNewGroup
.
setQrCode
(
communityNewGroupDto
.
getQrCode
());
//更新新客自动拉群信息
//更新新客自动拉群信息
if
(
this
.
updateById
(
communityNewGroup
))
{
if
(
this
.
updateById
(
communityNewGroup
))
{
if
(
CollectionUtil
.
isNotEmpty
(
weEmpleCode
.
getWeEmpleCodeUseScops
()))
{
if
(
CollectionUtil
.
isNotEmpty
(
weEmpleCode
.
getWeEmpleCodeUseScops
()))
{
...
...
linkwe-wecom/src/main/resources/mapper/wecom/WeCommunityNewGroupMapper.xml
View file @
d97b5f8
...
@@ -19,7 +19,8 @@
...
@@ -19,7 +19,8 @@
is_join_confirm_friends,
is_join_confirm_friends,
media_id,
media_id,
join_friend_nums,
join_friend_nums,
config_id
config_id,
user_qr_code
FROM we_community_new_group
FROM we_community_new_group
</sql>
</sql>
<update
id=
"batchRemoveWeCommunityNewGroupIds"
>
<update
id=
"batchRemoveWeCommunityNewGroupIds"
>
...
...
pom.xml
View file @
d97b5f8
...
@@ -40,6 +40,7 @@
...
@@ -40,6 +40,7 @@
<vertx.version>
4.0.0
</vertx.version>
<vertx.version>
4.0.0
</vertx.version>
<netty-version>
4.1.49.Final
</netty-version>
<netty-version>
4.1.49.Final
</netty-version>
<nacos.version>
2.2.5.RELEASE
</nacos.version>
<nacos.version>
2.2.5.RELEASE
</nacos.version>
<jaxb.version>
2.3.1
</jaxb.version>
</properties>
</properties>
<!-- 依赖声明 -->
<!-- 依赖声明 -->
...
@@ -269,6 +270,12 @@
...
@@ -269,6 +270,12 @@
<artifactId>
spring-cloud-starter-alibaba-nacos-discovery
</artifactId>
<artifactId>
spring-cloud-starter-alibaba-nacos-discovery
</artifactId>
<version>
${nacos.version}
</version>
<version>
${nacos.version}
</version>
</dependency>
</dependency>
<dependency>
<groupId>
javax.xml.bind
</groupId>
<artifactId>
jaxb-api
</artifactId>
<version>
${jaxb.version}
</version>
</dependency>
</dependencies>
</dependencies>
</dependencyManagement>
</dependencyManagement>
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment