无关风月
2025-05-08 9486766c806fe1d9e082b2fd02ea1cc558f1b443
cloud-server-account/src/main/java/com/dsh/account/controller/ClassDetailsController.java
@@ -109,7 +109,7 @@
    @ResponseBody
    @PostMapping("/api/startCource/weeksOfCourseDetailsList")
    @ApiOperation(value = "上课首页-课程列表2.0", tags = {"APP-开始上课"})
    @ApiOperation(value = "上课首页-课程列表", tags = {"APP-开始上课"})
    @ApiImplicitParams({
            @ApiImplicitParam(name = "Authorization", value = "Bearer +token", required = true, dataType = "String", paramType = "header", defaultValue = "Bearer eyJhbGciOiJIUzUxMiJ9....."),
            @ApiImplicitParam(value = "查询时间yyyy-MM-dd", name = "time", required = true, dataType = "string"),
@@ -143,9 +143,12 @@
            if (null == appUserId) {
                return ResultUtil.tokenErr();
            }
            TAppGift one = appGiftService.getOne(new LambdaQueryWrapper<TAppGift>().eq(TAppGift::getUserId, appUserId));
            return ResultUtil.success(one == null ? 0 : one.getNum());
            Integer num = 0;
            List<TAppGift> list = appGiftService.list(new LambdaQueryWrapper<TAppGift>().eq(TAppGift::getUserId, appUserId));
            for (TAppGift tAppGift : list) {
                num += tAppGift.getNum();
            }
            return ResultUtil.success(num);
        } catch (Exception e) {
            e.printStackTrace();
            return ResultUtil.runErr();
@@ -167,11 +170,9 @@
                return ResultUtil.tokenErr();
            }
            TAppGift one = appGiftService.getOne(new LambdaQueryWrapper<TAppGift>().eq(TAppGift::getUserId, appUserId));
            Boolean b = false;
            Integer i = 0;
            if (one != null && one.getNum() > 0) {
                i = appGiftService.weeksOfAddHours(packetId, appUserId, one.getNum());
            }
            if (i == 1) {
                // 送完清0
@@ -259,9 +260,11 @@
                    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());
                    vo.setStuAge(DateUtil.age(sts.getBirthday()));
                    if (sts.getBirthday()!=null){
                        vo.setStuAge(DateUtil.age(sts.getBirthday()));
                        vo.setBirthday(simpleDateFormat.format(sts.getBirthday()));
                    }
                    vo.setStuHeight(sts.getHeight());
                    vo.setStuWeight(sts.getWeight());
                    vo.setIsNot(sts.getIsDefault());
@@ -272,6 +275,7 @@
            }
            return ResultUtil.success(stuListVos);
        } catch (Exception e) {
            e.printStackTrace();
            return ResultUtil.runErr();
        }
    }
@@ -379,8 +383,6 @@
            }
            return ResultUtil.success(istuService.updateById(tStudent));
//            return ResultUtil.success(istuService.commitEditStudentInfo(stu,userIdFormRedis));
        } catch (Exception e) {
            return ResultUtil.runErr();
        }
@@ -574,13 +576,11 @@
    })
    public ResultUtil<List<StuMedalVo>> queryStuMedal(Integer stuId) {
        try {
            Integer appUserId = tokenUtil.getUserIdFormRedis();
            if (null == appUserId) {
                return ResultUtil.tokenErr();
            }
            return ResultUtil.success(honorService.queryHonorDetails(stuId));
            return ResultUtil.success(honorService.queryHonorDetails(appUserId));
        } catch (Exception e) {
            return ResultUtil.runErr();
        }
@@ -603,7 +603,7 @@
            if (null == appUserId) {
                return ResultUtil.tokenErr();
            }
            return ResultUtil.success(honorService.queryStuOfMedalData(stuId));
            return ResultUtil.success(honorService.queryStuOfMedalData(stuId, appUserId));
        } catch (Exception e) {
            return ResultUtil.runErr();
        }