| | |
| | | throw new UserCustomSettingsException(1, "传递参数不正确");
|
| | | }
|
| | |
|
| | | |
| | | UserSettingTypeEnum mineTypeNum = null;
|
| | | if (type.equals(UserSettingTypeEnum.cancelNotice.name())) {
|
| | | mineTypeNum = UserSettingTypeEnum.cancelNotice;
|
| | |
| | | } else {
|
| | | throw new UserCustomSettingsException(1, "参数类型不匹配");
|
| | | }
|
| | | |
| | |
|
| | | UserCustomSettings settings = userCustomSettingsMapper.getSettingsByUidAndType(uid, type);
|
| | | if (settings != null) {
|
| | |
| | | return userCustomSettingsMapper.getSettingsByUidAndType(uid, type);
|
| | | }
|
| | |
|
| | | |
| | | @Override
|
| | | public UserSettingsVO getMySettings(Long uid) throws UserCustomSettingsException{
|
| | |
|
| | |
| | | return userSettingsVO;
|
| | | }
|
| | |
|
| | | |
| | | @Override
|
| | | public List<Long> getCancelNoticeUsers(){
|
| | | return userCustomSettingsMapper.getUserID(UserSettingTypeEnum.cancelNotice.name());
|
| | | }
|
| | | |
| | |
|
| | | @Override
|
| | | public boolean validateCancelNoticeByUid(Long uid){
|
| | |
| | |
|
| | | return ispush;
|
| | | }
|
| | |
|
| | | @Override
|
| | | public List<UserCustomSettings> listByUidListAndTypeAndState(List<Long> uidList, String type, Integer state) {
|
| | | return userCustomSettingsMapper.listByUidListAndTypeAndState(uidList, type, state);
|
| | | }
|
| | | }
|