小么熊🐻 2 лет назад
Родитель
Сommit
8dbd2fa94e
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      nbjk-service/src/main/resources/mapper/vip/VipUserExamMapper.xml

+ 2 - 2
nbjk-service/src/main/resources/mapper/vip/VipUserExamMapper.xml

@@ -37,8 +37,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
 
 
 
-    <select id="getUserExamByByUnionIdAndGoodsId" resultType="int">
-        select from vip_user_exam where exam_id = #{goodsId} and union_id = #{unionId}
+    <select id="getUserExamByUnionIdAndGoodsId" resultType="int">
+        select count(1) from vip_user_exam where exam_id = #{goodsId} and union_id = #{unionId}
     </select>