| | |
| | | clueConclusion.ccUploaded = false |
| | | clueConclusion.ccCreateTime = Date() |
| | | if (clueConclusion.ccInternal == null) clueConclusion.ccInternal = false |
| | | val conclusion: ClueConclusion? |
| | | try { |
| | | val conclusion = clueConclusionMapper.selectOne(ClueConclusion().apply { cId = clueConclusion.cId }) |
| | | conclusion = clueConclusionMapper.selectOne(ClueConclusion().apply { |
| | | cId = clueConclusion.cId |
| | | ccInternal = clueConclusion.ccInternal |
| | | }) |
| | | } catch (e: Exception) { |
| | | throw BizException("每条线索最多能有一条结论,该线索结论存在多条,请检查系统逻辑") |
| | | } |
| | | // 更新 |
| | | return if (conclusion != null) { |
| | | if (conclusion.ccUploaded) throw BizException("线索结论已推送,无法修改") |
| | |
| | | val res = clueConclusionMapper.insert(clueConclusion) |
| | | res == 1 |
| | | } |
| | | } catch (e: Exception) { |
| | | throw BizException("每条线索最多能有一条结论,该线索结论存在多条,请检查系统逻辑") |
| | | } |
| | | |
| | | } |
| | | |
| | | override fun getClueConclusion(clueId: String, internal: Boolean?): ClueConclusion? { |