Commit e37e2b90 by tyfanchz

修改时间计算

1 parent 9caa06f4
...@@ -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, "系统异常"),
; ;
......
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) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!