wl
2022-12-08 0c1446bbcc6d94bb584be88d47279c1d4d8f2c75
fix: 案件关联店铺id 预警研判确定
5个文件已修改
1个文件已添加
62 ■■■■ 已修改文件
ycl-platform/src/main/java/com/ycl/controller/caseHandler/BaseCaseController.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ycl-platform/src/main/java/com/ycl/dto/casePool/VideoInspectParam.java 45 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ycl-platform/src/main/java/com/ycl/dto/casePool/ViolationParam.java 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ycl-platform/src/main/java/com/ycl/entity/caseHandler/Violations.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
ycl-platform/src/main/java/com/ycl/service/caseHandler/IBaseCaseService.java 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ycl-platform/src/main/java/com/ycl/service/caseHandler/impl/BaseCaseServiceImpl.java 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ycl-platform/src/main/java/com/ycl/controller/caseHandler/BaseCaseController.java
@@ -11,6 +11,7 @@
import com.ycl.controller.BaseController;
import com.ycl.dto.caseHandler.QueryForViolationParam;
import com.ycl.dto.casePool.IllegalBuildingParam;
import com.ycl.dto.casePool.VideoInspectParam;
import com.ycl.dto.casePool.ViolationParam;
import com.ycl.entity.caseHandler.BaseCase;
import com.ycl.entity.caseHandler.BaseCaseDetail;
@@ -314,8 +315,7 @@
    @PutMapping("/video_inspection")
    @ApiOperation("预警研判确定")
    public CommonResult searchCount(ViolationParam violationParam){
    public CommonResult searchCount(VideoInspectParam violationParam){
        return  CommonResult.success(baseCaseService.updateCase(violationParam));
    }
}
ycl-platform/src/main/java/com/ycl/dto/casePool/VideoInspectParam.java
New file
@@ -0,0 +1,45 @@
package com.ycl.dto.casePool;
import com.ycl.dto.caseHandler.DispatchInfoParam;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
@Data
public class VideoInspectParam  extends DispatchInfoParam {
    private Long baseId;
    @ApiModelProperty(value = "状态")
    private Integer state;
    /**
     * 大类
     */
    @ApiModelProperty(value = "大类")
    @NotNull(message = "不允许大类为空")
    private Integer categoryId;
    /**
     * 小类
     */
    @ApiModelProperty(value = "小类")
    @NotNull(message = "不允许小类为空")
    private Integer typeId;
    /**
     * 关联商铺名称
     */
    @ApiModelProperty(value = "关联商铺名称")
    private Integer shopName;
    /**
     * 问题描述
     */
    @ApiModelProperty(value = "问题描述")
    @NotBlank(message = "不允许问题描述为空")
    private String description;
}
ycl-platform/src/main/java/com/ycl/dto/casePool/ViolationParam.java
@@ -11,9 +11,8 @@
@Data
@ApiModel(value = "添加违规案件")
public class ViolationParam extends DispatchInfoParam {
public class ViolationParam {
    private Long baseId;
    @ApiModelProperty(value = "状态")
    private Integer state;
@@ -91,7 +90,7 @@
     * 关联商铺名称
     */
    @ApiModelProperty(value = "关联商铺名称")
    private String shopName;
    private Integer shopName;
    /**
     * 车牌号
ycl-platform/src/main/java/com/ycl/entity/caseHandler/Violations.java
@@ -73,7 +73,7 @@
     */
    @TableField("shop_name")
    @ApiModelProperty(value = "关联商铺名称")
    private String shopName;
    private Integer shopName;
    /**
     * 车牌号
ycl-platform/src/main/java/com/ycl/service/caseHandler/IBaseCaseService.java
@@ -4,6 +4,7 @@
import com.baomidou.mybatisplus.extension.service.IService;
import com.ycl.dto.caseHandler.QueryForViolationParam;
import com.ycl.dto.casePool.IllegalBuildingParam;
import com.ycl.dto.casePool.VideoInspectParam;
import com.ycl.dto.casePool.ViolationParam;
import com.ycl.entity.caseHandler.BaseCase;
import com.ycl.entity.caseHandler.BaseCaseDetail;
@@ -68,7 +69,7 @@
    Map<String, Object> selectCount();
    Boolean updateCase(ViolationParam violationParam);
    Boolean updateCase(VideoInspectParam videoInspectParam);
    Integer dayCount();
ycl-platform/src/main/java/com/ycl/service/caseHandler/impl/BaseCaseServiceImpl.java
@@ -15,6 +15,7 @@
import com.ycl.dto.caseHandler.DispatchInfoParam;
import com.ycl.dto.caseHandler.QueryForViolationParam;
import com.ycl.dto.casePool.IllegalBuildingParam;
import com.ycl.dto.casePool.VideoInspectParam;
import com.ycl.dto.casePool.ViolationParam;
import com.ycl.entity.caseHandler.*;
import com.ycl.entity.dict.DataDictionary;
@@ -426,7 +427,7 @@
    @Override
    @Transactional(rollbackFor = Exception.class)
    public Boolean updateCase(ViolationParam violationParam) {
    public Boolean updateCase(VideoInspectParam violationParam) {
        BaseCase baseCase = new BaseCase();
        BeanUtils.copyProperties(violationParam, baseCase);
        baseCase.setId(violationParam.getBaseId());