xuhy
2025-11-12 4f78db00a0aa292655e216c507589df8dd65d7b7
ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/TOldsterWarningController.java
@@ -93,11 +93,19 @@
        }
        return R.ok(oldsterWarningVO);
    }
    /**
     * 删除老人预警信息
     */
    @Log(title = "老人预警信息-删除", businessType = BusinessType.DELETE)
    @ApiOperation(value = "老人预警信息-删除")
    @DeleteMapping(value = "/deleteById")
    public R<Boolean> deleteById(@RequestParam String id) {
        return R.ok(oldsterWarningService.removeById(id));
    }
    @Log(title = "老人预警管理-老人预警记录导出", businessType = BusinessType.EXPORT)
    @ApiOperation(value = "老人预警记录导出")
    @PostMapping("/exportOldsterWarning")
    public void exportOldsterWarning(@RequestBody TCourseOrderQuery query){
    public void exportOldsterWarning(@RequestBody OldsterListQuery query){
        List<TOldsterWarningExport> oldsterWarningExports = oldsterWarningService.exportOldsterWarning(query);
        for (TOldsterWarningExport oldsterWarningExport : oldsterWarningExports) {
            if(Objects.nonNull(oldsterWarningExport.getWarningTime())){