合并解决冲突或升级jdk17语法
This commit is contained in:
parent
f5060c81a1
commit
9da505964a
@ -209,7 +209,7 @@ public class FrontierProtectionDevAlarmController {
|
||||
@ApiImplicitParam(name = "type", value = "1今日2、7日3、30日", paramType = "body", required = true, dataType = "Integer"),
|
||||
})
|
||||
@PostMapping(value = "/countAlarmType")
|
||||
public Result<SectorVo> countAlarmType(@ApiIgnore @RequestBody HashMap<String, Object> paramMap) {
|
||||
public Result<SectorVo> countAlarmType(@Parameter(hidden = true) @RequestBody HashMap<String, Object> paramMap) {
|
||||
ArrayList<SectorOneVo> list = frontierProtectionDevAlarmService.countAlarmType(paramMap);
|
||||
return Result.success(SectorVo.getSectorVoByEnum(list, ParamEnum.FrontierProtectionDevAlarmTypeEnum.values(), false));
|
||||
}
|
||||
|
||||
@ -8,6 +8,8 @@ import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.zhgd.xmgl.modules.frontier.entity.vo.CountFrontierProtectionDevAlarmVo;
|
||||
|
||||
import jakarta.servlet.http.HttpServletRequest;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
@ -20,6 +20,8 @@ import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import jakarta.servlet.http.HttpServletRequest;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
|
||||
@ -96,13 +96,13 @@ public class FrontierProtectionDevServiceImpl extends ServiceImpl<FrontierProtec
|
||||
.eq(FrontierProtectionDev::getProjectSn, projectSn))));
|
||||
vo.setOnlineNum(vo.getDeviceNum());
|
||||
vo.setOfflineNum(0);
|
||||
int count = frontierProtectionDevAlarmService.count(new LambdaQueryWrapper<FrontierProtectionDevAlarm>()
|
||||
int count = (int) frontierProtectionDevAlarmService.count(new LambdaQueryWrapper<FrontierProtectionDevAlarm>()
|
||||
.eq(FrontierProtectionDevAlarm::getProjectSn, projectSn)
|
||||
.ge(FrontierProtectionDevAlarm::getAlarmTime, DateUtil.formatDateTime(DateUtil.beginOfDay(new Date())))
|
||||
.le(FrontierProtectionDevAlarm::getAlarmTime, DateUtil.formatDateTime(DateUtil.endOfDay(new Date())))
|
||||
);
|
||||
vo.setAlarmNumToday(count);
|
||||
int count1 = frontierProtectionDevAlarmService.count(new LambdaQueryWrapper<FrontierProtectionDevAlarm>()
|
||||
int count1 = (int) frontierProtectionDevAlarmService.count(new LambdaQueryWrapper<FrontierProtectionDevAlarm>()
|
||||
.eq(FrontierProtectionDevAlarm::getProjectSn, projectSn)
|
||||
.ge(FrontierProtectionDevAlarm::getAlarmTime, DateUtil.formatDateTime(DateUtil.beginOfDay(DateUtil.offsetDay(new Date(), -1))))
|
||||
.le(FrontierProtectionDevAlarm::getAlarmTime, DateUtil.formatDateTime(DateUtil.endOfDay(DateUtil.offsetDay(new Date(), -1))))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user