mybatis多参数传递

xiaoxiao2025-03-05  15

在实际项目中我们需要hibernate转成mybatis,为了减少影响范围,dao接口层不变,我们只改dao实现层。在整改中,遇到了这样的接口:

public Object getObject(Class clazz, Serializable id)

 

mapper文件中如下实现:

<select id="getObject" resultMap="BaseResultMap"> 

        select

        <include refid="Base_Column_List"></include>

         from t_test_card where AGREE_NO = #{param2.agreeNo} and CREDIT_ACNT_NO = #{param2.creditAcntNo} with ur

</select>

转载请注明原文地址: https://www.6miu.com/read-5025627.html

最新回复(0)