feiyu02
2022-11-15 23bd719cebe5feeff4e48fde925b0b39755eea93
src/main/kotlin/cn/flightfeather/supervision/common/score/AutoScore.kt
@@ -94,8 +94,9 @@
    }
    fun go(_year: Int? = null, _month: Int? = null) {
        val fileName = "汽修自动评分-${DateUtil().DateToString(Date(), "yyyy-MM-ddhhmmss")}.xls"
        val filePath = "E:\\工作\\开发\\飞羽环境app\\自动评分\\汽修\\$fileName"
        val fileName = "${SCENE_TYPE.des}自动评分-${DateUtil.DateToString(Date(), "yyyy-MM-ddhhmmss")}.xls"
//        val filePath = "E:\\工作\\开发\\飞羽环境app\\自动评分\\${SCENE_TYPE.des}\\$fileName"
        val filePath = "C:\\work\\工作\\第三方监管\\自动评分\\${SCENE_TYPE.des}\\$fileName"
        val out = FileOutputStream(File(filePath))
        getScoreItem()
@@ -103,11 +104,8 @@
        val userList = userinfoMapper.selectByExample(Example(Userinfo::class.java).apply {
            createCriteria().andEqualTo("usertypeid", UserType.Enterprise.value.toByte())
                // FIXME: 2021/4/28 场景类型 
//                    汽修类型
                .andEqualTo("extension2", SCENE_TYPE.value.toString())
                .andEqualTo("isenable", true)
//            餐饮类型
//                .andEqualTo("extension2", SCENE_TYPE.value.toString())
//            orderBy("workno")
        })
@@ -150,7 +148,7 @@
        val now = LocalDate.now()
        val year = _year ?: now.year
        val month = _month ?: now.monthValue
        val sMonth = DateUtil().getStartMonthByPeriod(month, 3) ?: 1
        val sMonth = DateUtil.getStartMonthByPeriod(month, 3) ?: 1
        val eMonth = sMonth + 2
        val period = "${year}/$sMonth-$eMonth"