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 48d4d228
authored
Mar 12, 2021
by
18356073052
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix some bugs
1 parent
bafae4e0
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
27 additions
and
8 deletions
linkwe-wecom/src/main/java/com/linkwechat/wecom/domain/WeCommunityNewGroup.java
linkwe-wecom/src/main/java/com/linkwechat/wecom/domain/dto/WeCommunityNewGroupDto.java
linkwe-wecom/src/main/java/com/linkwechat/wecom/mapper/WeCommunityNewGroupMapper.java
linkwe-wecom/src/main/java/com/linkwechat/wecom/service/impl/WeCommunityNewGroupServiceImpl.java
linkwe-wecom/src/main/resources/mapper/wecom/WeCommunityNewGroupMapper.xml
linkwe-wecom/src/main/java/com/linkwechat/wecom/domain/WeCommunityNewGroup.java
View file @
48d4d22
...
@@ -40,6 +40,12 @@ public class WeCommunityNewGroup extends BaseEntity {
...
@@ -40,6 +40,12 @@ public class WeCommunityNewGroup extends BaseEntity {
private
String
welcomeMsg
;
private
String
welcomeMsg
;
/**
/**
* 新增联系方式的配置id
*/
@ApiModelProperty
(
"新增联系方式的配置id"
)
private
String
configId
;
/**
* 二维码链接
* 二维码链接
*/
*/
@ApiModelProperty
(
"二维码链接"
)
@ApiModelProperty
(
"二维码链接"
)
...
...
linkwe-wecom/src/main/java/com/linkwechat/wecom/domain/dto/WeCommunityNewGroupDto.java
View file @
48d4d22
...
@@ -59,6 +59,12 @@ public class WeCommunityNewGroupDto {
...
@@ -59,6 +59,12 @@ public class WeCommunityNewGroupDto {
private
Boolean
isJoinConfirmFriends
;
private
Boolean
isJoinConfirmFriends
;
/**
/**
* 新增联系方式的配置id
*/
@ApiModelProperty
(
"新增联系方式的配置id"
)
private
String
configId
;
/**
* 二维码链接
* 二维码链接
*/
*/
@ApiModelProperty
(
"二维码链接"
)
@ApiModelProperty
(
"二维码链接"
)
...
...
linkwe-wecom/src/main/java/com/linkwechat/wecom/mapper/WeCommunityNewGroupMapper.java
View file @
48d4d22
...
@@ -18,14 +18,18 @@ public interface WeCommunityNewGroupMapper extends BaseMapper<WeCommunityNewGrou
...
@@ -18,14 +18,18 @@ public interface WeCommunityNewGroupMapper extends BaseMapper<WeCommunityNewGrou
/**
/**
* 查询新客自动拉群列表
* 查询新客自动拉群列表
*
*
* @param communityNewGroup 搜索信息
* @param employCodeName 员工名称
* @return {@link WeCommunityNewGroup}s
* @param createBy 创建人
* @param beginTime 开始时间
* @param endTime 结束时间
* @return {WeCommunityNewGroupVo}s 列表
*/
*/
List
<
WeCommunityNewGroupVo
>
selectWeCommunityNewGroupList
(
@Param
(
"empl
eCodeName"
)
String
emple
CodeName
,
@Param
(
"createBy"
)
String
createBy
List
<
WeCommunityNewGroupVo
>
selectWeCommunityNewGroupList
(
@Param
(
"empl
oyCodeName"
)
String
employ
CodeName
,
@Param
(
"createBy"
)
String
createBy
,
@Param
(
"beginTime"
)
String
beginTime
,
@Param
(
"endTime"
)
String
endTime
);
,
@Param
(
"beginTime"
)
String
beginTime
,
@Param
(
"endTime"
)
String
endTime
);
/**
/**
* 获取新客自动拉群详细信息
* 获取新客自动拉群详细信息
*
* @param newGroupId 主键id
* @param newGroupId 主键id
* @return {@link WeCommunityNewGroupVo} 自动拉群信息
* @return {@link WeCommunityNewGroupVo} 自动拉群信息
*/
*/
...
...
linkwe-wecom/src/main/java/com/linkwechat/wecom/service/impl/WeCommunityNewGroupServiceImpl.java
View file @
48d4d22
...
@@ -85,6 +85,7 @@ public class WeCommunityNewGroupServiceImpl extends ServiceImpl<WeCommunityNewGr
...
@@ -85,6 +85,7 @@ public class WeCommunityNewGroupServiceImpl extends ServiceImpl<WeCommunityNewGr
if
(
qrCode
!=
null
)
{
if
(
qrCode
!=
null
)
{
communityNewGroup
.
setQrCode
(
qrCode
.
getQr_code
());
communityNewGroup
.
setQrCode
(
qrCode
.
getQr_code
());
communityNewGroup
.
setConfigId
(
qrCode
.
getConfig_id
());
}
}
if
(
this
.
save
(
communityNewGroup
))
{
if
(
this
.
save
(
communityNewGroup
))
{
...
@@ -112,6 +113,7 @@ public class WeCommunityNewGroupServiceImpl extends ServiceImpl<WeCommunityNewGr
...
@@ -112,6 +113,7 @@ public class WeCommunityNewGroupServiceImpl extends ServiceImpl<WeCommunityNewGr
weEmpleCode
.
setWeEmpleCodeTags
(
communityNewGroupDto
.
getWeEmpleCodeTags
());
weEmpleCode
.
setWeEmpleCodeTags
(
communityNewGroupDto
.
getWeEmpleCodeTags
());
weEmpleCode
.
setQrCode
(
communityNewGroupDto
.
getQrCode
());
weEmpleCode
.
setQrCode
(
communityNewGroupDto
.
getQrCode
());
weEmpleCode
.
setMediaId
(
communityNewGroupDto
.
getMediaId
());
weEmpleCode
.
setMediaId
(
communityNewGroupDto
.
getMediaId
());
weEmpleCode
.
setConfigId
(
communityNewGroupDto
.
getConfigId
());
return
weEmpleCode
;
return
weEmpleCode
;
}
}
...
@@ -174,7 +176,7 @@ public class WeCommunityNewGroupServiceImpl extends ServiceImpl<WeCommunityNewGr
...
@@ -174,7 +176,7 @@ public class WeCommunityNewGroupServiceImpl extends ServiceImpl<WeCommunityNewGr
//查询新客自动拉群信息
//查询新客自动拉群信息
WeCommunityNewGroup
communityNewGroup
=
weCommunityNewGroupMapper
.
selectOne
(
new
LambdaQueryWrapper
<
WeCommunityNewGroup
>()
WeCommunityNewGroup
communityNewGroup
=
weCommunityNewGroupMapper
.
selectOne
(
new
LambdaQueryWrapper
<
WeCommunityNewGroup
>()
.
eq
(
WeCommunityNewGroup:
:
getGroupCodeId
,
communityNewGroupDto
.
getGroupCodeId
()));
.
eq
(
WeCommunityNewGroup:
:
getGroupCodeId
,
communityNewGroupDto
.
getGroupCodeId
()));
// WeCommunityNewGroup communityNewGroup = weCommunityNewGroupMapper.selectById(communityNewGroupDto.getGroupCodeId());
// WeCommunityNewGroup communityNewGroup = weCommunityNewGroupMapper.selectById(communityNewGroupDto.getGroupCodeId());
if
(
null
==
communityNewGroup
)
{
if
(
null
==
communityNewGroup
)
{
throw
new
WeComException
(
"信息不存在!"
);
throw
new
WeComException
(
"信息不存在!"
);
...
...
linkwe-wecom/src/main/resources/mapper/wecom/WeCommunityNewGroupMapper.xml
View file @
48d4d22
...
@@ -18,7 +18,8 @@
...
@@ -18,7 +18,8 @@
qr_code,
qr_code,
is_join_confirm_friends,
is_join_confirm_friends,
media_id,
media_id,
join_friend_nums
join_friend_nums,
config_id
FROM we_community_new_group
FROM we_community_new_group
</sql>
</sql>
<update
id=
"batchRemoveWeCommunityNewGroupIds"
>
<update
id=
"batchRemoveWeCommunityNewGroupIds"
>
...
@@ -36,8 +37,8 @@
...
@@ -36,8 +37,8 @@
<include
refid=
"selectSql"
/>
<include
refid=
"selectSql"
/>
<where>
<where>
del_flag = 0
del_flag = 0
<if
test=
"empl
eCodeName!=null and emple
CodeName!=''"
>
<if
test=
"empl
oyCodeName!=null and employ
CodeName!=''"
>
AND emple_code_name LIKE CONCAT("%",#{empl
e
CodeName},"%")
AND emple_code_name LIKE CONCAT("%",#{empl
oy
CodeName},"%")
</if>
</if>
<if
test=
"beginTime != null and beginTime != ''"
>
<!-- 开始时间检索 -->
<if
test=
"beginTime != null and beginTime != ''"
>
<!-- 开始时间检索 -->
AND date_format(create_time,'%y%m%d')
>
= date_format(#{beginTime},'%y%m%d')
AND date_format(create_time,'%y%m%d')
>
= date_format(#{beginTime},'%y%m%d')
...
...
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