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
5a66e59f
Commit
5a66e59f
authored
Nov 24, 2020
by
qwmqiuwenmin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
ddcc4916
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
0 deletions
+28
-0
WxEnterpriseController.java
.../haoban/manage/web/controller/WxEnterpriseController.java
+28
-0
No files found.
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/WxEnterpriseController.java
View file @
5a66e59f
...
@@ -33,6 +33,8 @@ import com.gic.haoban.manage.web.vo.EnterpriseSearchVO;
...
@@ -33,6 +33,8 @@ import com.gic.haoban.manage.web.vo.EnterpriseSearchVO;
import
com.gic.haoban.manage.web.vo.LoginVO
;
import
com.gic.haoban.manage.web.vo.LoginVO
;
import
com.gic.haoban.manage.web.vo.SecretSettingVO
;
import
com.gic.haoban.manage.web.vo.SecretSettingVO
;
import
com.gic.haoban.manage.web.vo.StoreVo
;
import
com.gic.haoban.manage.web.vo.StoreVo
;
import
com.gic.quartz.api.dto.QuartzTaskDTO
;
import
com.gic.quartz.api.service.QuartzService
;
import
com.gic.redis.data.util.RedisUtil
;
import
com.gic.redis.data.util.RedisUtil
;
import
com.gic.wechat.api.dto.qywx.UserDTO
;
import
com.gic.wechat.api.dto.qywx.UserDTO
;
import
com.gic.wechat.api.service.qywx.QywxUserApiService
;
import
com.gic.wechat.api.service.qywx.QywxUserApiService
;
...
@@ -72,6 +74,8 @@ public class WxEnterpriseController extends WebBaseController{
...
@@ -72,6 +74,8 @@ public class WxEnterpriseController extends WebBaseController{
private
StaffApiService
staffApiService
;
private
StaffApiService
staffApiService
;
@Autowired
@Autowired
private
DealSyncOperationApiService
dealSyncOperationApiService
;
private
DealSyncOperationApiService
dealSyncOperationApiService
;
@Autowired
private
QuartzService
quartzService
;
//授权企业列表
//授权企业列表
...
@@ -531,12 +535,36 @@ public class WxEnterpriseController extends WebBaseController{
...
@@ -531,12 +535,36 @@ 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"
);
taskDTO
.
setTaskParam
(
""
);
taskDTO
.
setTaskStatus
(
1
);
Date
now
=
new
Date
();
Date
exeDate
=
DateUtil
.
addDay
(
now
,
1
);
Calendar
ca
=
Calendar
.
getInstance
();
ca
.
setTime
(
exeDate
);
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
);
dealSyncOperationApiService
.
dealWxFriendClerk
(
taskId
,
wxEnterpriseId
);
RedisUtil
.
setCache
(
dayKey
,
dayCount
+
1
);
RedisUtil
.
setCache
(
dayKey
,
dayCount
+
1
);
RedisUtil
.
setCache
(
monthKey
,
monthCount
+
1
);
RedisUtil
.
setCache
(
monthKey
,
monthCount
+
1
);
RedisUtil
.
setCache
(
dateKey
,
DateUtil
.
dateToStr
(
new
Date
(),
DateUtil
.
FORMAT_DATETIME_19
));
RedisUtil
.
setCache
(
dateKey
,
DateUtil
.
dateToStr
(
new
Date
(),
DateUtil
.
FORMAT_DATETIME_19
));
return
resultResponse
(
HaoBanErrCode
.
ERR_1
);
return
resultResponse
(
HaoBanErrCode
.
ERR_1
);
}
}
private
QuartzTaskDTO
buildQuartzTaskDTO
(
String
id
)
{
QuartzTaskDTO
taskDTO
=
new
QuartzTaskDTO
();
taskDTO
.
setReferId
(
id
);
taskDTO
.
setTaskMethod
(
"dealWxFriendClerk"
);
taskDTO
.
setTaskService
(
"com.gic.haoban.manage.api.service.DealSyncOperationApiService"
);
return
taskDTO
;
}
/**
/**
...
...
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