From f772c17da4190642f7effdab83de374640265e28 Mon Sep 17 00:00:00 2001 From: puzhibing <393733352@qq.com> Date: 星期一, 27 十一月 2023 14:45:37 +0800 Subject: [PATCH] 添加周排课的定时任务 --- cloud-server-management/src/main/java/com/dsh/guns/modular/system/controller/code/TAppUserController.java | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/cloud-server-management/src/main/java/com/dsh/guns/modular/system/controller/code/TAppUserController.java b/cloud-server-management/src/main/java/com/dsh/guns/modular/system/controller/code/TAppUserController.java index 4a3ec65..27b3622 100644 --- a/cloud-server-management/src/main/java/com/dsh/guns/modular/system/controller/code/TAppUserController.java +++ b/cloud-server-management/src/main/java/com/dsh/guns/modular/system/controller/code/TAppUserController.java @@ -158,7 +158,7 @@ } if (data.getViplevelId()!=null){ - // todo 创建会员等级表 + model.addAttribute("level","黄金"); } model.addAttribute("level","黄金"); @@ -280,6 +280,10 @@ @RequestMapping("/addAppUserStudent") @ResponseBody public Object addAppUser(@RequestBody TStudent student){ + Double height = student.getHeight(); + Double weight = student.getWeight(); + double v = weight / (height * height); + student.setBmi(v); return studentClient.addStudent(student); } /** -- Gitblit v1.7.1