太湖云医复读
This commit is contained in:
@@ -11,8 +11,7 @@ import com.peanut.config.DelayQueueConfig;
|
|||||||
import com.peanut.modules.book.service.TransactionDetailsService;
|
import com.peanut.modules.book.service.TransactionDetailsService;
|
||||||
import com.peanut.modules.common.dao.CourseToMedicineDao;
|
import com.peanut.modules.common.dao.CourseToMedicineDao;
|
||||||
import com.peanut.modules.common.entity.*;
|
import com.peanut.modules.common.entity.*;
|
||||||
import com.peanut.modules.common.service.BuyOrderService;
|
import com.peanut.modules.common.service.*;
|
||||||
import com.peanut.modules.common.service.CourseToPsycheService;
|
|
||||||
import com.peanut.modules.common.service.JfTransactionDetailsService;
|
import com.peanut.modules.common.service.JfTransactionDetailsService;
|
||||||
import com.peanut.modules.common.service.MyUserService;
|
import com.peanut.modules.common.service.MyUserService;
|
||||||
import com.peanut.modules.master.service.*;
|
import com.peanut.modules.master.service.*;
|
||||||
@@ -55,6 +54,8 @@ public class CourseRelearnController {
|
|||||||
@Autowired
|
@Autowired
|
||||||
private CourseToPsycheService courseToPsycheService;
|
private CourseToPsycheService courseToPsycheService;
|
||||||
@Autowired
|
@Autowired
|
||||||
|
private CourseToTaihumedService courseToTaihumedService;
|
||||||
|
@Autowired
|
||||||
private ShopProductService shopProductService;
|
private ShopProductService shopProductService;
|
||||||
@Autowired
|
@Autowired
|
||||||
private BuyOrderService buyOrderService;
|
private BuyOrderService buyOrderService;
|
||||||
@@ -104,7 +105,8 @@ public class CourseRelearnController {
|
|||||||
int mCount = courseToMedicalService.count(new LambdaQueryWrapper<CourseToMedicine>().eq(CourseToMedicine::getCourseId,courseEntity.getId()));
|
int mCount = courseToMedicalService.count(new LambdaQueryWrapper<CourseToMedicine>().eq(CourseToMedicine::getCourseId,courseEntity.getId()));
|
||||||
int sCount = courseToSociologyService.count(new LambdaQueryWrapper<CourseToSociologyEntity>().eq(CourseToSociologyEntity::getCourseId,courseEntity.getId()));
|
int sCount = courseToSociologyService.count(new LambdaQueryWrapper<CourseToSociologyEntity>().eq(CourseToSociologyEntity::getCourseId,courseEntity.getId()));
|
||||||
int pCount = courseToPsycheService.count(new LambdaQueryWrapper<CourseToPsyche>().eq(CourseToPsyche::getCourseId,courseEntity.getId()));
|
int pCount = courseToPsycheService.count(new LambdaQueryWrapper<CourseToPsyche>().eq(CourseToPsyche::getCourseId,courseEntity.getId()));
|
||||||
if (mCount>0||sCount > 0||pCount > 0){
|
int tCount = courseToTaihumedService.count(new LambdaQueryWrapper<CourseToTaihumed>().eq(CourseToTaihumed::getCourseId,courseEntity.getId()));
|
||||||
|
if (mCount>0||sCount > 0||pCount > 0||tCount > 0){
|
||||||
List<UserCourseBuyEntity> list = userCourseBuyService.list(new MPJLambdaWrapper<UserCourseBuyEntity>()
|
List<UserCourseBuyEntity> list = userCourseBuyService.list(new MPJLambdaWrapper<UserCourseBuyEntity>()
|
||||||
.disableLogicDel()//查询出已删除数据
|
.disableLogicDel()//查询出已删除数据
|
||||||
.eq(UserCourseBuyEntity::getUserId, ShiroUtils.getUId())
|
.eq(UserCourseBuyEntity::getUserId, ShiroUtils.getUId())
|
||||||
@@ -135,7 +137,8 @@ public class CourseRelearnController {
|
|||||||
int mCount = courseToMedicalService.count(new LambdaQueryWrapper<CourseToMedicine>().eq(CourseToMedicine::getCourseId,courseEntity.getId()));
|
int mCount = courseToMedicalService.count(new LambdaQueryWrapper<CourseToMedicine>().eq(CourseToMedicine::getCourseId,courseEntity.getId()));
|
||||||
int sCount = courseToSociologyService.count(new LambdaQueryWrapper<CourseToSociologyEntity>().eq(CourseToSociologyEntity::getCourseId,courseEntity.getId()));
|
int sCount = courseToSociologyService.count(new LambdaQueryWrapper<CourseToSociologyEntity>().eq(CourseToSociologyEntity::getCourseId,courseEntity.getId()));
|
||||||
int pCount = courseToPsycheService.count(new LambdaQueryWrapper<CourseToPsyche>().eq(CourseToPsyche::getCourseId,courseEntity.getId()));
|
int pCount = courseToPsycheService.count(new LambdaQueryWrapper<CourseToPsyche>().eq(CourseToPsyche::getCourseId,courseEntity.getId()));
|
||||||
if (mCount>0||sCount > 0||pCount > 0){
|
int tCount = courseToTaihumedService.count(new LambdaQueryWrapper<CourseToTaihumed>().eq(CourseToTaihumed::getCourseId,courseEntity.getId()));
|
||||||
|
if (mCount>0||sCount > 0||pCount > 0||tCount > 0){
|
||||||
MPJLambdaWrapper<ShopProduct> wrapper = new MPJLambdaWrapper<>();
|
MPJLambdaWrapper<ShopProduct> wrapper = new MPJLambdaWrapper<>();
|
||||||
wrapper.leftJoin(ShopProductCourseEntity.class,ShopProductCourseEntity::getProductId,ShopProduct::getProductId);
|
wrapper.leftJoin(ShopProductCourseEntity.class,ShopProductCourseEntity::getProductId,ShopProduct::getProductId);
|
||||||
wrapper.selectAll(ShopProduct.class);
|
wrapper.selectAll(ShopProduct.class);
|
||||||
|
|||||||
Reference in New Issue
Block a user