浏览代码

fix 考试时间

he2802 3 年之前
父节点
当前提交
060fb3b050

+ 1 - 0
zhongzheng-admin/src/main/java/com/zhongzheng/controller/user/UserSubscribeController.java

@@ -88,6 +88,7 @@ public class UserSubscribeController extends BaseController {
     }
 
     /**
+     *
      * 修改用户预约考试
      */
     @ApiOperation("批量取消预约,批量选考试登记状态,批量修改预约状态,批量前培账号开通")

+ 5 - 2
zhongzheng-system/src/main/resources/mapper/modules/bank/QuestionMapper.xml

@@ -224,11 +224,14 @@
         <if test="subjectId != null and subjectId != ''">
             AND qb.subject_id = #{subjectId}
         </if>
+        <if test="type != null and type != ''">
+            AND q.type = #{type}
+        </if>
         <if test="businessId != null and businessId != ''">
             AND qb.business_id = #{businessId}
         </if>
-        <if test="type != null and type != ''">
-            AND q.type = #{type}
+        <if test="publishStatus != null and publishStatus != ''">
+            AND q.publish_status = #{publishStatus}
         </if>
         <if test="prefixName != null and prefixName != ''">
             AND q.prefix_name like concat('%', #{prefixName}, '%')

+ 1 - 1
zhongzheng-system/src/main/resources/mapper/modules/course/CourseMapper.xml

@@ -273,7 +273,7 @@
             AND c.major_id = #{majorId}
         </if>
         <if test="key != null and key != ''">
-            AND (c.course_name like concat('%', #{key}, '%') or c.code = #{key})
+            AND (c.course_name like concat('%', #{key}, '%') or c.code = #{key} or c.prefix_name like concat('%', #{key}, '%'))
         </if>
         GROUP BY
         c.course_id