From 450cf519d2481554e35bd10e3b536cbeada585e4 Mon Sep 17 00:00:00 2001 From: yujian <yujian@123.com> Date: 星期二, 27 八月 2019 11:47:42 +0800 Subject: [PATCH] 用户信息修改记录 --- fanli/src/main/java/com/yeshi/fanli/mapping/user/UserInfoModifyRecordMapper.xml | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/mapping/user/UserInfoModifyRecordMapper.xml b/fanli/src/main/java/com/yeshi/fanli/mapping/user/UserInfoModifyRecordMapper.xml index d50ebbb..7efe648 100644 --- a/fanli/src/main/java/com/yeshi/fanli/mapping/user/UserInfoModifyRecordMapper.xml +++ b/fanli/src/main/java/com/yeshi/fanli/mapping/user/UserInfoModifyRecordMapper.xml @@ -41,9 +41,9 @@ </set> where umr_id = #{id,jdbcType=BIGINT} </update> - <select id="countByUid" resultMap="BaseResultMap"> + <select id="countByUid" resultType="Long"> SELECT IFNULL(COUNT(d.`umr_id`),0) FROM yeshi_ec_user_modify_record d WHERE d.`umr_uid` = #{uid} - <if test="">AND d.`umr_type`= #{type}</if> + <if test="type != null">AND d.`umr_type`= #{type}</if> </select> </mapper> -- Gitblit v1.8.0