| | |
| | | } |
| | | return true |
| | | } catch (e: Exception) { |
| | | throw BizException("出现系统内部错误") |
| | | throw BizException(e.message, e.cause) |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | return true |
| | | } catch (e: Exception) { |
| | | throw BizException("出现系统内部错误") |
| | | throw BizException(e.message, e.cause) |
| | | } |
| | | } |
| | | |
| | |
| | | val sceneType = evaVo.scensetypeid?.toInt() ?: throw BizException("场景类型未设置,无法更新分数") |
| | | val source = AopDataSource(aopDbMapper, aopSceneTypeCheck) |
| | | source.setResource(taskId, sceneType, null, null) |
| | | |
| | | try { |
| | | source.loop() { _, evaluationScene -> |
| | | if (evaluationScene.noRecord()) throw BizException("巡查任务不存在") |
| | | if (evaluationScene.noRecord()) return@loop |
| | | evaVo.subTaskEvaList?.find { |
| | | it.subTaskId == evaluationScene.subTask.value?.stguid |
| | | }?.let {stEva -> |
| | |
| | | } |
| | | return true |
| | | } catch (e: Exception) { |
| | | throw BizException("出现系统内部错误") |
| | | throw BizException(e.message, e.cause) |
| | | } |
| | | } |
| | | } |