Mybatis的resultMap返回map

时间:2022-06-01 14:08:08
<resultMap type="Map" id="bankMaintainMap">
<result column="bank_name" property="bankName"/>
<result column="maintain_time_interval" property="maintainTimeInterval"/>
</resultMap>
<select id="getMaintainNotice" parameterType="Map" resultMap="bankMaintainMap">
select
bank_name,
maintain_time_interval
from
fp_channel_prd_bank
where
channel_prd_id=7
and
maintain_time_interval
</select>