修改params参数为空时报错BUG

This commit is contained in:
932319043@qq.com 2019-03-04 19:47:14 +08:00
parent 349444c14b
commit bbe6940d0d
1 changed files with 2 additions and 0 deletions

View File

@ -54,8 +54,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="params != null and params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
and date_format(r.create_time,'%y%m%d') &lt;= date_format(#{params.endTime},'%y%m%d')
</if>
<if test="params != null and params.dataScope != null and params.dataScope != ''">
<!-- 数据范围过滤 -->
${params.dataScope}
</if>
</select>
<select id="selectRolesByUserId" parameterType="Long" resultMap="SysRoleResult">