sql语句的写法:
<select id = "XXX(方法名)" parameterType = "hashmap" resultMap = "BaseResultMap">
select count (*) from table(table写自己的表名称)
where 1 = 1
<if test="number != null and number !=' ' ">
and phone like concat ('%',#{number,jdbcType=VARCHAR})
</if>
表示查询手机号码后四位等于number的所有数据总数