|
@@ -3,12 +3,14 @@ package com.bowintek.practice.services.impl;
|
|
|
import com.bowintek.practice.mapper.cquery.FactWellCQuery;
|
|
|
import com.bowintek.practice.model.EsQueryLog;
|
|
|
import com.bowintek.practice.services.service.FactWellService;
|
|
|
+import com.bowintek.practice.util.StringUtils;
|
|
|
import com.bowintek.practice.util.multipdb.DBTypeEnum;
|
|
|
import com.bowintek.practice.util.multipdb.SwitchDataSource;
|
|
|
import com.bowintek.practice.vo.EsQueryLogVo;
|
|
|
import com.bowintek.practice.vo.FactWell.FactWellGroupList;
|
|
|
import com.github.pagehelper.PageHelper;
|
|
|
import com.github.pagehelper.PageInfo;
|
|
|
+import org.apache.commons.lang3.SystemUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
@@ -49,7 +51,10 @@ public class FactWellServiceImpl implements FactWellService {
|
|
|
//重新计算当前12月
|
|
|
if(startTime==null || endTime==null) return getMonthGroupList(wellId);
|
|
|
|
|
|
- System.out.println("getMonthGroupList "+dateToDayString(startTime)+" "+dateToDayString(endTime));
|
|
|
+ System.out.println("getMonthGroupList startTime:"+dateToDayString(startTime)
|
|
|
+ +" endTime:"+dateToDayString(endTime)
|
|
|
+ +" wellId:"+wellId);
|
|
|
+ if(StringUtils.IsNullEmpty(wellId)) return new ArrayList<>();
|
|
|
|
|
|
List<FactWellGroupList> rtnList = factWellCQuery
|
|
|
.getMonthShowInList(wellId, dateToDayString(startTime), dateToDayString(endTime));
|
|
@@ -92,6 +97,11 @@ public class FactWellServiceImpl implements FactWellService {
|
|
|
//重新计算当前30天日期
|
|
|
if(startTime==null || endTime==null) return getDayGroupList(wellId);
|
|
|
|
|
|
+ System.out.println("getMonthGroupList startTime:"+dateToDayString(startTime)
|
|
|
+ +" endTime:"+dateToDayString(endTime)
|
|
|
+ +" wellId:"+wellId);
|
|
|
+ if(StringUtils.IsNullEmpty(wellId)) return new ArrayList<>();
|
|
|
+
|
|
|
List<FactWellGroupList> rtnList = factWellCQuery
|
|
|
.getDayGroupList(wellId, dateToDayString(startTime), dateToDayString(endTime));
|
|
|
|
|
@@ -139,7 +149,10 @@ public class FactWellServiceImpl implements FactWellService {
|
|
|
//重新计算当前12月
|
|
|
if(startTime==null || endTime==null) return getMonthGroupList(wellId);
|
|
|
|
|
|
- System.out.println("getMonthGroupList "+dateToDayString(startTime)+" "+dateToDayString(endTime));
|
|
|
+ System.out.println("getMonthGroupList startTime:"+dateToDayString(startTime)
|
|
|
+ +" endTime:"+dateToDayString(endTime)
|
|
|
+ +" wellId:"+wellId);
|
|
|
+ if(StringUtils.IsNullEmpty(wellId)) return new ArrayList<>();
|
|
|
|
|
|
List<FactWellGroupList> rtnList = factWellCQuery
|
|
|
.getMonthGroupList(wellId, dateToDayString(startTime), dateToDayString(endTime));
|
|
@@ -181,7 +194,10 @@ public class FactWellServiceImpl implements FactWellService {
|
|
|
//重新计算5年时间
|
|
|
if(startTime==null || endTime==null) return getYearGroupList(wellId);
|
|
|
|
|
|
- System.out.println("getYearGroupList "+dateToDayString(startTime)+" "+dateToDayString(endTime));
|
|
|
+ System.out.println("getMonthGroupList startTime:"+dateToDayString(startTime)
|
|
|
+ +" endTime:"+dateToDayString(endTime)
|
|
|
+ +" wellId:"+wellId);
|
|
|
+ if(StringUtils.IsNullEmpty(wellId)) return new ArrayList<>();
|
|
|
|
|
|
List<FactWellGroupList> rtnList = factWellCQuery
|
|
|
.getYearGroupList(wellId, dateToDayString(startTime), dateToDayString(endTime));
|