src/main/kotlin/cn/flightfeather/supervision/common/utils/QueryByCache.kt
@@ -14,7 +14,7 @@ * @param save 缓存保存方法 * @return */ fun <T> queryCache(cache: () -> T?, calculate: () -> T, save: (t: T) -> Unit): T { fun <T> queryCache(cache: () -> T?, calculate: () -> T, save: (t: T) -> Unit = {}): T { val cacheData = cache.invoke() if (cacheData != null) { return cacheData src/main/kotlin/cn/flightfeather/supervision/lightshare/service/impl/DataProdBaseServiceImpl.kt
@@ -105,8 +105,7 @@ } } return@queryCache res }, save = { } } ) } @@ -151,7 +150,6 @@ res.sortBy { it.index } return@queryCache res }, save = { } ) } @@ -202,7 +200,6 @@ res.sortBy { it.index } return@queryCache res }, save = { } ) } @@ -233,7 +230,6 @@ return@queryCache res }, save = { } ) } } src/main/kotlin/cn/flightfeather/supervision/lightshare/service/impl/DataProdMiddleServiceImpl.kt
@@ -59,7 +59,6 @@ } return@queryCache res }, save = {} ) } @@ -96,7 +95,6 @@ } return@queryCache res }, save = {} ) } @@ -128,7 +126,6 @@ return@queryCache res }, save = {} ) } @@ -168,7 +165,6 @@ return@queryCache res }, save = {} ) } } src/main/kotlin/cn/flightfeather/supervision/lightshare/vo/dataprod/middle/DPProblemCountByArea.kt
@@ -32,7 +32,7 @@ */ var problemCount: Int = 0 /** * 问题数量占比 * 单场景问题数量均值 */ var ratio: Double = 0.0 } src/main/kotlin/cn/flightfeather/supervision/lightshare/web/NightConstructionController.kt
@@ -14,7 +14,7 @@ @RequestParam(value = "cityCode", required = false) cityCode: String?, @RequestParam("districtCode") districtCode: String, @RequestParam("page") page: Int, @RequestParam("perPage") perPage: Int @RequestParam("perPage") perPage: Int, ) = nightConstructionService.getRecord(cityCode, districtCode, page, perPage) @GetMapping("/record") @@ -22,14 +22,14 @@ @RequestParam("userId") userId: String, @RequestParam(value = "isRead", required = false) isRead: Boolean?, @RequestParam("page") page: Int, @RequestParam("perPage") perPage: Int @RequestParam("perPage") perPage: Int, ) = nightConstructionService.getNightWorkFile(userId, isRead, page, perPage) @PostMapping("/sign") fun signFile( @RequestParam("userId") userId: String, @RequestParam("fileNum") fileNum: String, @RequestParam("id") id: Int @RequestParam("id") id: Int, ) = nightConstructionService.signFile(userId, fileNum, id) @PostMapping("/record") @@ -42,6 +42,6 @@ @GetMapping("/summary") fun getSummary( @RequestParam(value = "cityCode", required = false) cityCode: String?, @RequestParam("districtCode") districtCode: String @RequestParam("districtCode") districtCode: String, ) = nightConstructionService.getSummary(cityCode, districtCode) }