|
|
|
|
@ -44,4 +44,23 @@ |
|
|
|
|
and date_format(r.create_time,'%y%m%d') <= date_format(#{params.endTime},'%y%m%d') |
|
|
|
|
</if> |
|
|
|
|
</select> |
|
|
|
|
<select id="selectPageRoleList" parameterType="edu.ncst.award.model.system.Role" resultMap="SysRoleResult"> |
|
|
|
|
<include refid="selectRoleVo"/> |
|
|
|
|
where true |
|
|
|
|
<if test="roleId != null and roleId != 0"> |
|
|
|
|
AND r.role_id = #{roleId} |
|
|
|
|
</if> |
|
|
|
|
<if test="name != null and name != ''"> |
|
|
|
|
AND r.name like concat('%', #{name}, '%') |
|
|
|
|
</if> |
|
|
|
|
<if test="enable != null and enable != ''"> |
|
|
|
|
AND r.enable = #{enable} |
|
|
|
|
</if> |
|
|
|
|
<if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 --> |
|
|
|
|
and date_format(r.create_time,'%y%m%d') >= date_format(#{params.beginTime},'%y%m%d') |
|
|
|
|
</if> |
|
|
|
|
<if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 --> |
|
|
|
|
and date_format(r.create_time,'%y%m%d') <= date_format(#{params.endTime},'%y%m%d') |
|
|
|
|
</if> |
|
|
|
|
</select> |
|
|
|
|
</mapper> |
|
|
|
|
|