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
554087b1
Commit
554087b1
authored
Apr 15, 2020
by
huangZW
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
111
parent
9e3440cf
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
79 additions
and
0 deletions
+79
-0
AppPageType.java
...ain/java/com/gic/haoban/manage/api/enums/AppPageType.java
+58
-0
StaffDepartmentRelatedApiService.java
.../manage/api/service/StaffDepartmentRelatedApiService.java
+2
-0
StaffDepartmentRelatedApiServiceImpl.java
...ervice/out/impl/StaffDepartmentRelatedApiServiceImpl.java
+19
-0
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/enums/AppPageType.java
0 → 100644
View file @
554087b1
package
com
.
gic
.
haoban
.
manage
.
api
.
enums
;
/**
* Created by tgs on 2020/2/20.
*/
public
enum
AppPageType
{
//工作台
INDEX
(
1
,
""
),
//门店详情
STORE_DETAIL
(
2
,
"store_detail"
),
//任务详情(会话、话务、不良评价)
TASK_DETAIL
(
3
,
"hbapp_task_detail"
),
//日报详情
DAILY_DETAIL
(
4
,
"hbapp_task_daily_report_detail"
),
//指标管理详情
PERFORMANCE_DETAIL
(
5
,
"hbapp_task_kpi_detail"
),
//顾客详情
CUSTOMER_DETAIL
(
6
,
"hbapp_customer_detail"
),
//会员列表
MEMBER_LIST
(
7
,
"hbapp_customer_list"
),
//分配会员
DISTRIBUTE_MEMBER
(
8
,
"hbapp_customer_distribute"
),
//任务列表
TASK_LIST
(
9
,
"hbapp_task_list"
),
//商品详情
GOOD_DETAIL
(
10
,
"hbapp_commodity_detail"
);
AppPageType
(
int
type
,
String
desc
){
this
.
code
=
type
;
this
.
desc
=
desc
;
}
private
int
code
;
private
String
desc
;
public
static
String
getDescByCode
(
int
type
)
{
for
(
AppPageType
c
:
AppPageType
.
values
())
{
if
(
c
.
getCode
()
==
type
)
{
return
c
.
desc
;
}
}
return
null
;
}
public
String
getDesc
()
{
return
desc
;
}
public
void
setDesc
(
String
desc
)
{
this
.
desc
=
desc
;
}
public
int
getCode
()
{
return
code
;
}
public
void
setCode
(
int
code
)
{
this
.
code
=
code
;
}
}
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/service/StaffDepartmentRelatedApiService.java
View file @
554087b1
...
...
@@ -29,6 +29,8 @@ public interface StaffDepartmentRelatedApiService {
String
getWxUserIdByClerkId
(
String
clerkId
);
String
getPageUrl
(
int
type
,
String
data
);
//发送消息,单人发送
boolean
sendSingleMessage
(
String
wxUserId
,
String
title
,
String
content
,
String
pageUrl
);
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/StaffDepartmentRelatedApiServiceImpl.java
View file @
554087b1
package
com
.
gic
.
haoban
.
manage
.
service
.
service
.
out
.
impl
;
import
java.net.URLEncoder
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Objects
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.http.client.utils.URLEncodedUtils
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
@@ -18,6 +20,7 @@ import com.gic.commons.util.EntityUtil;
import
com.gic.enterprise.api.dto.MessageDTO
;
import
com.gic.haoban.manage.api.dto.ApplicationDTO
;
import
com.gic.haoban.manage.api.dto.StaffDepartmentRelatedDTO
;
import
com.gic.haoban.manage.api.enums.AppPageType
;
import
com.gic.haoban.manage.api.service.ApplicationApiService
;
import
com.gic.haoban.manage.api.service.StaffDepartmentRelatedApiService
;
import
com.gic.haoban.manage.service.config.Config
;
...
...
@@ -142,6 +145,22 @@ public class StaffDepartmentRelatedApiServiceImpl implements StaffDepartmentRela
boolean
b
=
qywxSuiteApiService
.
sendMessage
(
config
.
getCorpid
(),
config
.
getSuiteId
(),
messageDTO
);
return
b
;
}
@Override
public
String
getPageUrl
(
int
type
,
String
data
)
{
String
baseUrl
=
"/pages/route/index"
;
String
addurl
=
AppPageType
.
getDescByCode
(
type
);
String
url
=
""
;
if
(
type
==
AppPageType
.
INDEX
.
getCode
()){
//工作台
url
=
baseUrl
+
"?pageType="
+
addurl
;
}
else
{
url
=
baseUrl
+
"?pageType="
+
addurl
;
}
url
=
url
+
"&data="
+
data
;
String
resultUrl
=
URLEncoder
.
encode
(
url
);
return
resultUrl
;
}
}
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