From e030255c23c7ba3e2cbad1036a810d6d72fa864f Mon Sep 17 00:00:00 2001 From: liujie <liujie> Date: 星期四, 26 十月 2023 18:04:58 +0800 Subject: [PATCH] 修改bug --- cloud-server-account/src/main/java/com/dsh/account/service/impl/TAppUserServiceImpl.java | 46 +++++++++++++++++++++++++--------------------- 1 files changed, 25 insertions(+), 21 deletions(-) diff --git a/cloud-server-account/src/main/java/com/dsh/account/service/impl/TAppUserServiceImpl.java b/cloud-server-account/src/main/java/com/dsh/account/service/impl/TAppUserServiceImpl.java index 8e1ad7a..9b003a2 100644 --- a/cloud-server-account/src/main/java/com/dsh/account/service/impl/TAppUserServiceImpl.java +++ b/cloud-server-account/src/main/java/com/dsh/account/service/impl/TAppUserServiceImpl.java @@ -301,9 +301,10 @@ } classInfoVo.setCourseList(courseList); - List<ExerciseVideo> stuCourseOfVideoList = voclClient.getStuCourseOfVideoList(coursePackIds); - System.out.println(stuCourseOfVideoList); - classInfoVo.setExerciseVideoList(stuCourseOfVideoList); +// List<ExerciseVideo> stuCourseOfVideoList = voclClient.getStuCourseOfVideoList(coursePackIds); + List<ExerciseVideo> query = voclClient.query(id); + System.out.println("======queryqueryqueryquery=================="+query); + classInfoVo.setExerciseVideoList(query); }else { classInfoVo.setIsThere(2); List<TImgConfig> tImgConfigs = configClient.getNoneStuImgs(); @@ -1105,24 +1106,7 @@ return ResultUtil.error("超过发放数量"); } - for (int i = 0; i < goodsNums; i++) { -// 新增积分商品兑换记录 - UserPointsMerchandise pointsMerchandise = new UserPointsMerchandise(); - pointsMerchandise.setPointsMerchandiseId(exchangeType.getGoodId()); - pointsMerchandise.setUserId(userIdFormRedis); - pointsMerchandise.setStatus(1); - pointsMerchandise.setState(1); - if (merchandise.getUseScope() == 3){ - if (exchangeType.getGoodsType() == 2){ - CoursePackage coursePackage = cpageClient.queryCoursePackageById(merchandise.getCoursePackageId()); - pointsMerchandise.setStoreId(coursePackage.getStoreId()); - }else { - pointsMerchandise.setStoreId(exchangeType.getStoreId()); - } - } - pointsMerchandise.setCode(code); - mcClient.saveDetailsUserPointMercase(pointsMerchandise); - } + switch (exchangeType.getExchangeType()){ // 积分 @@ -1228,6 +1212,26 @@ default: break; } + + for (int i = 0; i < goodsNums; i++) { +// 新增积分商品兑换记录 + UserPointsMerchandise pointsMerchandise = new UserPointsMerchandise(); + pointsMerchandise.setPointsMerchandiseId(exchangeType.getGoodId()); + pointsMerchandise.setUserId(userIdFormRedis); + pointsMerchandise.setStatus(1); + pointsMerchandise.setState(1); + if (merchandise.getUseScope() == 3){ + if (exchangeType.getGoodsType() == 2){ + CoursePackage coursePackage = cpageClient.queryCoursePackageById(merchandise.getCoursePackageId()); + pointsMerchandise.setStoreId(coursePackage.getStoreId()); + }else { + pointsMerchandise.setStoreId(exchangeType.getStoreId()); + } + } + pointsMerchandise.setCode(code); + mcClient.saveDetailsUserPointMercase(pointsMerchandise); + } + return ResultUtil.success(); } -- Gitblit v1.7.1