初始版本提交
This commit is contained in:
@@ -23,4 +23,6 @@ public class LargeScreenCountParam extends BaseParam {
|
||||
|
||||
@ApiModelProperty(name="eventDeep",value="0.普通事件 1.严重事件 null.全部事件")
|
||||
private Integer eventDeep;
|
||||
|
||||
private Integer sendResult;
|
||||
}
|
||||
|
||||
@@ -47,6 +47,7 @@ import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
import org.springframework.util.CollectionUtils;
|
||||
import org.springframework.util.StringUtils;
|
||||
|
||||
import javax.annotation.PostConstruct;
|
||||
import java.time.LocalDate;
|
||||
@@ -659,6 +660,7 @@ public class LargeScreenCountServiceImpl implements LargeScreenCountService {
|
||||
DateTime end = DateUtil.endOfDay(DateUtil.parse(largeScreenCountParam.getSearchEndTime()));
|
||||
|
||||
LambdaQueryWrapper<MsgEventInfo> lambdaQueryWrapper = new LambdaQueryWrapper<>();
|
||||
lambdaQueryWrapper.eq(!StringUtils.isEmpty(largeScreenCountParam.getSendResult()),MsgEventInfo::getSendResult,largeScreenCountParam.getSendResult());
|
||||
lambdaQueryWrapper.orderByDesc(MsgEventInfo::getSendTime).between(MsgEventInfo::getSendTime,start,end);
|
||||
return msgEventInfoService.page(new Page<>(PageFactory.getPageNum(largeScreenCountParam),PageFactory.getPageSize(largeScreenCountParam)),lambdaQueryWrapper);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user