feiyu02
2022-11-15 23bd719cebe5feeff4e48fde925b0b39755eea93
src/main/kotlin/cn/flightfeather/supervision/common/score/item/ScoreItem_12.kt
@@ -52,15 +52,18 @@
     * 季度内全无自评的 -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
    }
    /**