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
a9441ff6
Commit
a9441ff6
authored
Sep 10, 2019
by
高鹏
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feat-zdw' into 'master'
feat-zdw: 打卡作品旧数据迁移 See merge request rays/pcloud-book!148
parents
d9e3e2ed
39e1c260
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
4 deletions
+12
-4
BookClockBizImpl.java
...java/com/pcloud/book/clock/biz/impl/BookClockBizImpl.java
+10
-3
BookClockInfo.Mapper.xml
.../src/main/resources/mapper/clock/BookClockInfo.Mapper.xml
+2
-1
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/clock/biz/impl/BookClockBizImpl.java
View file @
a9441ff6
...
...
@@ -61,12 +61,15 @@ import java.util.concurrent.ExecutorService;
import
java.util.concurrent.Executors
;
import
java.util.stream.Collectors
;
import
lombok.extern.slf4j.Slf4j
;
/**
* @Author: hzk
* @Date: 2019/5/24 14:50
* @Version 1.0
*/
@Component
(
"bookClockBiz"
)
@Slf4j
public
class
BookClockBizImpl
implements
BookClockBiz
{
@Autowired
...
...
@@ -459,8 +462,8 @@ public class BookClockBizImpl implements BookClockBiz {
}
@Override
@ParamLog
(
"微信群打卡作品数据迁移"
)
public
void
dealOldData4WeixinAtt
()
{
timedTask
.
execute
(()->{
SetKeywordVO
setKeywordVO
=
new
SetKeywordVO
();
List
<
BookClockInfoDTO
>
clockInfoIds
=
bookClockInfoDao
.
getAllAttInfoIds
();
if
(!
ListUtils
.
isEmpty
(
clockInfoIds
)){
...
...
@@ -487,18 +490,22 @@ public class BookClockBizImpl implements BookClockBiz {
setKeywordVO
.
setDescription
(
"签到打卡"
);
setKeywordVO
.
setAddWarehouse
(
0
);
setKeywordVO
.
setClassifyId
(
id
);
setKeywordVO
.
set
Reply
Type
(
1
);
setKeywordVO
.
set
Set
Type
(
1
);
setKeywordVO
.
setReplyType
(
4
);
setKeywordVO
.
setMatchingRule
(
0
);
setKeywordVO
.
setBookGroupId
(
classifyVO
.
getBookGroupId
());
setKeywordVO
.
setContent
(
bookClockInfoDTO
.
getOriginTitle
());
setKeywordVO
.
setServeId
(
bookClockInfoDTO
.
getOriginId
());
setKeywordVO
.
setServeType
(
bookClockInfoDTO
.
getOriginType
());
setKeywordVO
.
setUserId
(
bookClockInfoDTO
.
getCreateUser
());
try
{
bookKeywordBiz
.
insertKeyword
(
setKeywordVO
);
}
catch
(
BookBizException
e
){
log
.
info
(
"打卡关键词迁移失败:"
+
e
.
toString
());
}
}
}
}
}
});
}
}
pcloud-service-book/src/main/resources/mapper/clock/BookClockInfo.Mapper.xml
View file @
a9441ff6
...
...
@@ -205,7 +205,7 @@
<select
id=
"getAllAttInfoIds"
parameterType=
"map"
resultMap=
"BaseResultMapDTO"
>
select
<include
refid=
"Base_Column_List"
/>
from book_clock_info where origin_type = '
APP
'
from book_clock_info where origin_type = '
PRODUCT
'
</select>
</mapper>
\ No newline at end of file
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