package com.jwipc.shopping.model.query;

import com.baomidou.mybatisplus.core.toolkit.StringPool;
import com.jwipc.query.BasePageQuery;
import lombok.Data;
import org.apache.commons.lang3.StringUtils;

/**
 * <p>
 *     商城收货地址维护查询实体类
 * </p>
 *
 * @author qmx
 * @version 1.0
 * @since 2021/8/4
 */
@Data
public class ReceivingAddressQuery extends BasePageQuery {

    /**
     * 收货人
     */
    private String receivingUser;
    /**
     * 当前登录人ID 数据权限
     */
    private Long userId;


    public String getReceivingUserLike(){
        return StringUtils.isEmpty(this.receivingUser) ? null : StringPool.PERCENT + this.receivingUser + StringPool.PERCENT;
    }

}
