| | |
| | | |
| | | } |
| | | if (data.getViplevelId()!=null){ |
| | | // todo 创建会员等级表 |
| | | |
| | | model.addAttribute("level","黄金"); |
| | | } |
| | | model.addAttribute("level","黄金"); |
| | |
| | | public Object addAppUser(@RequestBody TAppUser appUser){ |
| | | Integer objectType = UserExt.getUser().getObjectType(); |
| | | appUser.setPassword(MD5.md5("111111")); |
| | | appUser.setProvince(""); |
| | | appUser.setProvinceCode(""); |
| | | appUser.setCity(""); |
| | | appUser.setCityCode(""); |
| | | appUser.setInsertType(objectType); |
| | | appUser.setAddUserId(UserExt.getUser().getObjectId()); |
| | | Object o = appUserClient.addAppUser1(appUser); |
| | |
| | | @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); |
| | | } |
| | | /** |