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 f80b8f8b
authored
Feb 17, 2021
by
danmo
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix
1 parent
291e5052
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
linkwe-wecom/src/main/java/com/linkwechat/wecom/service/impl/WeEmpleCodeServiceImpl.java
linkwe-wecom/src/main/java/com/linkwechat/wecom/service/impl/WeEmpleCodeServiceImpl.java
View file @
f80b8f8
package
com
.
linkwechat
.
wecom
.
service
.
impl
;
package
com
.
linkwechat
.
wecom
.
service
.
impl
;
import
cn.hutool.core.collection.CollectionUtil
;
import
cn.hutool.core.collection.CollectionUtil
;
import
com.alibaba.fastjson.JSONObject
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.linkwechat.common.constant.WeConstans
;
import
com.linkwechat.common.constant.WeConstans
;
import
com.linkwechat.common.core.redis.RedisCache
;
import
com.linkwechat.common.core.redis.RedisCache
;
...
@@ -18,6 +19,7 @@ import com.linkwechat.wecom.service.IWeEmpleCodeService;
...
@@ -18,6 +19,7 @@ import com.linkwechat.wecom.service.IWeEmpleCodeService;
import
com.linkwechat.wecom.service.IWeEmpleCodeTagService
;
import
com.linkwechat.wecom.service.IWeEmpleCodeTagService
;
import
com.linkwechat.wecom.service.IWeEmpleCodeUseScopService
;
import
com.linkwechat.wecom.service.IWeEmpleCodeUseScopService
;
import
com.linkwechat.wecom.service.IWeMaterialService
;
import
com.linkwechat.wecom.service.IWeMaterialService
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
...
@@ -32,6 +34,7 @@ import java.util.stream.Collectors;
...
@@ -32,6 +34,7 @@ import java.util.stream.Collectors;
* @author ruoyi
* @author ruoyi
* @date 2020-10-04
* @date 2020-10-04
*/
*/
@Slf4j
@Service
@Service
public
class
WeEmpleCodeServiceImpl
extends
ServiceImpl
<
WeEmpleCodeMapper
,
WeEmpleCode
>
implements
IWeEmpleCodeService
{
public
class
WeEmpleCodeServiceImpl
extends
ServiceImpl
<
WeEmpleCodeMapper
,
WeEmpleCode
>
implements
IWeEmpleCodeService
{
...
@@ -245,6 +248,7 @@ public class WeEmpleCodeServiceImpl extends ServiceImpl<WeEmpleCodeMapper, WeEmp
...
@@ -245,6 +248,7 @@ public class WeEmpleCodeServiceImpl extends ServiceImpl<WeEmpleCodeMapper, WeEmp
.
map
(
Long:
:
new
).
toArray
(
Long
[]::
new
);
.
map
(
Long:
:
new
).
toArray
(
Long
[]::
new
);
WeExternalContactDto
qrcode
=
getQrcode
(
userIdArr
,
departmentIdArr
);
WeExternalContactDto
qrcode
=
getQrcode
(
userIdArr
,
departmentIdArr
);
//设置24小时过期
//设置24小时过期
log
.
info
(
"qrcode:>>>>>>>>>>>【{}】"
,
JSONObject
.
toJSONString
(
qrcode
));
if
(
qrcode
!=
null
&&
qrcode
.
getConfig_id
()
!=
null
){
if
(
qrcode
!=
null
&&
qrcode
.
getConfig_id
()
!=
null
){
redisCache
.
setCacheObject
(
WeConstans
.
WE_EMPLE_CODE_KEY
+
":"
+
qrcode
.
getConfig_id
(),
qrcode
.
getConfig_id
(),
24
,
TimeUnit
.
HOURS
);
redisCache
.
setCacheObject
(
WeConstans
.
WE_EMPLE_CODE_KEY
+
":"
+
qrcode
.
getConfig_id
(),
qrcode
.
getConfig_id
(),
24
,
TimeUnit
.
HOURS
);
}
}
...
...
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