xml中if text 判断相等
<if test='param.timeUnit = "1" '>
and date_format(usn.create_time, '%Y') = #{endTime}
</if>
<if test='param.timeUnit = "1" '>
and date_format(usn.create_time, '%Y') = #{endTime}
</if>