用户信息空串不保存
This commit is contained in:
@@ -23,6 +23,7 @@ import com.github.pagehelper.PageHelper;
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import com.mybatisflex.core.paginate.Page;
|
||||
import com.mybatisflex.core.query.QueryWrapper;
|
||||
import com.mybatisflex.processor.util.StrUtil;
|
||||
import com.mybatisflex.spring.service.impl.ServiceImpl;
|
||||
import jakarta.annotation.Resource;
|
||||
import org.apache.dubbo.config.annotation.DubboReference;
|
||||
@@ -84,6 +85,9 @@ public class ShopUserServiceImpl extends ServiceImpl<ShopUserMapper, ShopUser> i
|
||||
shopUser.setSourceShopId(shopId);
|
||||
shopUser.setUserId(userId);
|
||||
shopUser.setId(null);
|
||||
if (StrUtil.isBlank(shopUser.getBirthDay())) {
|
||||
shopUser.setBirthDay(null);
|
||||
}
|
||||
save(shopUser);
|
||||
}
|
||||
if (shopUser.getMemberLevelId() != null) {
|
||||
|
||||
Reference in New Issue
Block a user