package cn.ysk.cashier.dto.shop;

import lombok.Data;
import cn.ysk.cashier.annotation.Query;

/**
 * @author ww
 * @date 2024-05-21
 **/
@Data
public class TbShopStorageGoodQueryCriteria {

    /**
     * 模糊
     */
    @Query(type = Query.Type.INNER_LIKE)
    private String name;

    /**
     * 精确
     */
    @Query
    private Integer shopId;

    @Query
    private Integer isDel = 0;


    private Integer page = 0;
    private Integer size = 10;

    public void setShopId(Integer shopId) {
        if (shopId != null && shopId != 1) {
            this.shopId = shopId;
        }
    }
}