Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
open-source
/
rpc-openplatform
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit e37e2b90
authored
Dec 18, 2020
by
tyfanchz
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改时间计算
1 parent
9caa06f4
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
rpc-openplatform-api/src/main/java/cn/com/glsx/openplatform/enums/ResultCodeEnum.java
rpc-openplatform-container/src/main/java/cn/com/glsx/openplatform/service/IndexServiceImpl.java
rpc-openplatform-api/src/main/java/cn/com/glsx/openplatform/enums/ResultCodeEnum.java
View file @
e37e2b9
...
@@ -12,7 +12,8 @@ import cn.com.glsx.openplatform.exception.BusinessException;
...
@@ -12,7 +12,8 @@ import cn.com.glsx.openplatform.exception.BusinessException;
*/
*/
public
enum
ResultCodeEnum
{
public
enum
ResultCodeEnum
{
SUCCESS
(
200
,
"成功"
),
SUCCESS
(
200
,
"成功"
),
PARAM_ERROR
(
401
,
"参数错误"
),
REQUEST_ERROR
(
401
,
"请求错误"
),
PARAM_ERROR
(
402
,
"参数错误"
),
SERVER_ERROR
(
500
,
"系统异常"
),
SERVER_ERROR
(
500
,
"系统异常"
),
;
;
...
...
rpc-openplatform-container/src/main/java/cn/com/glsx/openplatform/service/IndexServiceImpl.java
View file @
e37e2b9
package
cn
.
com
.
glsx
.
openplatform
.
service
;
package
cn
.
com
.
glsx
.
openplatform
.
service
;
import
javax.annotation.Resource
;
import
java.util.Date
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
cn.com.glsx.openplatform.mapper.PlatformAppDownloadMapper
;
import
cn.com.glsx.openplatform.mapper.PlatformAppDownloadMapper
;
import
cn.com.glsx.openplatform.mapper.PlatformDeviceMapper
;
import
cn.com.glsx.openplatform.mapper.PlatformDeviceMapper
;
import
cn.com.glsx.openplatform.mapper.PlatformUserMapper
;
import
cn.com.glsx.openplatform.mapper.PlatformUserMapper
;
import
cn.hutool.core.date.DateUtil
;
import
cn.hutool.core.date.DateUtil
;
import
com.alibaba.dubbo.config.annotation.Service
;
import
org.slf4j.Logger
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.slf4j.LoggerFactory
;
import
com.alibaba.dubbo.config.annotation.Service
;
import
javax.annotation.Resource
;
import
java.util.Date
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
/**
/**
* <p>Description: 总览业务
* <p>Description: 总览业务
...
@@ -81,11 +80,11 @@ public class IndexServiceImpl implements IndexService {
...
@@ -81,11 +80,11 @@ public class IndexServiceImpl implements IndexService {
}
}
private
Date
getStatisticStartTime
()
{
private
Date
getStatisticStartTime
()
{
return
DateUtil
.
beginOfDay
(
new
Date
()
);
return
DateUtil
.
offsetDay
(
DateUtil
.
beginOfDay
(
new
Date
()),
-
31
);
}
}
private
Date
getStatisticEndTime
()
{
private
Date
getStatisticEndTime
()
{
return
DateUtil
.
offsetDay
(
DateUtil
.
beginOfDay
(
new
Date
()),
-
31
);
return
DateUtil
.
beginOfDay
(
new
Date
()
);
}
}
private
Map
<
String
,
Integer
>
convertColumnToMap
(
List
<
Map
<
String
,
Object
>>
columnList
)
{
private
Map
<
String
,
Integer
>
convertColumnToMap
(
List
<
Map
<
String
,
Object
>>
columnList
)
{
...
...
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