@@ -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
ai.account_id=ua.account_id
- where
- tu.user_id=#{userId}
</select>
<!-- 专门针对queryUserDetailInformation返回值结果用的 -->
<resultMap type="com.fuzamei.entity.UserDetail" id="UserDetailRM" autoMapping="true">