src/main/resources/mapper/ProvinceMapper.xml
@@ -5,7 +5,7 @@ <id column="province_code" property="provinceCode" jdbcType="INTEGER" /> <result column="province_name" property="provinceName" jdbcType="VARCHAR" /> </resultMap> <select id="getProvinceByProvinceCode" resultType="com.moral.entity.Province"> <select id="getProvinceByProvinceCode" resultType="com.moral.entity.Province" resultMap="BaseResultMap"> select * from province where province_code=#{provinceCode} </select> </mapper>