update AddressMapper.java

This commit is contained in:
cxmshine 2020-01-09 23:45:10 +08:00
parent 1d0db565e0
commit 84c71c6399
1 changed files with 2 additions and 2 deletions

View File

@ -14,8 +14,8 @@ public interface AddressMapper {
@Results(value = { @Result(property = "addressId", column = "addressId"),
@Result(property = "streetAddress", column = "streetAddress"),
@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})")
Person getPerson(Integer personId);
Person getPerson(Integer addressId);
}