Merge pull request #8501 from cxmshine/master
update AddressMapper.java
This commit is contained in:
commit
c3b4907a4c
|
@ -14,8 +14,8 @@ public interface AddressMapper {
|
||||||
@Results(value = { @Result(property = "addressId", column = "addressId"),
|
@Results(value = { @Result(property = "addressId", column = "addressId"),
|
||||||
@Result(property = "streetAddress", column = "streetAddress"),
|
@Result(property = "streetAddress", column = "streetAddress"),
|
||||||
@Result(property = "person", column = "personId", javaType = Person.class, one = @One(select = "getPerson")) })
|
@Result(property = "person", column = "personId", javaType = Person.class, one = @One(select = "getPerson")) })
|
||||||
Address getAddresses(Integer addressID);
|
Address getAddresses(Integer addressId);
|
||||||
|
|
||||||
@Select("SELECT personId FROM address WHERE addressId = #{addressId})")
|
@Select("SELECT personId FROM address WHERE addressId = #{addressId})")
|
||||||
Person getPerson(Integer personId);
|
Person getPerson(Integer addressId);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue