Esempio n. 1
0
 public Address add(Address address) {
   if (address.getAddress_id() == 0) {
     addressMapper.add(address);
   } else {
     addressMapper.addNoIncrement(address);
   }
   return addressMapper.get(address.getAddress_id());
 }
Esempio n. 2
0
 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);
 }
Esempio n. 3
0
 public List<Address> listAddress(long mid) {
   return addressMapper.list(mid);
 }
Esempio n. 4
0
 public Address update(Address address) {
   addressMapper.update(address);
   return addressMapper.get(address.getAddress_id());
 }
Esempio n. 5
0
 public void deleteAddress(long uid, long mid, int address_id) {
   addressMapper.delete(mid, address_id);
 }