ylx 7 years ago
parent
commit
8837fd079c

+ 6 - 3
ccb_fund_trusteeship/src/main/java/com/fuzamei/mapper/UserAuthoricationMapper.xml

@@ -25,7 +25,12 @@
 			ai.account_type,
 			ai.money
 		from 
-			t_user tu
+			(select 
+				*
+			from 
+				t_user
+			where 
+				user_id=#{userId}) tu
 		left join 
 			user_role ur
 		on 
@@ -50,8 +55,6 @@
 			account_info ai
 		on 
 			ai.account_id=ua.account_id
-		where 
-			tu.user_id=#{userId}
 	</select>
 	<!-- 专门针对queryUserDetailInformation返回值结果用的 -->
 	<resultMap type="com.fuzamei.entity.UserDetail" id="UserDetailRM" autoMapping="true">