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
78702169
Commit
78702169
authored
May 22, 2020
by
fudahua
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/developer' into developer
parents
6be3c785
ef759161
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
5 deletions
+15
-5
StaffDepartmentRelatedApiServiceImpl.java
...ervice/out/impl/StaffDepartmentRelatedApiServiceImpl.java
+13
-3
MyApplicationContextAware.java
...gic/haoban/manage/web/init/MyApplicationContextAware.java
+2
-2
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/StaffDepartmentRelatedApiServiceImpl.java
View file @
78702169
...
...
@@ -31,10 +31,12 @@ import com.gic.haoban.manage.service.dao.mapper.StaffDepartmentRelatedMapper;
import
com.gic.haoban.manage.service.dao.mapper.WxEnterpriseMapper
;
import
com.gic.haoban.manage.service.dao.mapper.WxEnterpriseRelatedMapper
;
import
com.gic.haoban.manage.service.entity.TabHaobanApplication
;
import
com.gic.haoban.manage.service.entity.TabHaobanDepartment
;
import
com.gic.haoban.manage.service.entity.TabHaobanStaffDepartmentRelated
;
import
com.gic.haoban.manage.service.entity.TabHaobanWxEnterprise
;
import
com.gic.haoban.manage.service.entity.TabHaobanWxEnterpriseRelated
;
import
com.gic.haoban.manage.service.service.ApplicationService
;
import
com.gic.haoban.manage.service.service.DepartmentService
;
import
com.gic.haoban.manage.service.service.StaffDepartmentRelatedService
;
import
com.gic.wechat.api.dto.qywx.ItemDTO
;
import
com.gic.wechat.api.dto.qywx.QywxXcxSendMessageDTO
;
...
...
@@ -59,6 +61,8 @@ public class StaffDepartmentRelatedApiServiceImpl implements StaffDepartmentRela
@Autowired
private
WxEnterpriseRelatedMapper
wxEnterpriseRelatedMapper
;
@Autowired
private
DepartmentService
departmentService
;
@Autowired
private
Config
config
;
@Override
...
...
@@ -146,12 +150,18 @@ public class StaffDepartmentRelatedApiServiceImpl implements StaffDepartmentRela
return
map
;
}
String
wxEnterpriseId
=
relate
.
getWxEnterpriseId
();
String
storeId
=
clerkDTO
.
getStoreId
();
TabHaobanDepartment
tabDepart
=
departmentService
.
selectByRelatedId
(
storeId
);
if
(
tabDepart
==
null
){
return
map
;
}
String
departmentId
=
tabDepart
.
getDepartmentId
();
List
<
TabHaobanStaffDepartmentRelated
>
list
=
staffDepartmentRelatedMapper
.
listByWxEnterpriseIdAndClerkCode
(
wxEnterprise
Id
,
clerkCode
);
if
(
CollectionUtil
.
isEmpty
(
list
)
){
TabHaobanStaffDepartmentRelated
tabHaobanStaffDepartmentRelated
=
staffDepartmentRelatedMapper
.
getDepartmentIdAndCode
(
department
Id
,
clerkCode
);
if
(
tabHaobanStaffDepartmentRelated
==
null
){
return
map
;
}
String
wxUserId
=
list
.
get
(
0
)
.
getWxUserId
();
String
wxUserId
=
tabHaobanStaffDepartmentRelated
.
getWxUserId
();
TabHaobanWxEnterprise
tabHaobanWxEnterprise
=
wxEnterpriseMapper
.
selectByPrimaryKey
(
wxEnterpriseId
);
map
.
put
(
"wxUserId"
,
wxUserId
);
...
...
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/init/MyApplicationContextAware.java
View file @
78702169
...
...
@@ -26,8 +26,8 @@ public class MyApplicationContextAware implements ApplicationContextAware {
QuartzTaskDTO
taskDTO
=
buildQuartzMessageDTO
(
"haoban-message-status-time"
);
taskDTO
.
setTaskParam
(
""
);
taskDTO
.
setTaskStatus
(
1
);
// taskDTO.setTaskTimeInfo("0 30 0
* * *");
taskDTO
.
setTaskTimeInfo
(
"0 0/5 * * * *"
);
taskDTO
.
setTaskTimeInfo
(
"0 30 1
* * *"
);
//
taskDTO.setTaskTimeInfo("0 0/5 * * * *");
quartzService
.
addOrUpdateQuartzTask
(
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