Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
仟微科技
Link Wechat
提交
8e49086e
Link Wechat
项目概览
仟微科技
/
Link Wechat
通知
48
Star
3
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
1
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Link Wechat
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
1
合并请求
1
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
8e49086e
编写于
6月 01, 2021
作者:
1
1539136324@qq.com
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改客户列表分页BUG
上级
91032f33
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
17 addition
and
8 deletion
+17
-8
linkwe-common/src/main/java/com/linkwechat/common/core/domain/entity/WeCorpAccount.java
...m/linkwechat/common/core/domain/entity/WeCorpAccount.java
+1
-1
linkwe-wecom/src/main/java/com/linkwechat/wecom/interceptor/WeiXinAccessTokenInterceptor.java
...echat/wecom/interceptor/WeiXinAccessTokenInterceptor.java
+2
-2
linkwe-wecom/src/main/java/com/linkwechat/wecom/interceptor/WeiXinAuthInterceptor.java
...m/linkwechat/wecom/interceptor/WeiXinAuthInterceptor.java
+2
-2
linkwe-wecom/src/main/resources/mapper/wecom/WeCustomerMapper.xml
...ecom/src/main/resources/mapper/wecom/WeCustomerMapper.xml
+12
-3
未找到文件。
linkwe-common/src/main/java/com/linkwechat/common/core/domain/entity/WeCorpAccount.java
浏览文件 @
8e49086e
...
...
@@ -99,7 +99,7 @@ public class WeCorpAccount extends BaseEntity
@ApiModelProperty
(
"微信公众号APPID"
)
private
String
app
i
d
;
private
String
app
I
d
;
@ApiModelProperty
(
"微信公众号密钥"
)
...
...
linkwe-wecom/src/main/java/com/linkwechat/wecom/interceptor/WeiXinAccessTokenInterceptor.java
浏览文件 @
8e49086e
...
...
@@ -59,12 +59,12 @@ public class WeiXinAccessTokenInterceptor implements Interceptor {
if
(
null
!=
loginUser
&&
null
!=
loginUser
.
getUser
()
&&
null
!=
loginUser
.
getUser
().
getWeCorpAccount
()){
WeCorpAccount
weCorpAccount
=
loginUser
.
getUser
().
getWeCorpAccount
();
if
(
StrUtil
.
isEmpty
(
weCorpAccount
.
getApp
i
d
())
&&
StrUtil
.
isEmpty
(
weCorpAccount
.
getSecret
())){
if
(
StrUtil
.
isEmpty
(
weCorpAccount
.
getApp
I
d
())
&&
StrUtil
.
isEmpty
(
weCorpAccount
.
getSecret
())){
//获取用户token
accessToken
=
redisCache
.
getCacheObject
(
WeConstans
.
WX_ACCESS_TOKEN
);
if
(
StringUtils
.
isEmpty
(
accessToken
)){
//当用户token失效,重新获取token
WxTokenDto
wxTokenDto
=
wxCommonClient
.
getToken
(
grantType
,
weCorpAccount
.
getApp
i
d
(),
weCorpAccount
.
getSecret
());
WxTokenDto
wxTokenDto
=
wxCommonClient
.
getToken
(
grantType
,
weCorpAccount
.
getApp
I
d
(),
weCorpAccount
.
getSecret
());
if
(
wxTokenDto
!=
null
&&
StringUtils
.
isNotEmpty
(
wxTokenDto
.
getAccessToken
())){
redisCache
.
setCacheObject
(
WeConstans
.
WX_AUTH_ACCESS_TOKEN
,
wxTokenDto
.
getAccessToken
(),
wxTokenDto
.
getExpiresIn
(),
TimeUnit
.
SECONDS
);
accessToken
=
wxTokenDto
.
getAccessToken
();
...
...
linkwe-wecom/src/main/java/com/linkwechat/wecom/interceptor/WeiXinAuthInterceptor.java
浏览文件 @
8e49086e
...
...
@@ -68,8 +68,8 @@ public class WeiXinAuthInterceptor implements Interceptor {
if
(
null
!=
loginUser
&&
null
!=
loginUser
.
getUser
()
&&
null
!=
loginUser
.
getUser
().
getWeCorpAccount
())
{
WeCorpAccount
weCorpAccount
=
loginUser
.
getUser
().
getWeCorpAccount
();
if
(
StrUtil
.
isEmpty
(
weCorpAccount
.
getApp
i
d
()))
{
wxTokenDto
=
wxAuthClient
.
refreshToken
(
weCorpAccount
.
getApp
i
d
(),
grantType
,
refreshToken
);
if
(
StrUtil
.
isEmpty
(
weCorpAccount
.
getApp
I
d
()))
{
wxTokenDto
=
wxAuthClient
.
refreshToken
(
weCorpAccount
.
getApp
I
d
(),
grantType
,
refreshToken
);
if
(
wxTokenDto
!=
null
&&
StringUtils
.
isNotEmpty
(
wxTokenDto
.
getAccessToken
())){
redisCache
.
setCacheObject
(
WeConstans
.
WX_AUTH_ACCESS_TOKEN
+
":"
+
openId
,
wxTokenDto
,
wxTokenDto
.
getExpiresIn
(),
TimeUnit
.
SECONDS
);
}
...
...
linkwe-wecom/src/main/resources/mapper/wecom/WeCustomerMapper.xml
浏览文件 @
8e49086e
...
...
@@ -36,7 +36,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</collection>
</collection>
</resultMap>
<resultMap
id=
"weFlowerCustomerRelsMapper"
type=
"com.linkwechat.wecom.domain.WeFlowerCustomerTagRel"
>
<result
property=
"flowerCustomerRelId"
column=
"flower_customer_rel_id"
/>
...
...
@@ -75,8 +78,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
and wt.status = 0
</sql>
<select
id=
"selectWeCustomerList"
parameterType=
"WeCustomer"
resultMap=
"WeCustomerResult"
>
SELECT
SELECT
*
FROM
(
SELECT
DISTINCT wc.external_userid,
wc.`name`,
wc.avatar,
...
...
@@ -157,7 +165,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
AND wc.is_open_chat=#{isOpenChat}
</if>
</where>
ORDER BY wfcr.create_time DESC
ORDER BY wfcr.create_time ASC
) aa GROUP BY aa.external_userid
</select>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录