|
@@ -5,6 +5,7 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
import com.ozs.service.entity.UserRegistrationid;
|
|
import com.ozs.service.entity.UserRegistrationid;
|
|
import com.ozs.service.mapper.UserRegistrationidMapper;
|
|
import com.ozs.service.mapper.UserRegistrationidMapper;
|
|
import com.ozs.service.service.UserRegistrationidService;
|
|
import com.ozs.service.service.UserRegistrationidService;
|
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.util.ObjectUtils;
|
|
import org.springframework.util.ObjectUtils;
|
|
@@ -15,6 +16,7 @@ import java.util.List;
|
|
* @Author : sunhh
|
|
* @Author : sunhh
|
|
* @create 2023/3/14 17:08
|
|
* @create 2023/3/14 17:08
|
|
*/
|
|
*/
|
|
|
|
+@Slf4j
|
|
@Service
|
|
@Service
|
|
public class UserRegistrationidServiceImpl extends ServiceImpl<UserRegistrationidMapper, UserRegistrationid> implements UserRegistrationidService {
|
|
public class UserRegistrationidServiceImpl extends ServiceImpl<UserRegistrationidMapper, UserRegistrationid> implements UserRegistrationidService {
|
|
@Autowired
|
|
@Autowired
|
|
@@ -23,13 +25,14 @@ public class UserRegistrationidServiceImpl extends ServiceImpl<UserRegistrationi
|
|
@Override
|
|
@Override
|
|
public Integer addRegistrationID(UserRegistrationid userRegistrationid) {
|
|
public Integer addRegistrationID(UserRegistrationid userRegistrationid) {
|
|
LambdaQueryWrapper<UserRegistrationid> lw = new LambdaQueryWrapper<UserRegistrationid>();
|
|
LambdaQueryWrapper<UserRegistrationid> lw = new LambdaQueryWrapper<UserRegistrationid>();
|
|
-// if (!ObjectUtils.isEmpty(userRegistrationid.getUserId())) {
|
|
|
|
-// lw.in(UserRegistrationid::getUserId, userRegistrationid.getUserId());
|
|
|
|
-// }
|
|
|
|
|
|
+ if (!ObjectUtils.isEmpty(userRegistrationid.getUserId())) {
|
|
|
|
+ lw.in(UserRegistrationid::getUserId, userRegistrationid.getUserId());
|
|
|
|
+ }
|
|
if (!ObjectUtils.isEmpty(userRegistrationid.getRegistrationId())) {
|
|
if (!ObjectUtils.isEmpty(userRegistrationid.getRegistrationId())) {
|
|
lw.in(UserRegistrationid::getRegistrationId, userRegistrationid.getRegistrationId());
|
|
lw.in(UserRegistrationid::getRegistrationId, userRegistrationid.getRegistrationId());
|
|
}
|
|
}
|
|
List<UserRegistrationid> userRegistrationids = userRegistrationidMapper.selectList(lw);
|
|
List<UserRegistrationid> userRegistrationids = userRegistrationidMapper.selectList(lw);
|
|
|
|
+ log.info("userRegistrationids:--------" + userRegistrationids);
|
|
int add = 0;
|
|
int add = 0;
|
|
if (userRegistrationids.size() > 0) {
|
|
if (userRegistrationids.size() > 0) {
|
|
add = userRegistrationidMapper.updateRegistrationID(userRegistrationid);
|
|
add = userRegistrationidMapper.updateRegistrationID(userRegistrationid);
|