userMapper
List<UserReponseDto>selectAllUserByTime(@Param(value="user")User user,@Param(value="startTime") String startTime,@Param(value="endTime") String endTime);
userMapper.XML
<select id="selectAllPrpOpinionByTime" resultMap="AllOpinionBaseResultMap">
<if test="user.operName != null">
and o.oper_name = #{user.operName,jdbcType=VARCHAR}
</if>
<if test="user.osSource != null">
and o.os_source like '%${user.osSource}%'
</if>
<if test="startTime != null">
and o.create_time >= #{startTime}
</if>