小么熊🐻 преди 2 години
родител
ревизия
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>