| | |
| | | package cn.flightfeather.supervision.lightshare.service.impl |
| | | |
| | | import cn.flightfeather.supervision.business.autooutput.score.AopEvaluation |
| | | import cn.flightfeather.supervision.common.exception.BizException |
| | | import cn.flightfeather.supervision.domain.ds1.entity.* |
| | | import cn.flightfeather.supervision.domain.ds1.mapper.* |
| | | import cn.flightfeather.supervision.common.utils.Constant |
| | |
| | | return subtaskVoList |
| | | } |
| | | |
| | | override fun findByDayTaskID(dayTaskId: String, userId: String, userType: String): List<Subtask> { |
| | | override fun findByDayTaskID(dayTaskId: String, userId: String, userType: String): List<SubtaskVo> { |
| | | val example = Example(Subtask::class.java) |
| | | val criteria = example.createCriteria() |
| | | criteria.andEqualTo("tsguid", dayTaskId) |
| | |
| | | ) |
| | | } |
| | | example.orderBy("name") |
| | | val result = subtaskMapper.selectByExample(example).apply { |
| | | forEach breaking@{ |
| | | val result = subtaskMapper.selectByExample(example).map { |
| | | val vo = SubtaskVo() |
| | | BeanUtils.copyProperties(it, vo) |
| | | vo |
| | | }.onEach { |
| | | //已审核提示 |
| | | it.remark = Constant.PROBLEM_CHECK_PASS |
| | | |
| | | problemlistMapper.selectByExample(Example(Problemlist::class.java).apply { |
| | | createCriteria().andEqualTo("stguid", it.stguid) |
| | | and( |
| | |
| | | //子任务中有问题未审核时,设置未审核提示 |
| | | if (problem.extension3 == Constant.PROBLEM_UNCHECKED) { |
| | | it.remark = Constant.PROBLEM_UNCHECKED |
| | | return@breaking |
| | | } |
| | | } |
| | | |
| | | // 场景类型 |
| | | scenseMapper.selectByPrimaryKey(it.scenseid)?.let { s-> |
| | | it.sceneTypeId = s.typeid |
| | | it.sceneTypeName = s.type |
| | | } |
| | | } |
| | | return result |