tanzh 3 年之前
父節點
當前提交
f7f100ab4e

+ 1 - 1
zhongzheng-api/src/main/java/com/zhongzheng/controller/user/UserMockSubscribeController.java

@@ -150,7 +150,7 @@ public class UserMockSubscribeController extends BaseController {
      */
     @ApiOperation("获取预约模考详细信息")
     @PreAuthorize("@ss.hasPermi('system:subscribe:query')")
-    @GetMapping("/{subscribeId}")
+    @GetMapping("/info/{subscribeId}")
     public AjaxResult<UserMockSubscribeVo> getSubscribeInfo(@PathVariable("subscribeId" ) Long subscribeId) {
         return AjaxResult.success(iUserMockSubscribeService.queryById(subscribeId));
     }

+ 1 - 0
zhongzheng-system/src/main/resources/mapper/modules/mock/MockMajorSubjectTimeMapper.xml

@@ -69,6 +69,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <if test="applyName != null and applyName != ''">
             and ma.apply_name = #{applyName}
         </if>
+        AND ma.`status` = 1
     </select>
     <select id="listByEachExamId" parameterType="java.lang.Long" resultType="com.zhongzheng.modules.user.vo.UserMockSubscribeVo">
         SELECT

+ 1 - 0
zhongzheng-system/src/main/resources/mapper/modules/user/UserMockSubscribeMapper.xml

@@ -186,6 +186,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <if test="applyName != null and applyName != ''">
             and ma.applyName = #{applyName}
         </if>
+        AND ma.`status` = 1
     </select>
     <select id="listLiveSubscribe" resultMap="UserMockSubscribeVoResult">
         SELECT