Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
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
haoban3.0
haoban-manage3.0
Commits
cfdb6129
Commit
cfdb6129
authored
Nov 24, 2020
by
qwmqiuwenmin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
5a66e59f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
16 deletions
+16
-16
WxEnterpriseController.java
.../haoban/manage/web/controller/WxEnterpriseController.java
+16
-16
No files found.
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/WxEnterpriseController.java
View file @
cfdb6129
...
@@ -535,22 +535,22 @@ public class WxEnterpriseController extends WebBaseController{
...
@@ -535,22 +535,22 @@ public class WxEnterpriseController extends WebBaseController{
if
(
StringUtils
.
isEmpty
(
taskId
)){
if
(
StringUtils
.
isEmpty
(
taskId
)){
return
resultResponse
(
HaoBanErrCode
.
ERR_100021
);
return
resultResponse
(
HaoBanErrCode
.
ERR_100021
);
}
}
QuartzTaskDTO
taskDTO
=
buildQuartzTaskDTO
(
"haoban-enterprise-fresh-wx-friend"
);
//
QuartzTaskDTO taskDTO = buildQuartzTaskDTO("haoban-enterprise-fresh-wx-friend");
taskDTO
.
setTaskParam
(
""
);
//
taskDTO.setTaskParam("");
taskDTO
.
setTaskStatus
(
1
);
//
taskDTO.setTaskStatus(1);
Date
now
=
new
Date
();
//
Date now = new Date();
Date
exeDate
=
DateUtil
.
addDay
(
now
,
1
);
//
Date exeDate = DateUtil.addDay(now, 1);
Calendar
ca
=
Calendar
.
getInstance
();
//
Calendar ca = Calendar.getInstance();
ca
.
setTime
(
exeDate
);
//
ca.setTime(exeDate);
int
day
=
ca
.
get
(
Calendar
.
DAY_OF_MONTH
);
//第几天
//
int day = ca.get(Calendar.DAY_OF_MONTH);//第几天
int
month
=
ca
.
get
(
Calendar
.
MONTH
);
//第几个月
//
int month = ca.get(Calendar.MONTH);//第几个月
int
year
=
ca
.
get
(
Calendar
.
YEAR
);
//年份数值
//
int year = ca.get(Calendar.YEAR);//年份数值
int
hour
=
ca
.
get
(
Calendar
.
HOUR
);
//
//
int hour = ca.get(Calendar.HOUR);//
int
minute
=
ca
.
get
(
Calendar
.
MINUTE
);
//
//
int minute = ca.get(Calendar.MINUTE);//
int
second
=
ca
.
get
(
Calendar
.
SECOND
);
//
//
int second = ca.get(Calendar.SECOND);//
String
con
=
second
+
" "
+
minute
+
" "
+
hour
+
" "
+
day
+
" "
+
month
+
" "
+
year
;
//
String con = second + " " + minute + " " + hour + " " + day + " " + month +" " + year;
taskDTO
.
setTaskTimeInfo
(
con
);
//
taskDTO.setTaskTimeInfo(con);
quartzService
.
addOrUpdateQuartzTask
(
taskDTO
);
//
quartzService.addOrUpdateQuartzTask(taskDTO);
dealSyncOperationApiService
.
dealWxFriendClerk
(
taskId
,
wxEnterpriseId
);
dealSyncOperationApiService
.
dealWxFriendClerk
(
taskId
,
wxEnterpriseId
);
RedisUtil
.
setCache
(
dayKey
,
dayCount
+
1
);
RedisUtil
.
setCache
(
dayKey
,
dayCount
+
1
);
RedisUtil
.
setCache
(
monthKey
,
monthCount
+
1
);
RedisUtil
.
setCache
(
monthKey
,
monthCount
+
1
);
...
...
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