mybatis框架-用类映射返回结果
<select id="checkCardCode" parameterType="com.picc.hmims.memberManage.dto.MemberInfoBo" resultType="com.picc.hmims.memberManage.dto.MemberInfoBo"> select card_Code from t_member where card_code like #{cardCode}</select> 这种写法也是可以的,但是前提条件是 实体类属性和数据库中字段名称必须是一一对应,(注意:忽略大小写也是可以的)
相关推荐
xiuyangsong 2020-07-26
Dullonjiang 2020-07-19
Dullonjiang 2020-08-09
牧场SZShepherd 2020-07-20
xiuyangsong 2020-11-16
Nishinoshou 2020-11-09
jimgreatly 2020-09-01
dongxurr 2020-08-18
Dullonjiang 2020-08-15
Dullonjiang 2020-08-11
dongxurr 2020-08-08
yunzhonmghe 2020-08-07
jimgreatly 2020-08-03
Dullonjiang 2020-07-30
jimgreatly 2020-07-27
liqiancao 2020-07-26
dongxurr 2020-07-26