<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 调用存储示例
最新推荐文章于 2023-02-14 12:36:14 发布