ylx 7 年之前
父节点
当前提交
c6cf834814
共有 1 个文件被更改,包括 13 次插入2 次删除
  1. 13 2
      saicLogistics/src/main/java/com/fuzamei/mapper/UserAuthoricationMapper.xml

+ 13 - 2
saicLogistics/src/main/java/com/fuzamei/mapper/UserAuthoricationMapper.xml

@@ -111,8 +111,19 @@
 			r.role_name=#{roleName}
 	</select>
 	
-	<select id="" resultType="int">
-		
+	<select id="verificationToken" resultType="int">
+		select 
+			count(*) 
+		from
+			users u
+		left join 
+			token t
+		on 
+			u.user_id=t.user_id
+		where 
+			u.user_id=#{userId}
+		and 
+			t.token=#{token}
 	</select>