private void updateLastLoginTime(long uid, RunType runType) { Date cDate = new Date(); Passport updatePassport = new Passport(); updatePassport.setId(uid); updatePassport.setLastLoginTime(cDate); passportMapper.updateByPrimaryKeySelective(updatePassport); Profile updateProfile = new Profile(); updateProfile.setUid(uid); if (RunType.CONNET == runType || RunType.WEB == runType) { updateProfile.setLastWebLoginTime(cDate); profileMapper.updateByPrimaryKeySelective(updateProfile); } }