<resultMap type="cn.cashbang.core.modules.risk.entity.RelationShip" id="relations">
<result column="source" property="source" jdbcType="VARCHAR" javaType="String"/>
<result column="target" property="target" jdbcType="VARCHAR" javaType="String"/>
<result column="value" property="value" jdbcType="VARCHAR" javaType="String"/>
</resultMap>
<resultMap type="cn.cashbang.core.modules.risk.entity.RelationDate" id="mobiles">
<result column="name" property="name" jdbcType="VARCHAR" javaType="String"/>
<result column="category" property="category" jdbcType="INTEGER" javaType="Integer"/>
<result column="symbolSize" property="symbolSize" jdbcType="INTEGER" javaType="Integer"/>
<result column="label" property="label" jdbcType="INTEGER" javaType="Integer"/>
<result column="value" property="value" jdbcType="INTEGER" javaType="Integer"/>
</resultMap>
<resultMap type="cn.cashbang.core.modules.risk.entity.RelationDate" id="customer">
<result column="name" property="name" jdbcType="VARCHAR" javaType="String"/>
<result column="category" property="category" jdbcType="INTEGER" javaType="Integer"/>
<result column="symbolSize" property="symbolSize" jdbcType="INTEGER" javaType="Integer"/>
<result column="label" property="label" jdbcType="INTEGER" javaType="Integer"/>
<result column="value" property="value" jdbcType="INTEGER" javaType="Integer"/>
</resultMap>
<select id="getRelationMap" resultMap="customer,mobiles,relations" statementType="CALLABLE">
<![CDATA[{ call p_relationship(
#{mobile, mode=IN, jdbcType=VARCHAR}
)} ]]>
</select>
mybatis 调用存储示例
最新推荐文章于 2026-02-13 10:56:23 发布
本文详细解析了MyBatis中resultMap元素的使用方法,包括如何映射复杂对象、处理不同类型字段转换以及多表查询结果映射。通过具体实例,帮助读者掌握resultMap在实际项目中的应用技巧。

1067

被折叠的 条评论
为什么被折叠?



