mybatis注解sql

義往昔 2月前 ⋅ 78 阅读
@Select("SELECT * FROM users WHERE id = #{id}")
    @Results({
        @Result(property="userSex",  column="user_sex",javaType=UserSexEnum.class),
        @Result(property="nickName",column="nick_name")
    })
    UserEntitygetOne(Longid);
 
 


全部评论: 0

    我有话说: