| | |
| | | * 季度内全无自评的 -10分 |
| | | */ |
| | | private fun condition2(): Boolean { |
| | | // val period = "${info.year}/$sMonth-$eMonth" |
| | | // val e = evaluationMapper.selectByExample(Example(Evaluation::class.java).apply { |
| | | // createCriteria().andEqualTo("iguid", info.userId) |
| | | // .andEqualTo("ertype", 0) |
| | | // .andEqualTo("scensename", period) |
| | | // }) |
| | | // return e.isEmpty() |
| | | val periods = mutableListOf<String>() |
| | | for (i in sMonth..eMonth) { |
| | | periods.add("${info.year}/$i-$i") |
| | | } |
| | | val e = evaluationMapper.selectByExample(Example(Evaluation::class.java).apply { |
| | | createCriteria().andEqualTo("iguid", info.userId) |
| | | .andEqualTo("ertype", 0) |
| | | .andIn("scensename", periods) |
| | | }) |
| | | return e.isEmpty() |
| | | // FIXME: 2021/4/26 自评暂时不扣分 |
| | | return false |
| | | // return false |
| | | } |
| | | |
| | | /** |