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> fanli/src/main/java/com/yeshi/fanli/service/impl/user/UserInfoModifyRecordServiceImpl.java
@@ -59,6 +59,7 @@ record.setCreateTime(new Date()); userInfoModifyRecordMapper.insertSelective(record); } catch (Exception e) { e.printStackTrace(); LogHelper.errorDetailInfo(e); } }