Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
open-source
/
open-platform-admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit d58a67b9
authored
Dec 18, 2020
by
tyfanchz
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
添加参数校验
1 parent
4cc84c58
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
9 deletions
src/main/java/com/glsx/controller/IndexController.java
src/main/java/com/glsx/controller/IndexController.java
View file @
d58a67b
package
com
.
glsx
.
controller
;
package
com
.
glsx
.
controller
;
import
cn.com.glsx.openplatform.service.*
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
cn.com.glsx.openplatform.service.ApiCallMgrService
;
import
cn.com.glsx.openplatform.service.AppDownloadMgrService
;
import
cn.com.glsx.openplatform.service.CustomerMgrService
;
import
cn.com.glsx.openplatform.service.DeviceMgrService
;
import
cn.com.glsx.openplatform.service.IndexService
;
import
cn.com.glsx.openplatform.service.UserMgrService
;
import
cn.com.glsx.openplatform.vo.R
;
import
cn.com.glsx.openplatform.vo.R
;
import
org.slf4j.Logger
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
/**
/**
* @author deployer name
* @author deployer name
* @version V1.0
* @version V1.0
...
@@ -100,28 +105,28 @@ public class IndexController {
...
@@ -100,28 +105,28 @@ public class IndexController {
@RequestMapping
(
value
=
"/getUcSummaryStatistic"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"/getUcSummaryStatistic"
,
method
=
RequestMethod
.
GET
)
@ResponseBody
@ResponseBody
public
R
getUcSummaryStatistic
(
String
customerName
)
{
public
R
getUcSummaryStatistic
(
@RequestParam
String
customerName
)
{
Map
<
String
,
Integer
>
statisticMap
=
this
.
indexService
.
getUcSummaryStatistic
(
customerName
);
Map
<
String
,
Integer
>
statisticMap
=
this
.
indexService
.
getUcSummaryStatistic
(
customerName
);
return
R
.
ok
().
data
(
statisticMap
);
return
R
.
ok
().
data
(
statisticMap
);
}
}
@RequestMapping
(
value
=
"/getUcDeviceActivationStatistic"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"/getUcDeviceActivationStatistic"
,
method
=
RequestMethod
.
GET
)
public
R
getUcDeviceActivationStatistic
(
String
customerName
)
{
public
R
getUcDeviceActivationStatistic
(
@RequestParam
String
customerName
)
{
Map
<
String
,
Integer
>
statisticMap
=
this
.
indexService
Map
<
String
,
Integer
>
statisticMap
=
this
.
indexService
.
getUcDeviceActivationStatistic
(
customerName
);
.
getUcDeviceActivationStatistic
(
customerName
);
return
R
.
ok
().
data
(
statisticMap
);
return
R
.
ok
().
data
(
statisticMap
);
}
}
@RequestMapping
(
value
=
"/getUcUserActivityStatistic"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"/getUcUserActivityStatistic"
,
method
=
RequestMethod
.
GET
)
public
R
getUcUserActivityStatistic
(
String
customerName
)
{
public
R
getUcUserActivityStatistic
(
@RequestParam
String
customerName
)
{
Map
<
String
,
Integer
>
statisticMap
=
this
.
indexService
Map
<
String
,
Integer
>
statisticMap
=
this
.
indexService
.
getUcUserActivityStatistic
(
customerName
);
.
getUcUserActivityStatistic
(
customerName
);
return
R
.
ok
().
data
(
statisticMap
);
return
R
.
ok
().
data
(
statisticMap
);
}
}
@RequestMapping
(
value
=
"/getUcAppDownloadStatistic"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"/getUcAppDownloadStatistic"
,
method
=
RequestMethod
.
GET
)
public
R
getUcAppDownloadStatistic
(
String
customerName
)
{
public
R
getUcAppDownloadStatistic
(
@RequestParam
String
customerName
)
{
Map
<
String
,
Integer
>
statisticMap
=
this
.
indexService
Map
<
String
,
Integer
>
statisticMap
=
this
.
indexService
.
getUcAppDownloadStatistic
(
customerName
);
.
getUcAppDownloadStatistic
(
customerName
);
return
R
.
ok
().
data
(
statisticMap
);
return
R
.
ok
().
data
(
statisticMap
);
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment