feiyu02
2025-09-30 a3cc1d220f8a1de11874bebceba0130d32157ff1
2025.9.30
1. 联合前端调试数据产品接口(待完成)
已修改5个文件
40 ■■■■■ 文件已修改
src/main/kotlin/cn/flightfeather/supervision/common/utils/QueryByCache.kt 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/kotlin/cn/flightfeather/supervision/lightshare/service/impl/DataProdBaseServiceImpl.kt 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/kotlin/cn/flightfeather/supervision/lightshare/service/impl/DataProdMiddleServiceImpl.kt 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/kotlin/cn/flightfeather/supervision/lightshare/vo/dataprod/middle/DPProblemCountByArea.kt 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/kotlin/cn/flightfeather/supervision/lightshare/web/NightConstructionController.kt 26 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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
@@ -11,25 +11,25 @@
    @GetMapping("/record/all")
    fun getRecord(
            @RequestParam(value = "cityCode", required = false) cityCode: String?,
            @RequestParam("districtCode") districtCode: String,
            @RequestParam("page") page: Int,
            @RequestParam("perPage") perPage: Int
        @RequestParam(value = "cityCode", required = false) cityCode: String?,
        @RequestParam("districtCode") districtCode: String,
        @RequestParam("page") page: Int,
        @RequestParam("perPage") perPage: Int,
    ) = nightConstructionService.getRecord(cityCode, districtCode, page, perPage)
    @GetMapping("/record")
    fun getNightWorkFile(
            @RequestParam("userId") userId: String,
            @RequestParam(value = "isRead", required = false) isRead: Boolean?,
            @RequestParam("page") page: Int,
            @RequestParam("perPage") perPage: Int
        @RequestParam("userId") userId: String,
        @RequestParam(value = "isRead", required = false) isRead: Boolean?,
        @RequestParam("page") page: 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("userId") userId: String,
        @RequestParam("fileNum") fileNum: String,
        @RequestParam("id") id: Int,
    ) = nightConstructionService.signFile(userId, fileNum, id)
    @PostMapping("/record")
@@ -41,7 +41,7 @@
    @GetMapping("/summary")
    fun getSummary(
            @RequestParam(value = "cityCode", required = false) cityCode: String?,
            @RequestParam("districtCode") districtCode: String
        @RequestParam(value = "cityCode", required = false) cityCode: String?,
        @RequestParam("districtCode") districtCode: String,
    ) = nightConstructionService.getSummary(cityCode, districtCode)
}