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 7b800407
authored
Apr 22, 2021
by
YaoYuHang
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Bugfix
1 parent
a50cea15
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
37 additions
and
4 deletions
linkwe-wecom/src/main/java/com/linkwechat/wecom/mapper/WeCommunityNewGroupMapper.java
linkwe-wecom/src/main/java/com/linkwechat/wecom/mapper/WeGroupCodeActualMapper.java
linkwe-wecom/src/main/java/com/linkwechat/wecom/service/impl/WeEmpleCodeServiceImpl.java
linkwe-wecom/src/main/java/com/linkwechat/wecom/service/impl/WeGroupCodeServiceImpl.java
linkwe-wecom/src/main/resources/mapper/wecom/WeCommunityNewGroupMapper.xml
linkwe-wecom/src/main/java/com/linkwechat/wecom/mapper/WeCommunityNewGroupMapper.java
View file @
7b80040
...
...
@@ -54,4 +54,18 @@ public interface WeCommunityNewGroupMapper extends BaseMapper<WeCommunityNewGrou
*/
List
<
WeCommunityNewGroupVo
>
selectWeCommunityNewGroupByIds
(
@Param
(
"ids"
)
List
<
Long
>
ids
);
/**
* 通过员工活码id逻辑删除对应新客拉群信息
* @param emplCodeId 员工活码id
* @return 结果
*/
int
removeWeCommunityNewGroupByEmplCodeId
(
@Param
(
"emplCodeId"
)
Long
emplCodeId
);
/**
* 通过群活码id逻辑删除对应新客拉群信息
* @param groupCodeId 群活码id
* @return 结果
*/
int
removeWeCommunityNewGroupByGroupCodeId
(
@Param
(
"groupCodeId"
)
Long
groupCodeId
);
}
linkwe-wecom/src/main/java/com/linkwechat/wecom/mapper/WeGroupCodeActualMapper.java
View file @
7b80040
...
...
@@ -5,6 +5,7 @@ import java.util.List;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.linkwechat.wecom.domain.WeGroup
;
import
com.linkwechat.wecom.domain.WeGroupCodeActual
;
import
org.springframework.stereotype.Repository
;
/**
* 实际群码Mapper接口
...
...
@@ -12,6 +13,7 @@ import com.linkwechat.wecom.domain.WeGroupCodeActual;
* @author ruoyi
* @date 2020-10-07
*/
@Repository
public
interface
WeGroupCodeActualMapper
extends
BaseMapper
<
WeGroupCodeActual
>
{
/**
* 查询实际群码
...
...
linkwe-wecom/src/main/java/com/linkwechat/wecom/service/impl/WeEmpleCodeServiceImpl.java
View file @
7b80040
...
...
@@ -17,6 +17,7 @@ import com.linkwechat.wecom.domain.WeEmpleCodeUseScop;
import
com.linkwechat.wecom.domain.WeMaterial
;
import
com.linkwechat.wecom.domain.dto.WeEmpleCodeDto
;
import
com.linkwechat.wecom.domain.dto.WeExternalContactDto
;
import
com.linkwechat.wecom.mapper.WeCommunityNewGroupMapper
;
import
com.linkwechat.wecom.mapper.WeEmpleCodeMapper
;
import
com.linkwechat.wecom.mapper.WeEmpleCodeTagMapper
;
import
com.linkwechat.wecom.mapper.WeEmpleCodeUseScopMapper
;
...
...
@@ -61,10 +62,7 @@ public class WeEmpleCodeServiceImpl extends ServiceImpl<WeEmpleCodeMapper, WeEmp
private
RedisCache
redisCache
;
@Autowired
private
WeEmpleCodeUseScopMapper
scopMapper
;
@Autowired
private
WeEmpleCodeTagMapper
codeTagMapper
;
private
WeCommunityNewGroupMapper
communityNewGroupMapper
;
/**
* 查询员工活码
...
...
@@ -205,6 +203,9 @@ public class WeEmpleCodeServiceImpl extends ServiceImpl<WeEmpleCodeMapper, WeEmp
if
(
weEmpleCode
!=
null
&&
weEmpleCode
.
getConfigId
()
!=
null
)
{
weExternalContactClient
.
delContactWay
(
weEmpleCode
.
getConfigId
());
}
// 删除对应的新科拉群信息
communityNewGroupMapper
.
removeWeCommunityNewGroupByEmplCodeId
(
id
);
// 删除员工活码
return
this
.
baseMapper
.
deleteWeEmpleCodeById
(
id
);
}
...
...
linkwe-wecom/src/main/java/com/linkwechat/wecom/service/impl/WeGroupCodeServiceImpl.java
View file @
7b80040
...
...
@@ -7,6 +7,7 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import
com.linkwechat.common.config.CosConfig
;
import
com.linkwechat.common.exception.wecom.WeComException
;
import
com.linkwechat.wecom.domain.WeGroupCodeActual
;
import
com.linkwechat.wecom.mapper.WeCommunityNewGroupMapper
;
import
com.linkwechat.wecom.mapper.WeGroupCodeActualMapper
;
import
com.linkwechat.wecom.service.IWeGroupCodeActualService
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
@@ -14,6 +15,8 @@ import org.springframework.stereotype.Service;
import
com.linkwechat.wecom.mapper.WeGroupCodeMapper
;
import
com.linkwechat.wecom.domain.WeGroupCode
;
import
com.linkwechat.wecom.service.IWeGroupCodeService
;
import
org.springframework.transaction.annotation.Transactional
;
/**
* 客户群活码Service业务层处理
*
...
...
@@ -33,6 +36,9 @@ public class WeGroupCodeServiceImpl extends ServiceImpl<WeGroupCodeMapper,WeGrou
@Autowired
private
WeGroupCodeActualMapper
weGroupCodeActualMapper
;
@Autowired
private
WeCommunityNewGroupMapper
communityNewGroupMapper
;
/**
* 查询客户群活码
*
...
...
@@ -142,8 +148,11 @@ public class WeGroupCodeServiceImpl extends ServiceImpl<WeGroupCodeMapper,WeGrou
* @return 结果
*/
@Override
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
int
deleteWeGroupCodeById
(
Long
id
)
{
// 需要删除新科拉群信息
communityNewGroupMapper
.
removeWeCommunityNewGroupByGroupCodeId
(
id
);
return
weGroupCodeMapper
.
deleteWeGroupCodeById
(
id
);
}
...
...
linkwe-wecom/src/main/resources/mapper/wecom/WeCommunityNewGroupMapper.xml
View file @
7b80040
...
...
@@ -75,4 +75,11 @@
</where>
</select>
<update
id=
"removeWeCommunityNewGroupByEmplCodeId"
parameterType=
"Long"
>
UPDATE we_community_new_group SET del_flag = 1 WHERE empl_code_id = #{emplCodeId}
</update>
<update
id=
"removeWeCommunityNewGroupByGroupCodeId"
parameterType=
"Long"
>
UPDATE we_community_new_group SET del_flag = 1 WHERE group_code_id = #{groupCodeId}
</update>
</mapper>
\ No newline at end of file
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