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
57769c3c
Commit
57769c3c
authored
Mar 27, 2023
by
songyinghui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 查询商品服务
parent
56cb0c06
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
1 deletions
+17
-1
QywxGroupMsgTaskApiServiceImpl.java
...out/impl/content/task/QywxGroupMsgTaskApiServiceImpl.java
+8
-0
WxEnterpriseMapper.xml
...-service/src/main/resources/mapper/WxEnterpriseMapper.xml
+1
-1
MaterialReportServiceTest.java
...age3-service/src/test/java/MaterialReportServiceTest.java
+8
-0
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/content/task/QywxGroupMsgTaskApiServiceImpl.java
View file @
57769c3c
...
...
@@ -11,6 +11,7 @@ import com.gic.haoban.manage.api.enums.content.TriggerCustomerChannelType;
import
com.gic.haoban.manage.api.service.content.task.QywxGroupMsgTaskApiService
;
import
com.gic.haoban.manage.service.pojo.bo.content.GroupMessageInfoBo
;
import
com.gic.haoban.manage.service.service.StaffService
;
import
com.gic.haoban.manage.service.service.WxEnterpriseService
;
import
com.gic.haoban.manage.service.service.content.GroupMessageService
;
import
com.gic.haoban.manage.service.service.content.MaterialReportService
;
import
com.gic.haoban.manage.service.task.RouterConstant
;
...
...
@@ -39,6 +40,8 @@ public class QywxGroupMsgTaskApiServiceImpl implements QywxGroupMsgTaskApiServic
private
MaterialReportService
materialReportService
;
@Autowired
private
StaffService
staffService
;
@Autowired
private
WxEnterpriseService
wxEnterpriseService
;
@Override
public
ServiceResponse
<
Void
>
groupMsgTaskJob
(
String
params
)
{
...
...
@@ -120,7 +123,12 @@ public class QywxGroupMsgTaskApiServiceImpl implements QywxGroupMsgTaskApiServic
return
ServiceResponse
.
success
();
}
for
(
String
enterpriseId
:
enterpriseIds
)
{
List
<
String
>
wxEnterpriseIds
=
wxEnterpriseService
.
queryWxEnterpriseWithEnterpriseId
(
enterpriseId
);
if
(
CollectionUtils
.
isEmpty
(
wxEnterpriseIds
))
{
}
List
<
String
>
staffIds
=
staffService
.
queryStaffIdsWithEnterpriseId
(
enterpriseId
);
if
(
CollectionUtils
.
isEmpty
(
staffIds
))
{
log
.
info
(
"企业 {} 不存在成员"
,
enterpriseId
);
...
...
haoban-manage3-service/src/main/resources/mapper/WxEnterpriseMapper.xml
View file @
57769c3c
...
...
@@ -508,7 +508,7 @@
<select
id=
"queryWxEnterpriseByEnterpriseId"
resultType=
"java.lang.String"
>
select
a.
enterprise_id e
nterpriseId
a.
wx_enterprise_id wxE
nterpriseId
from tab_haoban_wx_enterprise_related a
inner join tab_haoban_wx_enterprise b on a.wx_enterprise_id = b.wx_enterprise_id
where a.status_flag = 1 and b.status_flag = 1
...
...
haoban-manage3-service/src/test/java/MaterialReportServiceTest.java
View file @
57769c3c
import
com.gic.haoban.manage.api.enums.content.MaterialReportType
;
import
com.gic.haoban.manage.api.service.content.task.QywxGroupMsgTaskApiService
;
import
com.gic.haoban.manage.service.service.content.MaterialReportService
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
...
...
@@ -22,6 +23,8 @@ public class MaterialReportServiceTest {
}
@Autowired
private
MaterialReportService
materialReportService
;
@Autowired
private
QywxGroupMsgTaskApiService
qywxGroupMsgTaskApiService
;
String
eid
=
"ff8080815dacd3a2015dacd3ef5c0000"
;
String
wxEid
=
"ca66a01b79474c40b3e7c7f93daf1a3b"
;
...
...
@@ -33,4 +36,9 @@ public class MaterialReportServiceTest {
materialReportService
.
handlerMaterialReport
(
eid
,
staffId
,
MaterialReportType
.
WEEK
.
getCode
());
materialReportService
.
handlerMaterialReport
(
eid
,
staffId
,
MaterialReportType
.
MONTH
.
getCode
());
}
@Test
public
void
weekReport
(){
qywxGroupMsgTaskApiService
.
handlerMaterialWeekReport
(
""
);
}
}
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