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
0ce3dd7c
Commit
0ce3dd7c
authored
May 22, 2024
by
guojx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
流失数据接口
parent
ae1ae5c5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
5 deletions
+11
-5
WechatWorkController.java
...ic/haoban/manage/web/controller/WechatWorkController.java
+10
-5
WechatWorkLostClerkHandle.java
...c/haoban/manage/web/handle/WechatWorkLostClerkHandle.java
+1
-0
No files found.
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/WechatWorkController.java
View file @
0ce3dd7c
...
...
@@ -16,9 +16,7 @@ import com.gic.haoban.manage.web.qo.wechatwork.*;
import
com.gic.haoban.manage.web.utils.data.ConcurrencyUtils
;
import
com.gic.haoban.manage.web.utils.data.MapThreadHandlerRequest
;
import
com.gic.haoban.manage.web.utils.data.StoreAuthUtils
;
import
com.gic.haoban.manage.web.vo.wechatwork.DataPageVO
;
import
com.gic.haoban.manage.web.vo.wechatwork.WechatWorkLostDetailVO
;
import
com.gic.haoban.manage.web.vo.wechatwork.WechatWorkLostVO
;
import
com.gic.haoban.manage.web.vo.wechatwork.*
;
import
com.gic.qcloud.BucketNameEnum
;
import
com.gic.web.common.controller.NewBaseController
;
import
com.gic.web.common.download.DownloadTask
;
...
...
@@ -131,13 +129,16 @@ public class WechatWorkController extends NewBaseController {
* @return
*/
@RequestMapping
(
value
=
"lost-store-group"
)
public
RestResponse
<
DataPageVO
>
lostStoreGroup
(
@RequestBody
WechatWorkLostStoreGroupQO
qo
)
{
public
RestResponse
<
DataPageVO
<
WechatWorkLostStoreGroupVO
>
>
lostStoreGroup
(
@RequestBody
WechatWorkLostStoreGroupQO
qo
)
{
JSONObject
jsonObject
=
new
JSONObject
();
qo
.
dealWithParam
(
jsonObject
);
storeAuthUtils
.
setStoreGroupJsonParam
(
jsonObject
,
qo
);
jsonObject
.
put
(
"apolloKey"
,
"data_mbr_scale_haoban_background_loss_statisti"
);
jsonObject
.
put
(
"groupType"
,
1
);
DataPageVO
vo
=
storeAuthUtils
.
getDataCommon
(
jsonObject
.
toJSONString
(),
qo
.
getPageNum
(),
"data_mbr_scale_haoban_background_loss_statisti"
,
qo
.
getPageSize
(),
true
);
if
(
CollectionUtils
.
isNotEmpty
(
vo
.
getRows
()))
{
vo
.
setRows
(
JSONArray
.
parseArray
(
JSON
.
toJSONString
(
vo
.
getRows
()),
WechatWorkLostStoreGroupVO
.
class
));
}
return
RestResponse
.
successResult
(
vo
);
}
...
...
@@ -205,7 +206,7 @@ public class WechatWorkController extends NewBaseController {
* @return
*/
@RequestMapping
(
value
=
"lost-clerk"
)
public
RestResponse
<
DataPageVO
>
lostClerk
(
@RequestBody
WechatWorkLostClerkQO
qo
)
{
public
RestResponse
<
DataPageVO
<
WechatWorkLostClerkVO
>
>
lostClerk
(
@RequestBody
WechatWorkLostClerkQO
qo
)
{
JSONObject
jsonObject
=
new
JSONObject
();
qo
.
dealWithParam
(
jsonObject
);
storeAuthUtils
.
setCommonParam
(
jsonObject
,
new
StoreGroupCommonQO
());
...
...
@@ -227,10 +228,14 @@ public class WechatWorkController extends NewBaseController {
list
=
new
ArrayList
<>();
}
if
(
total
!=
null
)
{
total
.
put
(
"clerkName"
,
"合计("
+
list
.
size
()
+
")"
);
storeAuthUtils
.
setChannelGroupList
(
total
);
list
.
add
(
0
,
total
);
}
vo
.
setRows
(
list
);
if
(
CollectionUtils
.
isNotEmpty
(
vo
.
getRows
()))
{
vo
.
setRows
(
JSONArray
.
parseArray
(
JSON
.
toJSONString
(
vo
.
getRows
()),
WechatWorkLostClerkVO
.
class
));
}
return
RestResponse
.
successResult
(
vo
);
}
...
...
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/handle/WechatWorkLostClerkHandle.java
View file @
0ce3dd7c
...
...
@@ -44,6 +44,7 @@ public class WechatWorkLostClerkHandle extends DownloadHandlerAbstract<WechatWor
list
=
new
ArrayList
<>();
}
if
(
total
!=
null
)
{
total
.
put
(
"clerkName"
,
"合计("
+
list
.
size
()
+
")"
);
storeAuthUtils
.
setChannelGroupList
(
total
);
list
.
add
(
0
,
total
);
}
...
...
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