Ejemplo n.º 1
0
 public Member addOrUpdate(Member member) {
   checkMid(member.getUid(), member.getMid());
   checkMemberLevelId(member.getUid(), member.getMember_level_id());
   Member finded = memberMapper.get(member.getUid(), member.getMid());
   if (finded == null) {
     member.defaultValue();
     memberMapper.add(member);
     userMapper.joinMember(member.getUid(), member.getMid());
   } else {
     memberMapper.update(member);
   }
   return memberMapper.get(member.getUid(), member.getMid());
 }
Ejemplo n.º 2
0
 public Member update(Member member) {
   checkMemberLevelId(member.getUid(), member.getMember_level_id());
   memberMapper.update(member);
   return memberMapper.get(member.getUid(), member.getMid());
 }