Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
midjourney-proxy
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
徐少华
midjourney-proxy
Commits
c0cecbaa
Commit
c0cecbaa
authored
Aug 23, 2019
by
杨涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix 错误字符
parent
b881528b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
WeixinClockBizImpl.java
.../pcloud/book/weixinclock/biz/impl/WeixinClockBizImpl.java
+2
-0
WeixinClockMember.Mapper.xml
...resources/mapper/weixinclock/WeixinClockMember.Mapper.xml
+4
-4
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/weixinclock/biz/impl/WeixinClockBizImpl.java
View file @
c0cecbaa
...
@@ -440,8 +440,10 @@ public class WeixinClockBizImpl implements WeixinClockBiz {
...
@@ -440,8 +440,10 @@ public class WeixinClockBizImpl implements WeixinClockBiz {
WeixinClockDto
weixinClockDto
=
weixinClockGroupClassifyDao
.
getClockBaseInfoByClassify
(
classifyQrcodeInfo
.
getClassifyId
());
WeixinClockDto
weixinClockDto
=
weixinClockGroupClassifyDao
.
getClockBaseInfoByClassify
(
classifyQrcodeInfo
.
getClassifyId
());
WeixinClockMember
clockMember
=
weixinClockMemberDao
.
getByWxUserId
(
wechatGroupId
,
userWxId
);
WeixinClockMember
clockMember
=
weixinClockMemberDao
.
getByWxUserId
(
wechatGroupId
,
userWxId
);
AppDto
appDto
=
appConsr
.
getBaseById
(
weixinClockDto
.
getClockPrizeId
());
AppDto
appDto
=
appConsr
.
getBaseById
(
weixinClockDto
.
getClockPrizeId
());
appDto
=
null
==
appDto
?
new
AppDto
()
:
appDto
;
Long
wechatUserId
=
readerConsr
.
getWechatUserId
(
userWxId
,
appDto
.
getChannelId
());
Long
wechatUserId
=
readerConsr
.
getWechatUserId
(
userWxId
,
appDto
.
getChannelId
());
GroupUserDTO
groupUserDTO
=
wechatGroupConsr
.
getWxUserInfoByWxUserId
(
userWxId
);
GroupUserDTO
groupUserDTO
=
wechatGroupConsr
.
getWxUserInfoByWxUserId
(
userWxId
);
groupUserDTO
=
null
==
groupUserDTO
?
new
GroupUserDTO
()
:
groupUserDTO
;
Long
weixinClockMemberId
=
clockMember
==
null
?
null
:
clockMember
.
getWeixinClockMemberId
();
Long
weixinClockMemberId
=
clockMember
==
null
?
null
:
clockMember
.
getWeixinClockMemberId
();
if
(
null
==
clockMember
)
{
if
(
null
==
clockMember
)
{
WeixinClockMember
weixinClockMember
=
new
WeixinClockMember
();
WeixinClockMember
weixinClockMember
=
new
WeixinClockMember
();
...
...
pcloud-service-book/src/main/resources/mapper/weixinclock/WeixinClockMember.Mapper.xml
View file @
c0cecbaa
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
)
)
VALUES (
VALUES (
#{weixinClockId, jdbcType=BIGINT}, #{wxUserId, jdbcType=VARCHAR}, #{bookGroupClassifyId, jdbcType=BIGINT}, #{wxGroupId, jdbcType=VARCHAR},
#{weixinClockId, jdbcType=BIGINT}, #{wxUserId, jdbcType=VARCHAR}, #{bookGroupClassifyId, jdbcType=BIGINT}, #{wxGroupId, jdbcType=VARCHAR},
#{nickname, jdbcType=VARCHAR}, #{headPic, jdbcType=VARCHAR}, #{allClockDay, jdbcType=INTEGER}, NOW(), NOW(),#{wchatUserId, jdbcType=BIGINT}
#{nickname, jdbcType=VARCHAR}, #{headPic, jdbcType=VARCHAR}, #{allClockDay, jdbcType=INTEGER}, NOW(), NOW(),#{w
e
chatUserId, jdbcType=BIGINT}
)
)
</insert>
</insert>
...
@@ -57,7 +57,7 @@
...
@@ -57,7 +57,7 @@
update weixin_clock_member
update weixin_clock_member
set
set
all_clock_day = all_clock_day + 1,
all_clock_day = all_clock_day + 1,
wechat_user_id = #{w
c
hatUserId, jdbcType=BIGINT}
wechat_user_id = #{w
e
hatUserId, jdbcType=BIGINT}
update_time = NOW()
update_time = NOW()
where
where
wx_user_id = #{userWxId}
wx_user_id = #{userWxId}
...
@@ -77,8 +77,8 @@
...
@@ -77,8 +77,8 @@
<select
id=
"getClockWechatUserRank"
parameterType=
"map"
resultType=
"com.pcloud.book.weixinclock.dto.RankDto"
>
<select
id=
"getClockWechatUserRank"
parameterType=
"map"
resultType=
"com.pcloud.book.weixinclock.dto.RankDto"
>
select cm.rankNum rankNum, cm.clockNum clockNum, cm.nickname nickname, cm.headPic headPic from (
select cm.rankNum rankNum, cm.clockNum clockNum, cm.nickname nickname, cm.headPic headPic from (
select wx_user_id, (@rowNum:=@rowNum+1) AS rankNum, all_clock_day clockNum, nickname nickname, head_pic headPic from (
select wx_user_id, (@rowNum:=@rowNum+1) AS rankNum, all_clock_day clockNum, nickname nickname, head_pic headPic
, wechat_user_id
from (
select wx_user_id, all_clock_day, nickname, head_pic, @rowNum:=0 from weixin_clock_member
select wx_user_id, all_clock_day, nickname, head_pic,
wechat_user_id,
@rowNum:=0 from weixin_clock_member
where wx_group_id = #{wechatGroupId}
where wx_group_id = #{wechatGroupId}
AND (all_clock_day
<![CDATA[ >]]>
0 or wechat_user_id = #{wechatUserId, jdbcType=VARCHAR})
AND (all_clock_day
<![CDATA[ >]]>
0 or wechat_user_id = #{wechatUserId, jdbcType=VARCHAR})
order by all_clock_day desc, update_time asc
order by all_clock_day desc, update_time asc
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment