| | |
| | | package com.ycl.mapper.platform.zf; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ycl.entity.platform.zf.EnforcelawReport; |
| | | |
| | | /** |
| | |
| | | */ |
| | | public interface EnforcelawReportMapper extends BaseMapper<EnforcelawReport> { |
| | | |
| | | Page<EnforcelawReport> selectPageVo(Page<EnforcelawReport> page, String startTime, String endTime, String community, String status, String partiesName, String partiesID); |
| | | } |
| | |
| | | package com.ycl.mapper.platform.zf; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ycl.entity.platform.zf.EnforcelawReport; |
| | | import com.ycl.entity.platform.zf.VideowarmEventsreport; |
| | | |
| | | /** |
| | |
| | | */ |
| | | public interface VideowarmEventsreportMapper extends BaseMapper<VideowarmEventsreport> { |
| | | |
| | | Page selectPageVo(Page<VideowarmEventsreport> page, String startTime, String endTime, String eventLocation, String eventName, String eventType, String eventRegion); |
| | | } |
| | |
| | | package com.ycl.service.platform.zf; |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ycl.entity.platform.zf.EnforcelawReport; |
| | | import com.ycl.vo.zf.ZfVO; |
| | |
| | | * 违规事项处置管理:包含违法(违建)情况上报、立案、派遣、处置、核查、结案 服务类 |
| | | * </p> |
| | | * |
| | | * @author lyq |
| | | * @author wl |
| | | * @since 2022-09-14 |
| | | */ |
| | | public interface IEnforcelawReportService extends IService<EnforcelawReport> { |
| | |
| | | * @param params |
| | | */ |
| | | void report(ZfVO.ZfReportVO params); |
| | | |
| | | |
| | | Page<EnforcelawReport> selectPageVo(Page<EnforcelawReport> page, String startTime, String endTime, String community, String status, String partiesName, String partiesID); |
| | | } |
| | |
| | | package com.ycl.service.platform.zf; |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ycl.entity.platform.zf.EnforcelawReport; |
| | | import com.ycl.entity.platform.zf.VideowarmEventsreport; |
| | | |
| | | /** |
| | |
| | | * 服务类 |
| | | * </p> |
| | | * |
| | | * @author lyq |
| | | * @author wl |
| | | * @since 2022-09-16 |
| | | */ |
| | | public interface IVideowarmEventsreportService extends IService<VideowarmEventsreport> { |
| | | |
| | | } |
| | | Page selectPageVo(Page<VideowarmEventsreport> enforcelawReportPage, String startTime, String endTime, String eventName, String eventType, String eventLocation, String eventRegion); |
| | | } |
| | |
| | | package com.ycl.service.platform.zf.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ycl.api.BaseEntity; |
| | | import com.ycl.entity.platform.zf.EnforcelawReport; |
| | | import com.ycl.enums.common.ResultCode; |
| | | import com.ycl.exception.ApiException; |
| | |
| | | throw new ApiException(ResultCode.RECORD_SAVE_FAIL); |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | public Page<EnforcelawReport> selectPageVo(Page<EnforcelawReport> page, String startTime, String endTime, String community, String status, String partiesName, String partiesID) { |
| | | return enforcelawReportMapper.selectPageVo(page, startTime, endTime, community, status, partiesName, partiesID); |
| | | } |
| | | } |
| | |
| | | package com.ycl.service.platform.zf.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ycl.entity.platform.zf.EnforcelawReport; |
| | | import com.ycl.entity.platform.zf.VideowarmEventsreport; |
| | | import com.ycl.mapper.platform.zf.VideowarmEventsreportMapper; |
| | | import com.ycl.service.platform.zf.IVideowarmEventsreportService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | |
| | | @Service |
| | | public class VideowarmEventsreportServiceImpl extends ServiceImpl<VideowarmEventsreportMapper, VideowarmEventsreport> implements IVideowarmEventsreportService { |
| | | |
| | | @Autowired |
| | | VideowarmEventsreportMapper eventsreportMapper; |
| | | |
| | | @Override |
| | | public Page selectPageVo(Page<VideowarmEventsreport> page, String startTime, String endTime, String eventName, String eventType, String eventLocation, String eventRegion) { |
| | | return eventsreportMapper.selectPageVo(page, startTime, endTime, eventLocation, eventName, eventType, eventRegion); |
| | | } |
| | | } |
| | |
| | | id, infoResoure, acceptor, problemTypes, category, county, street, afAddr, informer, contact, reason, problemDesc, lawOfficer, partiesName, partiesID, partiesPhone, idPositiveImage, idNegativeImage, illegalBuildLocation, illegalBuildLength, illegalBuildWidth, illegalBuildHigh, illegalBuildMaterials, IllegalPhotos, rectifidPhotos, accessory, disposeRemark, inspectors, status, cTime, community |
| | | </sql> |
| | | |
| | | <select id="selectPageVo" resultType="com.ycl.entity.platform.zf.EnforcelawReport"> |
| | | SELECT * FROM ums_enforcelaw_report |
| | | <where> |
| | | <if test="community!=null and community!=''" > |
| | | community=#{community} |
| | | </if> |
| | | <if test="status!=null and status!=''" > |
| | | status=#{status} |
| | | </if> |
| | | <if test="partiesName!=null and partiesName!=''" > |
| | | partiesName=#{partiesName} |
| | | </if> |
| | | <if test="partiesID!=null and partiesID!=''" > |
| | | partiesID=#{partiesID} |
| | | </if> |
| | | <if test="startTime!=null and startTime!=''and endTime!=null and endTime!=''" > |
| | | ctime between #{startTime} and #{endTime} |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ycl.mapper.platform.zf.VideowarmEventsreportMapper"> |
| | | |
| | | <!-- 通用查询映射结果 --> |
| | | <resultMap id="BaseResultMap" type="com.ycl.entity.platform.zf.VideowarmEventsreport"> |
| | | <id column="id" property="id" /> |
| | | <result column="eventName" property="eventName" /> |
| | | <result column="eventType" property="eventType" /> |
| | | <result column="associatedShops" property="associatedShops" /> |
| | | <result column="eventLocaation" property="eventLocaation" /> |
| | | <result column="eventRegion" property="eventRegion" /> |
| | | <result column="videoOrImage" property="videoOrImage" /> |
| | | <result column="contentDesc" property="contentDesc" /> |
| | | <result column="eventTime" property="eventTime" /> |
| | | <result column="cTime" property="cTime" /> |
| | | </resultMap> |
| | | |
| | | <!-- 通用查询结果列 --> |
| | | <sql id="Base_Column_List"> |
| | | id, eventName, eventType, associatedShops, eventLocaation, eventRegion, videoOrImage, contentDesc, eventTime, cTime |
| | | </sql> |
| | | |
| | | |
| | | <select id="selectPageVo" resultType="com.ycl.entity.platform.zf.VideowarmEventsreport"> |
| | | SELECT * FROM ums_videowarm_eventsreport |
| | | <where> |
| | | <if test="eventName!=null and eventName!=''" > |
| | | eventName=#{eventName} |
| | | </if> |
| | | <if test="eventType!=null and eventType!=''" > |
| | | eventType=#{eventType} |
| | | </if> |
| | | <if test="eventLocation!=null and eventLocation!=''" > |
| | | eventLocation=#{eventLocation} |
| | | </if> |
| | | <if test="eventRegion!=null and eventRegion!=''" > |
| | | eventRegion=#{eventRegion} |
| | | </if> |
| | | <if test="startTime!=null and startTime!=''and endTime!=null and endTime!=''" > |
| | | ctime between #{startTime} and #{endTime} |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | </mapper> |
| | |
| | | GlobalConfig gc = new GlobalConfig(); |
| | | String projectPath = System.getProperty("user.dir"); |
| | | gc.setOutputDir(projectPath + "/ycl-generator/src/main/java"); |
| | | gc.setAuthor("lyq");//作者 |
| | | gc.setAuthor("wl");//作者 |
| | | gc.setBaseResultMap(true); //mapper.xml 生成 ResultMap |
| | | gc.setBaseColumnList(true); //mapper.xml 生成 ColumnList |
| | | // gc.setSwagger2(true); |
| | |
| | | |
| | | import com.alibaba.excel.EasyExcel; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.StringUtils; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ycl.api.CommonResult; |
| | | import com.ycl.controller.BaseController; |
| | | import com.ycl.entity.platform.zf.EnforcelawReport; |
| | |
| | | * 违规事项处置管理:包含违法(违建)情况上报、立案、派遣、处置、核查、结案 前端控制器 |
| | | * </p> |
| | | * |
| | | * @author lyq |
| | | * @author wl |
| | | * @since 2022-09-14 |
| | | */ |
| | | @RestController |
| | |
| | | @RequestParam(required = false) Integer current, |
| | | @RequestParam(required = false) Integer size |
| | | ) { |
| | | QueryWrapper<EnforcelawReport> enforcelawReportQueryWrapper = new QueryWrapper<>(); |
| | | if (StringUtils.isNotBlank(startTime) && StringUtils.isNotBlank(endTime)) { |
| | | enforcelawReportQueryWrapper.between("cTime", startTime, endTime); |
| | | } |
| | | if (StringUtils.isNotBlank(community)) { |
| | | enforcelawReportQueryWrapper.eq("community", community); |
| | | } |
| | | if (StringUtils.isNotBlank(status)) { |
| | | enforcelawReportQueryWrapper.eq("status", status); |
| | | } |
| | | if (StringUtils.isNotBlank(partiesName)) { |
| | | enforcelawReportQueryWrapper.eq("partiesName", partiesName); |
| | | } |
| | | if (StringUtils.isNotBlank(partiesID)) { |
| | | enforcelawReportQueryWrapper.eq("partiesID", partiesID); |
| | | } |
| | | return CommonResult.success(enforcelawReportService.list(enforcelawReportQueryWrapper).stream().skip((current-1)*size).limit(size).collect(Collectors.toList())); |
| | | Page<EnforcelawReport> enforcelawReportPage = new Page<>(); |
| | | enforcelawReportPage.setCurrent(current); |
| | | enforcelawReportPage.setSize(size); |
| | | return CommonResult.success(enforcelawReportService.selectPageVo(enforcelawReportPage,startTime,endTime,community,status,partiesName,partiesID)); |
| | | } |
| | | @GetMapping("/search/one") |
| | | @ApiOperation("查询城市违建详情") |
| | |
| | | import com.alibaba.excel.EasyExcel; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.toolkit.StringUtils; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ycl.api.CommonResult; |
| | | import com.ycl.controller.BaseController; |
| | | import com.ycl.entity.platform.zf.EnforcelawReport; |
| | | import com.ycl.entity.platform.zf.VideowarmEventsreport; |
| | | import com.ycl.service.platform.zf.IVideowarmEventsreportService; |
| | | import io.swagger.annotations.Api; |
| | |
| | | @RequestParam(required = false) Integer current, |
| | | @RequestParam(required = false) Integer size |
| | | ) { |
| | | QueryWrapper<VideowarmEventsreport> videowarmEventsreportQueryWrapper = new QueryWrapper<>(); |
| | | if (StringUtils.isNotBlank(startTime) && StringUtils.isNotBlank(endTime)) { |
| | | videowarmEventsreportQueryWrapper.between("cTime", startTime, endTime); |
| | | } |
| | | if (StringUtils.isNotBlank(eventName)) { |
| | | videowarmEventsreportQueryWrapper.eq("eventName", eventName); |
| | | } |
| | | if (StringUtils.isNotBlank(eventType)) { |
| | | videowarmEventsreportQueryWrapper.eq("eventType", eventType); |
| | | } |
| | | if (StringUtils.isNotBlank(eventLocation)) { |
| | | videowarmEventsreportQueryWrapper.eq("eventLocation", eventLocation); |
| | | } |
| | | if (StringUtils.isNotBlank(eventRegion)) { |
| | | videowarmEventsreportQueryWrapper.eq("eventRegion", eventRegion); |
| | | } |
| | | return CommonResult.success(iVideowarmEventsreportService.list(videowarmEventsreportQueryWrapper).stream().skip((current-1)*size).limit(size).collect(Collectors.toList())); |
| | | Page<VideowarmEventsreport> page = new Page<>(); |
| | | page.setCurrent(current); |
| | | page.setSize(size); |
| | | return CommonResult.success(iVideowarmEventsreportService.selectPageVo(page,startTime,endTime,eventName,eventType,eventLocation,eventRegion)); |
| | | } |
| | | @GetMapping("/search/one") |
| | | @ApiOperation("查询违规情况详情") |