| | |
| | | @Data |
| | | @ApiModel |
| | | public class CockpitVO { |
| | | // @Data |
| | | // @Data |
| | | // @ApiModel |
| | | // public class Params1VO implements Serializable { |
| | | // @ApiModelProperty(value = "appId", example = "1") |
| | |
| | | // @Data |
| | | // @ApiModel |
| | | // public class Params2VO implements Serializable { |
| | | @ApiModelProperty(value = "appId", example = "1") |
| | | @NotBlank(message = "appId不能为空") |
| | | private String appId; |
| | | @ApiModelProperty(value = "appKey", example = "1") |
| | | @NotBlank(message = "appKey不能为空") |
| | | private String appKey; |
| | | @ApiModelProperty(value = "sign", example = "sfagjgfjgfjdgfjsgdfgsa") |
| | | @NotBlank(message = "sign不能为空") |
| | | private String sign; |
| | | @ApiModelProperty(value = "appId", example = "1") |
| | | @NotBlank(message = "appId不能为空") |
| | | private String appId; |
| | | @ApiModelProperty(value = "appKey", example = "1") |
| | | @NotBlank(message = "appKey不能为空") |
| | | private String appKey; |
| | | @ApiModelProperty(value = "sign", example = "sfagjgfjgfjdgfjsgdfgsa") |
| | | @NotBlank(message = "sign不能为空") |
| | | private String sign; |
| | | |
| | | @ApiModelProperty(value = "streetId", example = "25") |
| | | private Integer streetId; |
| | | @ApiModelProperty(value = "开始时间,格式yyyy-MM-dd hh:mm:ss", example = "2022-10-22 13:22:22") |
| | | @ApiModelProperty(value = "streetId", example = "25") |
| | | private Integer streetId; |
| | | @ApiModelProperty(value = "开始时间,格式yyyy-MM-dd hh:mm:ss", example = "2022-10-22 13:22:22") |
| | | // @NotBlank(message = "开始时间不能为空") |
| | | private String beginTime; |
| | | @ApiModelProperty(value = "结束时间,格式yyyy-MM-dd hh:mm:ss", example = "2022-10-23 13:22:22") |
| | | private String beginTime; |
| | | @ApiModelProperty(value = "结束时间,格式yyyy-MM-dd hh:mm:ss", example = "2022-10-23 13:22:22") |
| | | // @NotBlank(message = "结束时间不能为空") |
| | | private String endTime; |
| | | private String endTime; |
| | | |
| | | @ApiModelProperty(value = "pageIndex", example = "25") |
| | | private Integer pageIndex; |
| | | |
| | | |
| | | @ApiModelProperty(value = "pageSize", example = "25") |
| | | private Integer pageSize; |
| | | // } |
| | | } |
| | |
| | | package com.ycl.controller.cockpit.enforcementEvents; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.ycl.api.CommonResult; |
| | | import com.ycl.dto.trend.TrendAnalysisParam; |
| | | import com.ycl.entity.caseHandler.BaseCase; |
| | |
| | | import com.ycl.util.CheckApiUtil; |
| | | import com.ycl.vo.cockpit.CockpitVO; |
| | | import com.ycl.vo.cockpit.enforcementEvents.EnforcementEventsVO; |
| | | import com.ycl.vo.cockpit.enforcementEvents.EventVO; |
| | | import com.ycl.vo.cockpit.enforcementEvents.VideoAndAreaVO; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | |
| | | infoVO.setWeek(iBaseCaseService.weekCount()); |
| | | infoVO.setDispatch(iBaseCaseService.dispatchCount()); |
| | | infoVO.setIdentification(iBaseCaseService.alCount()); |
| | | infoVO.setEvent(iBaseCaseService.selectEventList(params.getBeginTime(), params.getEndTime())); |
| | | IPage<EventVO> page = iBaseCaseService.selectEventList(params.getBeginTime(), params.getEndTime(),params.getPageIndex(),params.getPageSize()); |
| | | infoVO.setEvent(page.getRecords()); |
| | | infoVO.setTotal(page.getTotal()); |
| | | return CommonResult.success(infoVO); |
| | | } |
| | | } |
| | |
| | | package com.ycl.mapper.caseHandler; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ycl.dto.caseHandler.QueryForViolationParam; |
| | | import com.ycl.dto.cockpitManage.DelayDO; |
| | |
| | | |
| | | Integer dispatchCount(); |
| | | |
| | | List<EventVO> selectEventList(String beginTime, String endTime); |
| | | IPage<EventVO> selectEventList(IPage<EventVO> page, String beginTime, String endTime); |
| | | |
| | | Integer alCount(); |
| | | |
| | |
| | | package com.ycl.service.caseHandler; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ycl.dto.caseHandler.QueryForViolationParam; |
| | |
| | | */ |
| | | String uploadEvent(Long caseId); |
| | | |
| | | Page listViolationsPage(Page page, Integer state, Integer resource, String code, String categoryBig, String categorySmall, Integer street, String site, String startTime, String endTime,Integer violationsTypeId); |
| | | Page listViolationsPage(Page page, Integer state, Integer resource, String code, String categoryBig, String categorySmall, Integer street, String site, String startTime, String endTime, Integer violationsTypeId); |
| | | |
| | | Page listIllegalBuilding(Page page, Integer state, Integer resource); |
| | | |
| | |
| | | |
| | | Integer alCount(); |
| | | |
| | | List<EventVO> selectEventList(String beginTime, String endTime); |
| | | IPage<EventVO> selectEventList(String beginTime, String endTime, Integer pageIndex, Integer pageSize); |
| | | |
| | | List<VideoAndAreaVO> areaCount(); |
| | | |
| | | List<DelayVO> selectDelayList(); |
| | | |
| | | Map<String,Object> statistics(); |
| | | Map<String, Object> statistics(); |
| | | } |
| | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ycl.bo.AdminUserDetails; |
| | |
| | | } |
| | | |
| | | @Override |
| | | public List<EventVO> selectEventList(String beginTime, String endTime) { |
| | | return baseCaseMapper.selectEventList(beginTime, endTime); |
| | | public IPage<EventVO> selectEventList(String beginTime, String endTime, Integer pageIndex, Integer pageSize) { |
| | | if (pageIndex == null) { |
| | | pageIndex = 1; |
| | | } |
| | | if (pageSize == null) { |
| | | pageSize = 50; |
| | | } |
| | | IPage<EventVO> page = new Page<>(pageIndex, pageSize); |
| | | return baseCaseMapper.selectEventList(page, beginTime, endTime); |
| | | } |
| | | |
| | | @Override |
| | |
| | | sb.append("&streetId="); |
| | | sb.append(params.getStreetId()); |
| | | } |
| | | if (params.getPageIndex() != null && params.getPageSize() != null) { |
| | | sb.append("&pageIndex="); |
| | | sb.append(params.getPageIndex()); |
| | | sb.append("&pageSize="); |
| | | sb.append(params.getPageSize()); |
| | | } |
| | | result = MD5Util.md5Encrypt32Lower(sb.toString()); |
| | | if (!params.getSign().equals(result)) { |
| | | throw new ApiException(ResultCode.SIGN_ERROR); |
| | | } |
| | | if (!params.getSign().equals(result)) { |
| | | throw new ApiException(ResultCode.SIGN_ERROR); |
| | | } |
| | | } |
| | | } |
| | |
| | | private Integer identification; |
| | | @ApiModelProperty(value = "具体事件的数据信息") |
| | | private List<EventVO> event; |
| | | @ApiModelProperty(value = "具体事件的数据信息") |
| | | private Long total; |
| | | } |
| | | } |
| | |
| | | </if> |
| | | |
| | | </where> |
| | | |
| | | order by t1.id desc |
| | | </select> |
| | | <select id="areaCount" resultType="com.ycl.vo.cockpit.enforcementEvents.VideoAndAreaVO"> |
| | | SELECT t2.region_name name, |