问题:<select id="" resultMap="resultMapPlate" parameterType="java.lang.String">
<if test="com != null">
and com = #{com,jdbcType=VARCHAR}
</if>
and open='chat'
</select>
解决:将<if test="com != null"> 换为<if test="_parameter != null">