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
7f8af5d9
Commit
7f8af5d9
authored
Nov 25, 2020
by
qwmqiuwenmin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
6a6f0e9e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
20 deletions
+20
-20
WxEnterpriseController.java
.../haoban/manage/web/controller/WxEnterpriseController.java
+20
-20
No files found.
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/WxEnterpriseController.java
View file @
7f8af5d9
...
...
@@ -536,26 +536,26 @@ public class WxEnterpriseController extends WebBaseController{
if
(
StringUtils
.
isEmpty
(
taskId
)){
return
resultResponse
(
HaoBanErrCode
.
ERR_100021
);
}
QuartzTaskDTO
taskDTO
=
buildQuartzTaskDTO
(
"haoban-enterprise-fresh-wx-friend"
);
JSONObject
json
=
new
JSONObject
();
json
.
put
(
"taskId"
,
taskId
);
json
.
put
(
"wxEnterpriseId"
,
wxEnterpriseId
);
taskDTO
.
setTaskParam
(
json
.
toJSONString
());
taskDTO
.
setTaskStatus
(
1
);
Date
now
=
new
Date
();
Date
exeDate
=
DateUtil
.
addDay
(
now
,
1
);
Calendar
ca
=
Calendar
.
getInstance
();
ca
.
setTime
(
now
);
int
day
=
ca
.
get
(
Calendar
.
DAY_OF_MONTH
);
//第几天
int
month
=
ca
.
get
(
Calendar
.
MONTH
);
//第几个月
int
year
=
ca
.
get
(
Calendar
.
YEAR
);
//年份数值
int
hour
=
ca
.
get
(
Calendar
.
HOUR
);
//
int
minute
=
ca
.
get
(
Calendar
.
MINUTE
);
//
int
second
=
ca
.
get
(
Calendar
.
SECOND
);
//
String
con
=
second
+
" "
+
minute
+
" "
+
hour
+
" "
+
day
+
" "
+
month
+
" "
+
year
;
taskDTO
.
setTaskTimeInfo
(
con
);
quartzService
.
addOrUpdateQuartzTask
(
taskDTO
);
//
dealSyncOperationApiService.dealWxFriendClerk(taskId, wxEnterpriseId);
//
QuartzTaskDTO taskDTO = buildQuartzTaskDTO("haoban-enterprise-fresh-wx-friend");
//
JSONObject json = new JSONObject();
//
json.put("taskId", taskId);
//
json.put("wxEnterpriseId", wxEnterpriseId);
//
taskDTO.setTaskParam(json.toJSONString());
//
taskDTO.setTaskStatus(1);
//
Date now = new Date();
//
Date exeDate = DateUtil.addDay(now, 1);
//
Calendar ca = Calendar.getInstance();
//
ca.setTime(now);
//
int day = ca.get(Calendar.DAY_OF_MONTH);//第几天
//
int month = ca.get(Calendar.MONTH);//第几个月
//
int year = ca.get(Calendar.YEAR);//年份数值
//
int hour = ca.get(Calendar.HOUR);//
//
int minute = ca.get(Calendar.MINUTE);//
//
int second = ca.get(Calendar.SECOND);//
//
String con = second + " " + minute + " " + hour + " " + day + " " + month +" " + year;
//
taskDTO.setTaskTimeInfo(con);
//
quartzService.addOrUpdateQuartzTask(taskDTO);
dealSyncOperationApiService
.
dealWxFriendClerk
(
taskId
,
wxEnterpriseId
);
RedisUtil
.
setCache
(
dayKey
,
dayCount
+
1
);
RedisUtil
.
setCache
(
monthKey
,
monthCount
+
1
);
RedisUtil
.
setCache
(
dateKey
,
DateUtil
.
dateToStr
(
new
Date
(),
DateUtil
.
FORMAT_DATETIME_19
));
...
...
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