邮件统计
This commit is contained in:
parent
bc59a15887
commit
b741d18fc5
|
@ -22,6 +22,14 @@
|
|||
<groupId>org.jeecgframework.boot</groupId>
|
||||
<artifactId>jeecg-boot-starter-cloud</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- https://mvnrepository.com/artifact/com.google.guava/guava -->
|
||||
<dependency>
|
||||
<groupId>com.google.guava</groupId>
|
||||
<artifactId>guava</artifactId>
|
||||
<version>32.1.2-jre</version>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
|
||||
</project>
|
||||
</project>
|
||||
|
|
|
@ -0,0 +1,21 @@
|
|||
package org.jeecg.modules.entity.bo;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@Data
|
||||
public class StatDataNumber implements Serializable {
|
||||
|
||||
private int originalDataNumber = 0;
|
||||
private int anlyseDataNumber = 0;
|
||||
|
||||
public void addOriginalDataNumber(int incr) {
|
||||
originalDataNumber += incr;
|
||||
}
|
||||
|
||||
public void addAnlyseDataNumber(int incr) {
|
||||
anlyseDataNumber += incr;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,13 @@
|
|||
package org.jeecg.modules.entity.data;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@Data
|
||||
public class OriginalDataNumber implements Serializable {
|
||||
|
||||
private String siteCode;
|
||||
private String dataType;
|
||||
private Integer count;
|
||||
}
|
|
@ -4,6 +4,8 @@ import com.baomidou.mybatisplus.extension.service.IService;
|
|||
import org.jeecg.modules.entity.GardsAlertDataWeb;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
public interface IGardsAlertDataService extends IService<GardsAlertDataWeb> {
|
||||
|
||||
|
@ -11,4 +13,6 @@ public interface IGardsAlertDataService extends IService<GardsAlertDataWeb> {
|
|||
String startTime,
|
||||
String endTime,
|
||||
HttpServletResponse response);
|
||||
|
||||
List<GardsAlertDataWeb> queryByTime(Date startTime, Date endTime);
|
||||
}
|
||||
|
|
|
@ -7,6 +7,7 @@ import org.jeecg.modules.entity.GardsMetDataWeb;
|
|||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
public interface IGardsMetDataService extends IService<GardsMetDataWeb> {
|
||||
|
||||
|
@ -24,4 +25,6 @@ public interface IGardsMetDataService extends IService<GardsMetDataWeb> {
|
|||
String startTime,
|
||||
String endTime,
|
||||
HttpServletResponse response);
|
||||
|
||||
List<GardsMetDataWeb> queryByModDate(Date startTime, Date endTime);
|
||||
}
|
||||
|
|
|
@ -48,4 +48,6 @@ public interface IGardsSampleDataWebService extends IService<GardsSampleDataWeb>
|
|||
String startTime,
|
||||
String endTime,
|
||||
List<Integer> sampleIds);
|
||||
|
||||
List<GardsSampleDataWeb> queryByModDate(Date startTime, Date endTime);
|
||||
}
|
||||
|
|
|
@ -7,6 +7,7 @@ import org.jeecg.modules.entity.GardsSohDataWeb;
|
|||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
public interface IGardsSohDataService extends IService<GardsSohDataWeb> {
|
||||
|
||||
|
@ -41,4 +42,7 @@ public interface IGardsSohDataService extends IService<GardsSohDataWeb> {
|
|||
String startTime,
|
||||
String endTime,
|
||||
HttpServletResponse response);
|
||||
|
||||
|
||||
List<GardsSohDataWeb> queryByModDate(Date startTime, Date endTime);
|
||||
}
|
||||
|
|
|
@ -73,4 +73,11 @@ public class GardsAlertDataServiceImpl extends ServiceImpl<GardsAlertDataMapper,
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<GardsAlertDataWeb> queryByTime(Date startTime, Date endTime) {
|
||||
LambdaQueryWrapper<GardsAlertDataWeb> queryWrapper = new LambdaQueryWrapper<>();
|
||||
queryWrapper.between(GardsAlertDataWeb::getTime, startTime, endTime);
|
||||
return list(queryWrapper);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -112,4 +112,11 @@ public class GardsMetDataServiceImpl extends ServiceImpl<GardsMetDataMapper, Gar
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<GardsMetDataWeb> queryByModDate(Date startTime, Date endTime) {
|
||||
LambdaQueryWrapper<GardsMetDataWeb> queryWrapper = new LambdaQueryWrapper<>();
|
||||
queryWrapper.between(GardsMetDataWeb::getModdate, startTime ,endTime);
|
||||
return list(queryWrapper);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -709,4 +709,12 @@ public class GardsSampleDataWebServiceImpl extends ServiceImpl<GardsSampleDataWe
|
|||
}
|
||||
return sampleData;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<GardsSampleDataWeb> queryByModDate(Date startTime, Date endTime) {
|
||||
LambdaQueryWrapper<GardsSampleDataWeb> queryWrapper = new LambdaQueryWrapper<>();
|
||||
queryWrapper.between(GardsSampleDataWeb::getModdate, startTime, endTime);
|
||||
queryWrapper.orderByAsc(GardsSampleDataWeb::getSiteDetCode);
|
||||
return list(queryWrapper);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -7,6 +7,7 @@ import com.baomidou.dynamic.datasource.annotation.DS;
|
|||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import org.apache.commons.codec.language.bm.Lang;
|
||||
import org.apache.poi.ss.usermodel.Workbook;
|
||||
import org.jeecg.common.api.QueryRequest;
|
||||
import org.jeecg.common.api.vo.Result;
|
||||
|
@ -192,4 +193,11 @@ public class GardsSohDataServiceImpl extends ServiceImpl<GardsSohDataMapper, Gar
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<GardsSohDataWeb> queryByModDate(Date startTime, Date endTime) {
|
||||
LambdaQueryWrapper<GardsSohDataWeb> queryWrapper = new LambdaQueryWrapper<>();
|
||||
queryWrapper.between(GardsSohDataWeb::getModdate, startTime, endTime);
|
||||
return list(queryWrapper);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user