|
@@ -9,6 +9,7 @@ import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.util.ObjectUtils;
|
|
|
+import org.springframework.util.StringUtils;
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
@@ -32,14 +33,11 @@ public class UserRegistrationidServiceImpl extends ServiceImpl<UserRegistrationi
|
|
|
lw.in(UserRegistrationid::getRegistrationId, userRegistrationid.getRegistrationId());
|
|
|
}
|
|
|
List<UserRegistrationid> userRegistrationids = userRegistrationidMapper.selectList(lw);
|
|
|
- log.info("userRegistrationids:--------" + userRegistrationids);
|
|
|
- int add = 0;
|
|
|
- if (userRegistrationids.size() > 0) {
|
|
|
- add = userRegistrationidMapper.updateRegistrationID(userRegistrationid);
|
|
|
- } else {
|
|
|
- add = userRegistrationidMapper.insert(userRegistrationid);
|
|
|
+ log.info("userRegistrationids:--------" + userRegistrationid);
|
|
|
+ if (!com.ozs.common.utils.StringUtils.isEmpty(userRegistrationids) && userRegistrationids.size() == 0) {
|
|
|
+ userRegistrationidMapper.insert(userRegistrationid);
|
|
|
}
|
|
|
- return add;
|
|
|
+ return 1;
|
|
|
}
|
|
|
|
|
|
@Override
|