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