zhaoxian пре 3 година
родитељ
комит
8bbe43fb6c
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      ruixuan-live/src/main/resources/mapper/isc/KuaishouPromoterMapper.xml

+ 1 - 0
ruixuan-live/src/main/resources/mapper/isc/KuaishouPromoterMapper.xml

@@ -74,6 +74,7 @@
         <if test="userId != null ">
         <if test="userId != null ">
             AND user_id = #{userId}
             AND user_id = #{userId}
         </if>
         </if>
+        limit 1
     </select>
     </select>
 
 
     <insert id="insertKuaishouPromoter" parameterType="com.ruixuan.isc.entity.KuaishouPromoter" useGeneratedKeys="true"
     <insert id="insertKuaishouPromoter" parameterType="com.ruixuan.isc.entity.KuaishouPromoter" useGeneratedKeys="true"