Merge remote-tracking branch 'origin/master'
| | |
| | | @TableField(exist = false) |
| | | private BigDecimal imageResourceSecurity; |
| | | |
| | | |
| | | } |
| | |
| | | /** |
| | | * 查询考核积分卡片列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('check:score:list')") |
| | | @PreAuthorize("@ss.hasPermi('check:score:query')") |
| | | @GetMapping("/list") |
| | | public AjaxResult list(CheckScore checkScore) |
| | | { |
| | |
| | | /** |
| | | * 获取考核指标详细信息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('check:score:query')") |
| | | @PreAuthorize("@ss.hasPermi('check:score:detail')") |
| | | @GetMapping(value = "/detail/index") |
| | | public AjaxResult getIndex(CheckScoreIndexDTO checkScoreIndexDTO) |
| | | { |
| | |
| | | /** |
| | | * 发布考核积分 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('check:score:edit')") |
| | | @PreAuthorize("@ss.hasPermi('check:score:publish')") |
| | | @Log(title = "发布考核积分", businessType = BusinessType.UPDATE) |
| | | @PutMapping("/publish") |
| | | public AjaxResult edit(@RequestBody CheckScoreDTO checkScoreDTO) |
| | |
| | | /** |
| | | * 查询考核结果列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:result:list')") |
| | | @PreAuthorize("@ss.hasPermi('contract:result:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody ContractResultVO contractResult) { |
| | | startPage(); |
| | |
| | | /** |
| | | * 查询考核结果列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:result:query')") |
| | | @PreAuthorize("@ss.hasPermi('contract:result:query')") |
| | | @GetMapping("/record/list") |
| | | public TableDataInfo recordList(Long resultId, Long contractId) { |
| | | List<ContractResultRecord> list = checkResultService.selectCheckResultRecordList(resultId, contractId); |
| | |
| | | /** |
| | | * 导出考核结果列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:result:export')") |
| | | @PreAuthorize("@ss.hasPermi('contract:result:export')") |
| | | @Log(title = "考核结果", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, ContractResultVO contractResult) { |
| | |
| | | /** |
| | | * 获取考核结果详细信息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:result:query')") |
| | | @PreAuthorize("@ss.hasPermi('contract:result:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(checkResultService.selectCheckResultById(id)); |
| | |
| | | /** |
| | | * 新增考核结果 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:result:add')") |
| | | @PreAuthorize("@ss.hasPermi('contract:result:add')") |
| | | @Log(title = "考核结果", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody ContractResult contractResult) { |
| | |
| | | /** |
| | | * 修改考核结果 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:result:edit')") |
| | | @PreAuthorize("@ss.hasPermi('contract:result:edit')") |
| | | @Log(title = "考核结果", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody ContractResult contractResult) { |
| | |
| | | /** |
| | | * 发布考核结果 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:result:publish')") |
| | | @PreAuthorize("@ss.hasPermi('contract:result:publish')") |
| | | @PutMapping("/publish/{id}") |
| | | public AjaxResult publish(@PathVariable("id") Long id) { |
| | | return toAjax(checkResultService.publish(id)); |
| | |
| | | /** |
| | | * 删除考核结果 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:result:remove')") |
| | | @PreAuthorize("@ss.hasPermi('contract:result:remove')") |
| | | @Log(title = "考核结果", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | |
| | | /** |
| | | * 查询合同打分列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('platform:score:list')") |
| | | @PreAuthorize("@ss.hasPermi('contract:score:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody ContractScore contractScore) { |
| | | startPage(); |
| | |
| | | /** |
| | | * 导出合同打分列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('platform:score:export')") |
| | | @PreAuthorize("@ss.hasPermi('contract:score:export')") |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, ContractScore contractScore) { |
| | | List<ContractScore> list = defaultScoreService.selectDefaultScoreList(contractScore); |
| | |
| | | /** |
| | | * 获取合同打分详细信息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('platform:score:query')") |
| | | @PreAuthorize("@ss.hasPermi('contract:score:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(defaultScoreService.getById(id)); |
| | |
| | | /** |
| | | * 新增合同打分 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('platform:score:add')") |
| | | @PreAuthorize("@ss.hasPermi('contract:score:add')") |
| | | @Log(title = "合同打分", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody ContractScore contractScore) { |
| | |
| | | /** |
| | | * 修改合同打分 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('platform:score:edit')") |
| | | @PreAuthorize("@ss.hasPermi('contract:score:edit')") |
| | | @Log(title = "合同打分", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody ContractScore contractScore) { |
| | |
| | | /** |
| | | * 合同打分审核 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('platform:score:audit')") |
| | | @PreAuthorize("@ss.hasPermi('contract:score:audit')") |
| | | @Log(title = "合同打分审核", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/auditing") |
| | | public AjaxResult audit(@RequestBody ContractScore contractScore) { |
| | |
| | | /** |
| | | * 删除合同打分 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('platform:score:remove')") |
| | | @PreAuthorize("@ss.hasPermi('contract:score:remove')") |
| | | @Log(title = "合同打分", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | |
| | | /** |
| | | * 查询platform列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('platform:security:list')") |
| | | @PreAuthorize("@ss.hasPermi('imageResource:security:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(ImageResourceSecurity imageResourceSecurity) |
| | | { |
| | |
| | | /** |
| | | * 获取platform详细信息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('platform:security:query')") |
| | | @PreAuthorize("@ss.hasPermi('imageResource:security:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | |
| | | /** |
| | | * 导入模板 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('platform:security:list')") |
| | | @PreAuthorize("@ss.hasPermi('imageResource:security:template')") |
| | | @Log(title = "导入模板", businessType = BusinessType.IMPORT) |
| | | @PostMapping("/importTemplate") |
| | | public void importTemplate(HttpServletResponse response) { |
| | |
| | | /** |
| | | * 导入数据 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('platform:security:list')") |
| | | @PreAuthorize("@ss.hasPermi('imageResource:security:import')") |
| | | @Log(title = "导入", businessType = BusinessType.IMPORT) |
| | | @PostMapping("/importData") |
| | | public AjaxResult importData(MultipartFile file) { |
| | |
| | | |
| | | @GetMapping("/list") |
| | | @ApiOperation(value = "列表", notes = "列表") |
| | | @PreAuthorize("@ss.hasPermi('unit:list')") |
| | | // @PreAuthorize("@ss.hasPermi('unit:list')") |
| | | public Result list() { |
| | | return ywUnitService.all(); |
| | | } |
| | |
| | | package com.ycl.platform.mapper; |
| | | |
| | | import com.ycl.platform.domain.entity.ImageResourceSecurityDetail; |
| | | import com.ycl.platform.domain.query.DataCenterQuery; |
| | | import org.apache.ibatis.annotations.Select; |
| | | |
| | | import java.util.ArrayList; |
| | |
| | | * @param imageResourceSecurityDetail 安全检测结果 |
| | | * @return 安全检测结果集合 |
| | | */ |
| | | public List<ImageResourceSecurityDetail> selectImageResourceSecurityDetailList(ImageResourceSecurityDetail imageResourceSecurityDetail); |
| | | public List<ImageResourceSecurityDetail> selectImageResourceSecurityDetailList(DataCenterQuery query); |
| | | |
| | | /** |
| | | * 新增安全检测结果 |
| | |
| | | */ |
| | | @Override |
| | | public Result videoImageResourceSecurity(DataCenterQuery query) { |
| | | ImageResourceSecurityDetail imageResourceSecurityDetail = new ImageResourceSecurityDetail(); |
| | | Page<ImageResourceSecurityDetail> page = PageHelper.startPage(query.getPageNum(), query.getPageSize()); |
| | | securityDetailMapper.selectImageResourceSecurityDetailList(imageResourceSecurityDetail); |
| | | securityDetailMapper.selectImageResourceSecurityDetailList(query); |
| | | |
| | | // 统计数 |
| | | HashMap<String, Object> map = new HashMap<>(); |
| | |
| | | check(YwThreadConstants.Face_NouniqueCount, nouniqueCount, result.getExternalIndexCode(), thresholdMap, workOrder, CompareType.MORE_THAN_EQ, ErrorType.NOT_UNIQUE_DATA_VOLUME.getValue()); |
| | | //检查人脸低评分率 |
| | | Float lowScorePercent = result.getSnapValidity().getLowScorePercent(); |
| | | check(YwThreadConstants.Face_LowScorePercent, lowScorePercent, result.getExternalIndexCode(), thresholdMap, workOrder, CompareType.LESS_THAN_EQ, ErrorType.FACE_LOW.getValue()); |
| | | check(YwThreadConstants.Face_LowScorePercent, lowScorePercent, result.getExternalIndexCode(), thresholdMap, workOrder, CompareType.MORE_THAN_EQ, ErrorType.FACE_LOW.getValue()); |
| | | //检查建模失败率 |
| | | Float failPercent = result.getSnapValidity().getFailPercent(); |
| | | check(YwThreadConstants.Face_FailPercent, failPercent, result.getExternalIndexCode(), thresholdMap, workOrder, CompareType.LESS_THAN_EQ, ErrorType.MODELING_FAIL.getValue()); |
| | | check(YwThreadConstants.Face_FailPercent, failPercent, result.getExternalIndexCode(), thresholdMap, workOrder, CompareType.MORE_THAN_EQ, ErrorType.MODELING_FAIL.getValue()); |
| | | // 点位在线率 |
| | | if (2 == result.getSnapResult()) { |
| | | workOrder.setSerialNumber(result.getExternalIndexCode()); |
| | |
| | | //检查白天未识别量 |
| | | Integer dayNoNumberCountResult = result.getSnapPlate().getDayNoNumberCount(); |
| | | check(YwThreadConstants.Car_DayNoNumberCount, dayNoNumberCountResult, result.getExternalIndexCode(), thresholdMap, workOrder, CompareType.MORE_THAN_EQ, ErrorType.UNRECOGNIZED_DAY_VOLUME.getValue()); |
| | | //车辆六项属性不完整量 |
| | | Integer noIntegrityCountResult = result.getIntegrity().getNoIntegrityCount(); |
| | | //车辆主要属性不完整率 |
| | | Integer noIntegrityCountResult = result.getIntegrity().getMainNoIntegrityCount(); |
| | | check(YwThreadConstants.Car_NoIntegrityCount, noIntegrityCountResult, result.getExternalIndexCode(), thresholdMap, workOrder, CompareType.MORE_THAN_EQ, ErrorType.CAR_SIX.getValue()); |
| | | // 点位在线率 |
| | | if (2 == result.getSnapResult()) { |
| | |
| | | FROM t_image_resource_security_detail |
| | | </sql> |
| | | |
| | | <select id="selectImageResourceSecurityDetailList" resultType="com.ycl.platform.domain.entity.ImageResourceSecurityDetail"> |
| | | <select id="selectImageResourceSecurityDetailList" |
| | | resultType="com.ycl.platform.domain.entity.ImageResourceSecurityDetail"> |
| | | select id, |
| | | ip, |
| | | a.dept_id, |
| | |
| | | from t_image_resource_security_detail a |
| | | LEFT JOIN sys_dept b ON a.dept_id = b.dept_id AND b.del_flag = 0 |
| | | <where> |
| | | <if test="ip != null and ip != ''">and ip = #{ip}</if> |
| | | <if test="deptId != null ">and a.dept_id = #{deptId}</if> |
| | | <if test="alarmCategory != null and alarmCategory != ''">and alarm_category = #{alarmCategory}</if> |
| | | <if test="alarmLevel != null ">and alarm_level = #{alarmLevel}</if> |
| | | <if test="num != null ">and num = #{num}</if> |
| | | <if test="alarmTime != null ">and alarm_time = #{alarmTime}</if> |
| | | <if test="startTime!=null and endTime!=null"> |
| | | and a.alarm_time between #{startTime} and #{endTime} |
| | | </if> |
| | | <if test="keyword!=null and keyword!=''"> |
| | | and (b.dept_name like concat('%',#{keyword},'%') or |
| | | a.ip like concat('%',#{keyword},'%') |
| | | ) |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | |
| | | </insert> |
| | | |
| | | <insert id="saveBatch"> |
| | | INSERT INTO t_image_resource_security_detail (ip, dept_id, alarm_category, alarm_level, num, alarm_time, create_time) VALUES |
| | | INSERT INTO t_image_resource_security_detail (ip, dept_id, alarm_category, alarm_level, num, alarm_time, |
| | | create_time) VALUES |
| | | <foreach collection="list" item="item" index="index" separator=","> |
| | | (#{item.ip}, #{item.deptId}, #{item.alarmCategory}, #{item.alarmLevel}, #{item.num}, #{item.alarmTime}, NOW()) |
| | | (#{item.ip}, #{item.deptId}, #{item.alarmCategory}, #{item.alarmLevel}, #{item.num}, #{item.alarmTime}, |
| | | NOW()) |
| | | </foreach> |
| | | </insert> |
| | | |