无关风月
2025-05-08 9486766c806fe1d9e082b2fd02ea1cc558f1b443
cloud-server-account/src/main/java/com/dsh/account/controller/ClassDetailsController.java
@@ -260,13 +260,10 @@
                    vo.setStuPhone(ToolUtil.isEmpty(sts.getPhone()) ? "" : sts.getPhone());
                    vo.setIdCard(ToolUtil.isEmpty(sts.getIdCard()) ? "" : sts.getIdCard());
                    SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd");
                    vo.setBirthday(simpleDateFormat.format(sts.getBirthday()));
                    vo.setStuName(sts.getName());
                    if (sts.getBirthday()!=null){
                        vo.setStuAge(DateUtil.age(sts.getBirthday()));
                    }else{
                        vo.setStuAge(18);
                        vo.setBirthday(simpleDateFormat.format(sts.getBirthday()));
                    }
                    vo.setStuHeight(sts.getHeight());
                    vo.setStuWeight(sts.getWeight());
@@ -278,6 +275,7 @@
            }
            return ResultUtil.success(stuListVos);
        } catch (Exception e) {
            e.printStackTrace();
            return ResultUtil.runErr();
        }
    }