| | |
| | | criteria.andEqualTo("stguid", subtask.stguid) |
| | | val result = evaluationMapper.selectByExample(example) |
| | | if (result.isEmpty()) { |
| | | if (subtask.districtname == "徐汇区") { |
| | | val autoScore = AutoScore2() |
| | | autoScore.subtask = subtask |
| | | autoScore.calculateScore() |
| | | } else { |
| | | val autoScore = AutoScore() |
| | | autoScore.subtask = subtask |
| | | autoScore.calculateScore() |
| | | } |
| | | // val autoScore = StAutoScore(scoreItem1, scoreItem2) |
| | | // autoScore.sceneType = Constant.ScenseType.TYPE1 |
| | | // if (subtask.districtname == "徐汇区") { |
| | | // val autoScore = AutoScore2() |
| | | // autoScore.subtask = subtask |
| | | // autoScore.calculateScore() |
| | | // } else { |
| | | // val autoScore = AutoScore() |
| | | // autoScore.subtask = subtask |
| | | // autoScore.calculateScore() |
| | | // } |
| | | val s = scenseMapper.selectByPrimaryKey(subtask.scenseid) |
| | | val autoScore = StAutoScore(scoreItem1, scoreItem2) |
| | | autoScore.sceneType = Constant.ScenseType.getByValue(s.typeid?.toString()) |
| | | autoScore.sceneGrade(subtask) |
| | | } |
| | | } |
| | | |