yangdamao 3 жил өмнө
parent
commit
d6039340d0

+ 1 - 0
zhongzheng-common/src/main/java/com/zhongzheng/common/core/controller/BaseController.java

@@ -1,5 +1,6 @@
 package com.zhongzheng.common.core.controller;
 
+
 import cn.hutool.core.lang.Validator;
 import cn.hutool.core.util.StrUtil;
 import cn.hutool.http.HttpStatus;

+ 2 - 0
zhongzheng-system/src/main/java/com/zhongzheng/modules/exam/bo/ExamRecommendGoodsQueryBo.java

@@ -25,6 +25,8 @@ public class ExamRecommendGoodsQueryBo implements Serializable {
     @ApiModelProperty("分页参数")
     private Integer pageNum;
 
+    @ApiModelProperty("1小程序 2PC网站")
+    private Integer platform;
 
 
 }

+ 2 - 0
zhongzheng-system/src/main/java/com/zhongzheng/modules/exam/service/impl/ExamApplyServiceImpl.java

@@ -334,10 +334,12 @@ public class ExamApplyServiceImpl extends ServiceImpl<ExamApplyMapper, ExamApply
         if (ObjectUtils.isNull(business)){
             throw new CustomException("获取试卷业务层次信息失败");
         }
+        Integer platform = ObjectUtils.isNull(bo.getPlatform())?1:bo.getPlatform();
         //获取推荐位信息
         List<ActivityRecommend> list = iActivityRecommendService.list(new LambdaQueryWrapper<ActivityRecommend>()
                 .eq(ActivityRecommend::getEducationTypeId, business.getEducationTypeId())
                 .eq(ActivityRecommend::getBusinessId, business.getBusinessId())
+                .eq(ActivityRecommend::getPlatform,platform)
                 .eq(ActivityRecommend::getType, 1)
                 .eq(ActivityRecommend::getStatus,1));
         if (CollectionUtils.isEmpty(list)){