/**
* 注解配置===开始
*/
@Select("select * from idcard where id = #{id}")
Idcard findIdcardByIdWithAnnotations(int id);// 根据编号查询用户信息
/**
* 注解配置===开始
*/
@Select("select * from person where id = #{id}")
@Results({@Result(
property ="idcard",
column ="cid",
one = @One(select ="com.springmvc.mapper.IdcardMapper.findIdcardByIdWithAnnotations"))})
Person findPersonByIdWithAnnotations(int id);// 根据编号查询用户信息/**
* 注解配置===结束
*/
/** * 注解配置===开始 */ @Select("select * from idcard where id = #{id}") Idcard findIdcardByIdWithAnnotations(int id); // 根据编号查询用户信息/** * 注解配置===开始 */ @Select("select * from person where id = #{id}")