wl
2022-12-08 68e4b24ac27014d07cab1a2722bca1547de36934
fix: 案卷查询参数 预警研判参数
2个文件已修改
16 ■■■■■ 已修改文件
ycl-platform/src/main/java/com/ycl/dto/casePool/VideoInspectParam.java 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ycl-platform/src/main/java/com/ycl/service/caseHandler/impl/BaseCaseServiceImpl.java 11 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ycl-platform/src/main/java/com/ycl/dto/casePool/VideoInspectParam.java
@@ -8,7 +8,7 @@
import javax.validation.constraints.NotNull;
@Data
public class VideoInspectParam  extends DispatchInfoParam {
public class VideoInspectParam extends DispatchInfoParam {
    private Long baseId;
@@ -42,4 +42,7 @@
    @ApiModelProperty(value = "问题描述")
    @NotBlank(message = "不允许问题描述为空")
    private String description;
    @ApiModelProperty(value = "是否关联商铺")
    private Integer linkShop;
}
ycl-platform/src/main/java/com/ycl/service/caseHandler/impl/BaseCaseServiceImpl.java
@@ -32,7 +32,6 @@
import com.ycl.service.caseHandler.IViolationsService;
import com.ycl.service.video.IVideoAlarmReportService;
import com.ycl.vo.casePool.*;
import com.ycl.vo.cockpit.enforcementEvents.EnforcementEventsVO;
import com.ycl.vo.cockpit.enforcementEvents.EventVO;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
@@ -417,11 +416,11 @@
    public Map<String, Object> selectCount() {
        HashMap<String, Object> map = new HashMap<>();
        Long review = baseCaseMapper.selectCount(new LambdaQueryWrapper<BaseCase>().eq(BaseCase::getState, 1));
        Long register = baseCaseMapper.selectCount(new LambdaQueryWrapper<BaseCase>().in(BaseCase::getState, 2,6));
        Long register = baseCaseMapper.selectCount(new LambdaQueryWrapper<BaseCase>().in(BaseCase::getState, 2, 6));
        Long study = baseCaseMapper.selectCount(new LambdaQueryWrapper<BaseCase>().eq(BaseCase::getState, 3));
        map.put("review", review);
        map.put("register",register);
        map.put("study",study);
        map.put("register", register);
        map.put("study", study);
        return map;
    }
@@ -435,7 +434,7 @@
        baseCaseMapper.updateById(baseCase);
        Violations violations = new Violations();
        BeanUtils.copyProperties(violationParam, violations);
        violations.setId(violations.getId());
        violations.setId(violationParam.getBaseId());
        if (violationParam.getState() == 6) {
            AdminUserDetails user = (AdminUserDetails) SecurityContextHolder.getContext().getAuthentication().getPrincipal();
            violationParam.setCreateUser(user.getUserId());
@@ -472,6 +471,6 @@
    @Override
    public List<EventVO> selectEventList(String beginTime, String endTime) {
        return baseCaseMapper.selectEventList(beginTime,endTime);
        return baseCaseMapper.selectEventList(beginTime, endTime);
    }
}