public Address add(Address address) { if (address.getAddress_id() == 0) { addressMapper.add(address); } else { addressMapper.addNoIncrement(address); } return addressMapper.get(address.getAddress_id()); }
public void deleteAllByUidAndMid(long uid, long mid) { userContactMapper.delete(uid, mid); userExtMapper.delete(uid, mid); userLastActiveMappper.delete(uid, mid); userTagMapper.deleteUserTag(uid, mid); platformMapper.delete(uid, mid); userMapper.delete(uid, mid); memberExpRecordMapper.delete(uid, mid); memberPointRecordMapper.delete(uid, mid); addressMapper.deleteAll(mid); memberMapper.deleteMember(uid, mid); }
public List<Address> listAddress(long mid) { return addressMapper.list(mid); }
public Address update(Address address) { addressMapper.update(address); return addressMapper.get(address.getAddress_id()); }
public void deleteAddress(long uid, long mid, int address_id) { addressMapper.delete(mid, address_id); }