| | |
| | | return CommonResult.failed(); |
| | | } |
| | | |
| | | @ApiOperation("批量修改状态") |
| | | @ApiOperation("批量修改用户状态") |
| | | @RequestMapping(value = "/updateStatusBatch", method = RequestMethod.POST) |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "ids", value = "用户Ids",required = true, dataType = "Array"), |
| | |
| | | import com.ycl.entity.user.UmsRole; |
| | | import com.ycl.service.user.UmsRoleService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Controller; |
| | |
| | | int count = roleService.allocResource(roleId, resourceIds); |
| | | return CommonResult.success(count); |
| | | } |
| | | @ApiOperation("批量修改角色状态") |
| | | @RequestMapping(value = "/updateStatusBatch", method = RequestMethod.POST) |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "ids", value = "用户Ids",required = true, dataType = "Array"), |
| | | @ApiImplicitParam(name = "status", value = "状态0->禁用;1->启用",required = true, dataType = "Integer") |
| | | }) |
| | | @ResponseBody |
| | | public CommonResult updateStatusBatch(@RequestParam("ids") List<Long> ids, @RequestParam(value = "status") Integer status) { |
| | | boolean success = roleService.updateStatusBatch(ids, status); |
| | | if (success) { |
| | | return CommonResult.success(null); |
| | | } |
| | | return CommonResult.failed(); |
| | | } |
| | | |
| | | } |
| | |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.*; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @TableName("ums_role") |
| | | @ApiModel(value="UmsRole对象", description="后台用户角色表") |
| | | @Builder |
| | | @NoArgsConstructor |
| | | @AllArgsConstructor |
| | | public class UmsRole implements Serializable { |
| | | |
| | | private static final long serialVersionUID=1L; |
| | |
| | | */ |
| | | @Transactional |
| | | int allocResource(Long roleId, List<Long> resourceIds); |
| | | |
| | | Boolean updateStatusBatch(List<Long> ids, Integer status); |
| | | } |
| | |
| | | adminCacheService.delResourceListByRole(roleId); |
| | | return resourceIds.size(); |
| | | } |
| | | |
| | | @Override |
| | | public Boolean updateStatusBatch(List<Long> ids, Integer status) { |
| | | List<UmsRole> roles = new ArrayList<>(); |
| | | for (Long id : ids) { |
| | | UmsRole umsRole = UmsRole.builder(). |
| | | id(id).status(status).build(); |
| | | roles.add(umsRole); |
| | | } |
| | | updateBatchById(roles,roles.size()); |
| | | adminCacheService.delResourceListByRoleIds(ids); |
| | | return true; |
| | | } |
| | | } |
New file |
| | |
| | | package com.ycl.constant; |
| | | |
| | | /** |
| | | * <p> |
| | | * 案件状态类 |
| | | * </p> |
| | | * |
| | | * @author mg |
| | | * @since 2022-10-02 |
| | | */ |
| | | public class BaseCaseStatus { |
| | | /** |
| | | * 调度 |
| | | */ |
| | | public static final Integer DISPATCH = 3; |
| | | /** |
| | | * 审核 |
| | | */ |
| | | public static final Integer CHECK = 5; |
| | | |
| | | } |
| | |
| | | import com.ycl.dto.casePool.IllegalBuildingParam; |
| | | import com.ycl.dto.casePool.ViolationParam; |
| | | import com.ycl.entity.caseHandler.BaseCase; |
| | | import com.ycl.entity.caseHandler.BaseCaseDetail; |
| | | import com.ycl.entity.caseHandler.DisposeRecord; |
| | | import com.ycl.service.caseHandler.IBaseCaseService; |
| | | import com.ycl.service.caseHandler.IDisposeRecordService; |
| | |
| | | * @since 2022-09-24 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/base_case") |
| | | @RequestMapping("/base-case") |
| | | @Api(tags = "案件池") |
| | | public class BaseCaseController extends BaseController { |
| | | |
| | |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "code", value = "事件编号") |
| | | }) |
| | | public CommonResult baseCaseDetail(@PathVariable(value = "code") String code) { |
| | | public CommonResult<BaseCaseDetail> baseCaseDetail(@PathVariable(value = "code") String code) { |
| | | return CommonResult.success(baseCaseService.baseCaseDetail(code)); |
| | | } |
| | | |
New file |
| | |
| | | package com.ycl.controller.caseHandler; |
| | | |
| | | import com.ycl.api.CommonResult; |
| | | import com.ycl.dto.caseHandler.ChechParam; |
| | | import com.ycl.service.caseHandler.ICheckHandleService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | /** |
| | | * <p> |
| | | * 审核处理 前端控制器 |
| | | * </p> |
| | | * |
| | | * @author mg |
| | | * @since 2022-10-02 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/check_handle") |
| | | @Api(tags = "审核处理") |
| | | public class CheckHandleController { |
| | | |
| | | |
| | | @Autowired |
| | | ICheckHandleService iCheckHandleService; |
| | | |
| | | @ApiOperation(value = "审核") |
| | | @RequestMapping(value = "/check", method = RequestMethod.POST) |
| | | @ResponseBody |
| | | public CommonResult check(@Validated @RequestBody ChechParam chechParam) { |
| | | return CommonResult.success(iCheckHandleService.chech(chechParam)); |
| | | } |
| | | } |
New file |
| | |
| | | package com.ycl.dto.caseHandler; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * <p> |
| | | * 审核参数类 |
| | | * </p> |
| | | * |
| | | * @author mg |
| | | * @since 2022-10-02 |
| | | */ |
| | | @Data |
| | | @ApiModel("ChechParam") |
| | | public class ChechParam { |
| | | /** |
| | | * 案件id |
| | | */ |
| | | @ApiModelProperty(value = "案件id") |
| | | private Integer baseCaseId; |
| | | /** |
| | | * 当前处理人 |
| | | */ |
| | | @ApiModelProperty(value = "当前处理人") |
| | | private Integer currentUser; |
| | | /** |
| | | * 审核状态 |
| | | */ |
| | | @ApiModelProperty(value = "审核状态") |
| | | private Integer status; |
| | | /** |
| | | * 审核意见 |
| | | */ |
| | | @ApiModelProperty(value = "审核意见") |
| | | private String checkOpinion; |
| | | } |
| | |
| | | package com.ycl.dto.caseHandler; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonProperty; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | |
| | | * @date: 2022-09-28 13:55 |
| | | **/ |
| | | @Data |
| | | @ApiModel("DispatchInfoParam") |
| | | public class DispatchInfoParam { |
| | | |
| | | /** |
| | | * 案件id |
| | | */ |
| | | @ApiModelProperty(value = "案件id") |
| | | private Integer baseCaseId; |
| | | /** |
| | | * 执法人员 |
| | | */ |
| | | @JsonProperty("lawEnforcer") |
| | | @ApiModelProperty(value = "执法人员",dataType = "Integer") |
| | | @ApiModelProperty(value = "执法人员") |
| | | private Integer lawEnforcer; |
| | | /** |
| | | * 执法人员姓名 |
| | | */ |
| | | @JsonProperty("lawEnforcerName") |
| | | @ApiModelProperty(value = "执法人员姓名",dataType = "String") |
| | | @ApiModelProperty(value = "执法人员姓名") |
| | | private String lawEnforcerName; |
| | | /** |
| | | * 执法车 |
| | | */ |
| | | @JsonProperty("enforcementCar") |
| | | @ApiModelProperty(value = "执法车",dataType = "Integer") |
| | | @ApiModelProperty(value = "执法车") |
| | | private Integer enforcementCar; |
| | | /** |
| | | * 执法队伍 |
| | | */ |
| | | @JsonProperty("enforcementTeam") |
| | | @ApiModelProperty(value = "执法队伍",dataType = "String") |
| | | @ApiModelProperty(value = "执法队伍") |
| | | private String enforcementTeam; |
| | | /** |
| | | * 联系方式 |
| | | */ |
| | | @JsonProperty("contactWay") |
| | | @ApiModelProperty(value = "联系方式",dataType = "String") |
| | | @ApiModelProperty(value = "联系方式") |
| | | private String contactWay; |
| | | /** |
| | | * 距离 |
| | | */ |
| | | @JsonProperty("distance") |
| | | @ApiModelProperty(value = "距离",dataType = "Integer") |
| | | @ApiModelProperty(value = "距离") |
| | | private Integer distance; |
| | | /** |
| | | * 处置日期 |
| | | */ |
| | | @JsonProperty("disposeDate") |
| | | @ApiModelProperty(value = "处置日期",dataType = "String") |
| | | @ApiModelProperty(value = "处置日期") |
| | | private String disposeDate; |
| | | /** |
| | | * 派遣意见 |
| | | */ |
| | | @JsonProperty("dispatchOpinion") |
| | | @ApiModelProperty(value = "派遣意见",dataType = "String") |
| | | @ApiModelProperty(value = "派遣意见") |
| | | private String dispatchOpinion; |
| | | |
| | | } |
| | |
| | | package com.ycl.entity.caseHandler; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.Version; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import java.time.LocalDateTime; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import java.io.Serializable; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | |
| | | import java.io.Serializable; |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @TableName("ums_arrival_situation") |
| | | @ApiModel(value = "到达现场情况") |
| | | public class ArrivalSituation implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | @ApiModelProperty(value = "id") |
| | | private Integer id; |
| | | |
| | | /** |
| | | * 案件id |
| | | */ |
| | | @TableField("base_case_id") |
| | | @ApiModelProperty(value = "案件id") |
| | | private Integer baseCaseId; |
| | | |
| | | /** |
| | | * 到达时间 |
| | | */ |
| | | @TableField("arrival_time") |
| | | @ApiModelProperty(value = "到达时间") |
| | | private LocalDateTime arrivalTime; |
| | | |
| | | /** |
| | | * 到达地址 |
| | | */ |
| | | @TableField("arrival_address") |
| | | @ApiModelProperty(value = "到达地址") |
| | | private String arrivalAddress; |
| | | |
| | | /** |
| | | * 现场情况说明 |
| | | */ |
| | | @TableField("situation_explain") |
| | | @ApiModelProperty(value = "现场情况说明") |
| | | private String situationExplain; |
| | | |
| | | /** |
| | | * 信访回复说明 |
| | | */ |
| | | @TableField("reply_explain") |
| | | @ApiModelProperty(value = "信访回复说明") |
| | | private String replyExplain; |
| | | |
| | | /** |
| | | * 现场情况照片 |
| | | */ |
| | | @TableField("situation_pic") |
| | | @ApiModelProperty(value = "现场情况照片") |
| | | private String situationPic; |
| | | |
| | | /** |
| | | * 创建人 |
| | | */ |
| | | @TableField("create_user") |
| | | @ApiModelProperty(value = "创建人") |
| | | private Integer createUser; |
| | | |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @TableField("create_time") |
| | | @ApiModelProperty(value = "创建时间") |
| | | private LocalDateTime createTime; |
| | | |
| | | |
| | |
| | | package com.ycl.entity.caseHandler; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.Version; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import java.time.LocalDateTime; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import java.io.Serializable; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.*; |
| | | |
| | | import java.io.Serializable; |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | @Builder |
| | | @AllArgsConstructor |
| | | @NoArgsConstructor |
| | | @ApiModel(value = "案件基本信息") |
| | | public class BaseCase implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | |
| | | * id |
| | | */ |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | @ApiModelProperty(value = "id") |
| | | private Integer id; |
| | | |
| | | /** |
| | | * 事件编号 |
| | | */ |
| | | @TableField("code") |
| | | @ApiModelProperty(value = "事件编号") |
| | | private String code; |
| | | |
| | | /** |
| | | * 事件来源(1-视频 2-手动登记) |
| | | */ |
| | | @TableField("event_source") |
| | | @ApiModelProperty(value = "事件来源(1-视频 2-手动登记)") |
| | | private Integer eventSource; |
| | | |
| | | /** |
| | | * 问题类别(1-违规 2-违建) |
| | | */ |
| | | @TableField("category") |
| | | @ApiModelProperty(value = "问题类别(1-违规 2-违建)") |
| | | private Integer category; |
| | | |
| | | /** |
| | | * 所属街道 |
| | | */ |
| | | @TableField("street_id") |
| | | @ApiModelProperty(value = "所属街道") |
| | | private Integer streetId; |
| | | |
| | | /** |
| | | * 所属社区 |
| | | */ |
| | | @TableField("community_id") |
| | | @ApiModelProperty(value = "所属社区") |
| | | private Integer communityId; |
| | | |
| | | /** |
| | | * 报警点位 事发地点 |
| | | */ |
| | | @TableField("site") |
| | | @ApiModelProperty(value = "报警点位 事发地点") |
| | | private String site; |
| | | |
| | | /** |
| | | * 定位信息 |
| | | */ |
| | | @TableField("longitude") |
| | | @ApiModelProperty(value = "定位信息") |
| | | private Double longitude; |
| | | |
| | | /** |
| | | * 定位-纬度 |
| | | */ |
| | | @TableField("latitude") |
| | | @ApiModelProperty(value = "定位-纬度") |
| | | private Double latitude; |
| | | |
| | | /** |
| | | * 报警时间 |
| | | */ |
| | | @TableField("alarm_time") |
| | | @ApiModelProperty(value = "报警时间") |
| | | private LocalDateTime alarmTime; |
| | | |
| | | /** |
| | | * 登记人 |
| | | */ |
| | | @TableField("create_user") |
| | | @ApiModelProperty(value = "登记人") |
| | | private Integer createUser; |
| | | |
| | | /** |
| | | * 处理状态(0误报 1上报 2立案 3派遣 4处置 5核查 6结案) |
| | | */ |
| | | @TableField("state") |
| | | @ApiModelProperty(value = "处理状态(0误报 1上报 2立案 3派遣 4处置 5核查 6结案)") |
| | | private Integer state; |
| | | |
| | | /** |
| | | * 处理意见 |
| | | */ |
| | | @TableField("handling_opinion") |
| | | @ApiModelProperty(value = "处理意见") |
| | | private String handlingOpinion; |
| | | |
| | | /** |
| | | * 备注 |
| | | */ |
| | | @TableField("remark") |
| | | @ApiModelProperty(value = "备注") |
| | | private String remark; |
| | | |
| | | /** |
| | | * 审核意见 |
| | | */ |
| | | @TableField("audit_opinion") |
| | | @ApiModelProperty(value = "审核意见") |
| | | private String auditOpinion; |
| | | |
| | | /** |
| | | * 结案意见 |
| | | */ |
| | | @TableField("final_opinion") |
| | | @ApiModelProperty(value = "结案意见") |
| | | private String finalOpinion; |
| | | |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @TableField("create_time") |
| | | @ApiModelProperty(value = "创建时间") |
| | | private LocalDateTime createTime; |
| | | |
| | | /** |
| | | * 市平台编码 |
| | | */ |
| | | @TableField("task_code") |
| | | @ApiModelProperty(value = "市平台编码") |
| | | private String taskCode; |
| | | |
| | | /** |
| | | * 结束时间 |
| | | */ |
| | | @TableField("close_time") |
| | | @ApiModelProperty(value = "结束时间") |
| | | private LocalDateTime closeTime; |
| | | } |
| | |
| | | import com.ycl.vo.casePool.FilesPictureVo; |
| | | import com.ycl.vo.casePool.HandlePassVo; |
| | | import com.ycl.vo.casePool.ProblemProVo; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | |
| | | * @since 2022-09-29 |
| | | */ |
| | | @Data |
| | | @ApiModel(value = "案件详情") |
| | | public class BaseCaseDetail implements Serializable { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * 案件基本信息 |
| | | */ |
| | | @ApiModelProperty(value = "案件基本信息",dataType = "Object") |
| | | @ApiModelProperty(value = "案件基本信息") |
| | | private BaseCase baseCase; |
| | | /** |
| | | * 办理经过 |
| | | */ |
| | | @ApiModelProperty(value = "办理经过",dataType = "Object") |
| | | @ApiModelProperty(value = "办理经过") |
| | | private HandlePassVo handlePassVo; |
| | | /** |
| | | * 案卷图片 |
| | | */ |
| | | @ApiModelProperty(value = "案卷图片",dataType = "Object") |
| | | @ApiModelProperty(value = "案卷图片") |
| | | private FilesPictureVo filesPictureVo; |
| | | /** |
| | | * 问题处理 |
| | | */ |
| | | @ApiModelProperty(value = "问题处理",dataType = "Object") |
| | | @ApiModelProperty(value = "问题处理") |
| | | private ProblemProVo problemProVo; |
| | | /** |
| | | * 现场处理 |
| | | */ |
| | | @ApiModelProperty(value = "现场处理",dataType = "Object") |
| | | @ApiModelProperty(value = "现场处理") |
| | | private CurrentSitVo currentSitVo; |
| | | |
| | | } |
| | |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @TableName("ums_dispatch_info") |
| | | @ApiModel(value = "调度信息") |
| | | public class DispatchInfo implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | |
| | | * id |
| | | */ |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | @ApiModelProperty(value = "id",dataType = "Integer") |
| | | @ApiModelProperty(value = "id") |
| | | private Integer id; |
| | | |
| | | /** |
| | | * 处置流程记录Id |
| | | */ |
| | | @TableField("dispose_record_id") |
| | | @ApiModelProperty(value = "处置流程记录Id",dataType = "Integer") |
| | | @ApiModelProperty(value = "处置流程记录Id") |
| | | private Integer disposeRecordId; |
| | | /** |
| | | * 执法人员 |
| | | */ |
| | | @TableField("law_enforcer") |
| | | @ApiModelProperty(value = "执法人员",dataType = "Integer") |
| | | @ApiModelProperty(value = "执法人员") |
| | | private Integer lawEnforcer; |
| | | /** |
| | | * 执法人员姓名 |
| | | */ |
| | | @TableField("law_enforcer_name") |
| | | @ApiModelProperty(value = "执法人员姓名",dataType = "String") |
| | | @ApiModelProperty(value = "执法人员姓名") |
| | | private String lawEnforcerName; |
| | | /** |
| | | * 执法车 |
| | | */ |
| | | @TableField("enforcement_car") |
| | | @ApiModelProperty(value = "执法车",dataType = "Integer") |
| | | @ApiModelProperty(value = "执法车") |
| | | private Integer enforcementCar; |
| | | /** |
| | | * 执法队伍 |
| | | */ |
| | | @TableField("enforcement_team") |
| | | @ApiModelProperty(value = "执法队伍",dataType = "String") |
| | | @ApiModelProperty(value = "执法队伍") |
| | | private String enforcementTeam; |
| | | /** |
| | | * 联系方式 |
| | | */ |
| | | @TableField("contact_way") |
| | | @ApiModelProperty(value = "联系方式",dataType = "String") |
| | | @ApiModelProperty(value = "联系方式") |
| | | private String contactWay; |
| | | /** |
| | | * 距离 |
| | | */ |
| | | @TableField("distance") |
| | | @ApiModelProperty(value = "距离",dataType = "Integer") |
| | | @ApiModelProperty(value = "距离") |
| | | private Integer distance; |
| | | /** |
| | | * 处置日期 |
| | | */ |
| | | @TableField("dispose_date") |
| | | @ApiModelProperty(value = "处置日期",dataType = "Date") |
| | | @ApiModelProperty(value = "处置日期") |
| | | private Date disposeDate; |
| | | /** |
| | | * 派遣意见 |
| | | */ |
| | | @TableField("dispatch_opinion") |
| | | @ApiModelProperty(value = "派遣意见",dataType = "String") |
| | | @ApiModelProperty(value = "派遣意见") |
| | | private String dispatchOpinion; |
| | | /** |
| | | * 创建人 |
| | | */ |
| | | @TableField("create_user") |
| | | @ApiModelProperty(value = "创建人",dataType = "Integer") |
| | | @ApiModelProperty(value = "创建人") |
| | | private Integer createUser; |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @TableField("create_time") |
| | | @ApiModelProperty(value = "创建时间",dataType = "Date") |
| | | @ApiModelProperty(value = "创建时间") |
| | | private Date createTime; |
| | | |
| | | } |
| | |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | |
| | |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @TableName("ums_dispose_record") |
| | | @ApiModel(value = "处置流程记录") |
| | | public class DisposeRecord implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | |
| | | * 案件id |
| | | */ |
| | | @TableField("base_case_id") |
| | | @ApiModelProperty(value = "案件id") |
| | | private Integer baseCaseId; |
| | | |
| | | /** |
| | | * 案件id |
| | | * 处置流程环节配置Id |
| | | */ |
| | | @TableField("workflow_config_step_id") |
| | | @ApiModelProperty(value = "处置流程环节配置Id") |
| | | private Integer workflowConfigStepId; |
| | | |
| | | /** |
| | | * 环节名称 |
| | | */ |
| | | @TableField("step_name") |
| | | @ApiModelProperty(value = "环节名称") |
| | | private String stepName; |
| | | |
| | | /** |
| | | * 开始时间 |
| | | */ |
| | | @TableField("start_time") |
| | | @ApiModelProperty(value = "开始时间") |
| | | private LocalDateTime startTime; |
| | | |
| | | /** |
| | | * 处理人角色id |
| | | */ |
| | | @TableField("handler_role_id") |
| | | @ApiModelProperty(value = "处理人角色id") |
| | | private Integer handlerRoleId; |
| | | |
| | | /** |
| | | * 结束时间 |
| | | */ |
| | | @TableField("end_time") |
| | | @ApiModelProperty(value = "结束时间") |
| | | private LocalDateTime endTime; |
| | | |
| | | /** |
| | | * 环节状态 |
| | | */ |
| | | @TableField("state") |
| | | @ApiModelProperty(value = "环节状态") |
| | | private Integer state; |
| | | |
| | | /** |
| | | * 实际处理人 |
| | | */ |
| | | @TableField("handler_id") |
| | | @ApiModelProperty(value = "实际处理人") |
| | | private Integer handlerId; |
| | | |
| | | /** |
| | | * 创建人 |
| | | */ |
| | | @TableField("create_user") |
| | | @ApiModelProperty(value = "创建人") |
| | | private Integer createUser; |
| | | |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @TableField("create_time") |
| | | @ApiModelProperty(value = "创建时间") |
| | | private LocalDateTime createTime; |
| | | |
| | | |
| | |
| | | * 结果 |
| | | */ |
| | | @TableField("result") |
| | | @ApiModelProperty(value = "结果") |
| | | private String result; |
| | | |
| | | /** |
| | | * 限制时限 |
| | | */ |
| | | @TableField("limit_time") |
| | | @ApiModelProperty(value = "限制时限") |
| | | private LocalDateTime limitTime; |
| | | |
| | | } |
| | |
| | | package com.ycl.entity.caseHandler; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.Version; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import java.time.LocalDateTime; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import java.io.Serializable; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | |
| | | import java.io.Serializable; |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @TableName("ums_investigation") |
| | | @ApiModel(value = "调查取证") |
| | | public class Investigation implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | @ApiModelProperty(value = "id") |
| | | private Integer id; |
| | | |
| | | /** |
| | | * 案件id |
| | | */ |
| | | @TableField("base_case_id") |
| | | @ApiModelProperty(value = "案件id") |
| | | private Integer baseCaseId; |
| | | |
| | | /** |
| | | * 承办队员 |
| | | */ |
| | | @TableField("undertaker") |
| | | @ApiModelProperty(value = "承办队员") |
| | | private String undertaker; |
| | | |
| | | /** |
| | | * 协办队员 |
| | | */ |
| | | @TableField("assistant") |
| | | @ApiModelProperty(value = "协办队员") |
| | | private String assistant; |
| | | |
| | | /** |
| | | * 时间 |
| | | */ |
| | | @TableField("investigation_time") |
| | | @ApiModelProperty(value = "时间") |
| | | private LocalDateTime investigationTime; |
| | | |
| | | /** |
| | | * 地址 |
| | | */ |
| | | @TableField("address") |
| | | @ApiModelProperty(value = "地址") |
| | | private String address; |
| | | |
| | | /** |
| | | * 案由 |
| | | */ |
| | | @TableField("case_action") |
| | | @ApiModelProperty(value = "案由") |
| | | private String caseAction; |
| | | |
| | | /** |
| | | * 当事人id |
| | | */ |
| | | @TableField("party_id") |
| | | @ApiModelProperty(value = "当事人id") |
| | | private Integer partyId; |
| | | |
| | | /** |
| | | * 情况描述 |
| | | */ |
| | | @TableField("description") |
| | | @ApiModelProperty(value = "情况描述") |
| | | private String description; |
| | | |
| | | /** |
| | | * 照片 |
| | | */ |
| | | @TableField("pic") |
| | | @ApiModelProperty(value = "照片") |
| | | private String pic; |
| | | |
| | | /** |
| | | * 创建人 |
| | | */ |
| | | @TableField("create_user") |
| | | @ApiModelProperty(value = "创建人") |
| | | private Integer createUser; |
| | | |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @TableField("create_time") |
| | | @ApiModelProperty(value = "创建时间") |
| | | private LocalDateTime createTime; |
| | | |
| | | |
| | |
| | | package com.ycl.entity.caseHandler; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.Version; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import java.io.Serializable; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | |
| | | import java.io.Serializable; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @TableName("ums_workflow_config") |
| | | @ApiModel(value = "处置流程配置表") |
| | | public class WorkflowConfig implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | |
| | | * id |
| | | */ |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | @ApiModelProperty(value = "id") |
| | | private Integer id; |
| | | |
| | | /** |
| | | * 名称 |
| | | */ |
| | | @TableField("name") |
| | | @ApiModelProperty(value = "名称") |
| | | private String name; |
| | | |
| | | /** |
| | | * 编码 |
| | | */ |
| | | @TableField("code") |
| | | @ApiModelProperty(value = "编码") |
| | | private String code; |
| | | |
| | | |
| | |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @TableName("ums_workflow_config_step") |
| | | @ApiModel(value = "处置流程环节配置") |
| | | public class WorkflowConfigStep implements Serializable { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | |
| | | * id |
| | | */ |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | @ApiModelProperty(value = "id",dataType = "Integer") |
| | | @ApiModelProperty(value = "id") |
| | | private Integer id; |
| | | |
| | | /** |
| | | * 处置流程配置id |
| | | */ |
| | | @TableField(value = "workflow_config_id") |
| | | @ApiModelProperty(value = "处置流程配置id",dataType = "Integer") |
| | | @ApiModelProperty(value = "处置流程配置id") |
| | | private Integer workflowConfigId ; |
| | | |
| | | /** |
| | | * 环节名称 |
| | | */ |
| | | @TableField("name") |
| | | @ApiModelProperty(value = "环节名称",dataType = "String") |
| | | @ApiModelProperty(value = "环节名称") |
| | | private String name; |
| | | /** |
| | | * 对应角色id |
| | | */ |
| | | @TableField(value = "role_id") |
| | | @ApiModelProperty(value = "对应角色id",dataType = "Integer") |
| | | @ApiModelProperty(value = "对应角色id") |
| | | private Integer roleId ; |
| | | /** |
| | | * 序号 |
| | | */ |
| | | @TableField(value = "seq") |
| | | @ApiModelProperty(value = "序号",dataType = "Integer") |
| | | @ApiModelProperty(value = "序号") |
| | | private Integer seq ; |
| | | /** |
| | | * 处置流程记录 |
| | | */ |
| | | @TableField(value = "disposeRecord",exist = false) |
| | | @ApiModelProperty(value = "处置流程记录",dataType = "DisposeRecord") |
| | | @ApiModelProperty(value = "处置流程记录") |
| | | private DisposeRecord disposeRecord; |
| | | } |
| | |
| | | package com.ycl.entity.caseHandler; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.baomidou.mybatisplus.annotation.Version; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import java.time.LocalDateTime; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import java.io.Serializable; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | |
| | | import java.io.Serializable; |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @TableName("ums_writ") |
| | | @ApiModel(value = "文书种类") |
| | | public class Writ implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | |
| | | * 案件id(同ums_base_case表id) |
| | | */ |
| | | @TableId("base_case_id") |
| | | @ApiModelProperty(value = "案件id") |
| | | private Integer baseCaseId; |
| | | |
| | | /** |
| | | * 违建id |
| | | */ |
| | | @TableField("illegal_building_id") |
| | | @ApiModelProperty(value = "违建id") |
| | | private Integer illegalBuildingId; |
| | | |
| | | /** |
| | | * 文书种类 |
| | | */ |
| | | @TableField("writ_type") |
| | | @ApiModelProperty(value = "文书种类") |
| | | private Integer writType; |
| | | |
| | | /** |
| | | * 文书编号 |
| | | */ |
| | | @TableField("writ_code") |
| | | @ApiModelProperty(value = "文书编号") |
| | | private String writCode; |
| | | |
| | | /** |
| | | * 违法类型 |
| | | */ |
| | | @TableField("illegal_type") |
| | | @ApiModelProperty(value = "违法类型") |
| | | private Integer illegalType; |
| | | |
| | | /** |
| | | * 文书发放时间 |
| | | */ |
| | | @TableField("send_time") |
| | | @ApiModelProperty(value = "文书发放时间") |
| | | private LocalDateTime sendTime; |
| | | |
| | | /** |
| | | * 文书限定时间 |
| | | */ |
| | | @TableField("limit_time") |
| | | @ApiModelProperty(value = "文书限定时间") |
| | | private LocalDateTime limitTime; |
| | | |
| | | /** |
| | | * 文书发放内容 |
| | | */ |
| | | @TableField("send_content") |
| | | @ApiModelProperty(value = "文书发放内容") |
| | | private String sendContent; |
| | | |
| | | /** |
| | | * 实际整改时间 |
| | | */ |
| | | @TableField("rectify_time") |
| | | @ApiModelProperty(value = "实际整改时间") |
| | | private LocalDateTime rectifyTime; |
| | | |
| | | /** |
| | | * 整改情况 |
| | | */ |
| | | @TableField("rectify_situation") |
| | | @ApiModelProperty(value = "整改情况") |
| | | private String rectifySituation; |
| | | |
| | | /** |
| | | * 备注 |
| | | */ |
| | | @TableField("remark") |
| | | @ApiModelProperty(value = "备注") |
| | | private String remark; |
| | | |
| | | /** |
| | | * 文书照片上传 |
| | | */ |
| | | @TableField("writ_pic") |
| | | @ApiModelProperty(value = "文书照片上传") |
| | | private String writPic; |
| | | |
| | | /** |
| | | * 整改前照片 |
| | | */ |
| | | @TableField("original_pic") |
| | | @ApiModelProperty(value = "整改前照片") |
| | | private String originalPic; |
| | | |
| | | /** |
| | | * 整改后照片 |
| | | */ |
| | | @TableField("rectified_pic") |
| | | @ApiModelProperty(value = "整改后照片") |
| | | private String rectifiedPic; |
| | | |
| | | /** |
| | | * 其他照片 |
| | | */ |
| | | @TableField("other_pic") |
| | | @ApiModelProperty(value = "其他照片") |
| | | private String otherPic; |
| | | |
| | | /** |
| | | * 创建人 |
| | | */ |
| | | @TableField("create_user") |
| | | @ApiModelProperty(value = "创建人") |
| | | private Integer createUser; |
| | | |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @TableField("create_time") |
| | | @ApiModelProperty(value = "创建时间") |
| | | private LocalDateTime createTime; |
| | | |
| | | |
New file |
| | |
| | | package com.ycl.service.caseHandler; |
| | | |
| | | import com.ycl.dto.caseHandler.ChechParam; |
| | | |
| | | /** |
| | | * <p> |
| | | * 审核处理 |
| | | * </p> |
| | | * |
| | | * @author mg |
| | | * @since 2022-10-02 |
| | | */ |
| | | public interface ICheckHandleService { |
| | | Boolean chech(ChechParam chechParam); |
| | | } |
New file |
| | |
| | | package com.ycl.service.caseHandler.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ycl.constant.BaseCaseStatus; |
| | | import com.ycl.dto.caseHandler.ChechParam; |
| | | import com.ycl.entity.caseHandler.BaseCase; |
| | | import com.ycl.entity.caseHandler.DisposeRecord; |
| | | import com.ycl.mapper.caseHandler.BaseCaseMapper; |
| | | import com.ycl.mapper.caseHandler.DisposeRecordMapper; |
| | | import com.ycl.service.caseHandler.ICheckHandleService; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | /** |
| | | * <p> |
| | | * 审核处理 服务实现类 |
| | | * </p> |
| | | * |
| | | * @author mg |
| | | * @since 2022-10-02 |
| | | */ |
| | | @Service |
| | | @Transactional |
| | | public class CheckHandleServiceImpl extends ServiceImpl<DisposeRecordMapper, DisposeRecord> implements ICheckHandleService { |
| | | |
| | | @Resource |
| | | BaseCaseMapper baseCaseMapper; |
| | | |
| | | @Override |
| | | public Boolean chech(ChechParam chechParam) { |
| | | //新增流程记录信息 |
| | | DisposeRecord disposeRecord = new DisposeRecord(); |
| | | disposeRecord.setBaseCaseId(chechParam.getBaseCaseId()); |
| | | disposeRecord.setWorkflowConfigStepId(3); |
| | | disposeRecord.setState(chechParam.getStatus()); |
| | | disposeRecord.setCreateUser(chechParam.getCurrentUser()); |
| | | disposeRecord.setStepName("核查"); |
| | | baseMapper.insert(disposeRecord); |
| | | //修改案件状态为审核 |
| | | BaseCase baseCase = new BaseCase(); |
| | | baseCase.setState(BaseCaseStatus.CHECK); |
| | | baseCaseMapper.updateById(baseCase); |
| | | return true; |
| | | } |
| | | } |
| | |
| | | package com.ycl.service.caseHandler.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ycl.constant.BaseCaseStatus; |
| | | import com.ycl.dto.caseHandler.DispatchInfoParam; |
| | | import com.ycl.entity.caseHandler.BaseCase; |
| | | import com.ycl.entity.caseHandler.DispatchInfo; |
| | | import com.ycl.mapper.caseHandler.BaseCaseMapper; |
| | | import com.ycl.mapper.caseHandler.DispatchInfoMapper; |
| | | import com.ycl.service.caseHandler.IDispatchHandleService; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | |
| | | * @since 2022-09-28 |
| | | */ |
| | | @Service |
| | | @Transactional |
| | | public class IDispatchHandleServiceImpl extends ServiceImpl<DispatchInfoMapper, DispatchInfo> implements IDispatchHandleService { |
| | | |
| | | @Resource |
| | | BaseCaseMapper baseCaseMapper; |
| | | @Override |
| | | public DispatchInfo dispatch(DispatchInfoParam dispatchInfoParam) { |
| | | //新增调度信息 |
| | | DispatchInfo dispatchInfo = new DispatchInfo(); |
| | | BeanUtils.copyProperties(dispatchInfoParam, dispatchInfo); |
| | | dispatchInfo.setCreateTime(new Date()); |
| | | baseMapper.insert(dispatchInfo); |
| | | //修改案件状态为调度 |
| | | BaseCase baseCase = new BaseCase(); |
| | | baseCase.setState(BaseCaseStatus.DISPATCH); |
| | | baseCaseMapper.updateById(baseCase); |
| | | return dispatchInfo; |
| | | } |
| | | |
| | |
| | | import com.ycl.entity.caseHandler.ArrivalSituation; |
| | | import com.ycl.entity.caseHandler.Investigation; |
| | | import com.ycl.entity.caseHandler.Writ; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | |
| | | * @since 2022-09-29 |
| | | */ |
| | | @Data |
| | | @ApiModel(value = "现场情况") |
| | | public class CurrentSitVo { |
| | | /** |
| | | * 到达现场情况 |
| | | */ |
| | | @ApiModelProperty(value = "到达现场情况",dataType = "ArrivalSituation") |
| | | @ApiModelProperty(value = "到达现场情况") |
| | | private ArrivalSituation arrivalSituation; |
| | | /** |
| | | * 调查取证 |
| | | */ |
| | | @ApiModelProperty(value = "调查取证",dataType = "Investigation") |
| | | @ApiModelProperty(value = "调查取证") |
| | | private Investigation investigation; |
| | | /** |
| | | * 告知违法 |
| | | */ |
| | | @ApiModelProperty(value = "告知违法",dataType = "Writ") |
| | | @ApiModelProperty(value = "告知违法") |
| | | private Writ writ; |
| | | } |
| | |
| | | package com.ycl.vo.casePool; |
| | | |
| | | import com.ycl.entity.common.ImageResources; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | |
| | | * @since 2022-09-29 |
| | | */ |
| | | @Data |
| | | @ApiModel(value = "案卷图片") |
| | | public class FilesPictureVo { |
| | | /** |
| | | * 图片列表 |
| | | */ |
| | | @ApiModelProperty(value = "图片列表",dataType = "ImageResources") |
| | | @ApiModelProperty(value = "图片列表") |
| | | private List<ImageResources> imageResources; |
| | | } |
| | |
| | | package com.ycl.vo.casePool; |
| | | |
| | | import com.ycl.entity.caseHandler.WorkflowConfigStep; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | |
| | | * @since 2022-09-29 |
| | | */ |
| | | @Data |
| | | @ApiModel(value = "办理经过类") |
| | | public class HandlePassVo { |
| | | |
| | | /** |
| | | * 流程环节列表 |
| | | */ |
| | | @ApiModelProperty(value = "流程环节列表",dataType = "ArrivalSituation") |
| | | @ApiModelProperty(value = "流程环节列表") |
| | | private List<WorkflowConfigStep> workflowConfigSteps; |
| | | } |
| | |
| | | package com.ycl.vo.casePool; |
| | | |
| | | import com.ycl.entity.caseHandler.WorkflowConfigStep; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | |
| | | * @since 2022-09-29 |
| | | */ |
| | | @Data |
| | | @ApiModel(value = "问题处理") |
| | | public class ProblemProVo { |
| | | /** |
| | | * 流程环节列表 |
| | | */ |
| | | @ApiModelProperty(value = "流程环节列表",dataType = "ArrivalSituation") |
| | | @ApiModelProperty(value = "流程环节列表") |
| | | private List<WorkflowConfigStep> workflowConfigSteps; |
| | | } |