package com.storlead.framework.mybatis.query;

import com.baomidou.mybatisplus.annotation.TableField;
import com.storlead.framework.mybatis.page.Page;
import com.storlead.framework.mybatis.query.page.PageQuery;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.extern.log4j.Log4j2;

/**
 * @program: sp-sales-platform
 * @description:
 * @author: chenkq
 * @create: 2024-04-02 15:11
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
@Log4j2
public class QueryBaseEntity extends Page {

    @TableField(exist = false)
    @ApiModelProperty(value = "搜索参数")
    private String blurry;

    @TableField(exist = false)
    @ApiModelProperty(value = "菜单Id")
    private Long scopeMenuId;

    @TableField(exist = false)
    @ApiModelProperty(value = "是否需要走权限：默认需要：1: 不需要，默认: 0 ,需要: 0")
    private Integer reviewTag = 0;

    @TableField(exist = false)
    @ApiModelProperty(value = "数据权限范围sql")
    private String dataScopeSql;

    @TableField(exist = false)
    @ApiModelProperty(value = "通用查询条件")
    private String commonQueryCondition;

    @TableField(exist = false)
    @ApiModelProperty(value = "通用排序")
    private String commonQueryOrderBy;

    @TableField(exist = false)
    @ApiModelProperty(value = "排序方式")
    private String sortMethod;

    @TableField(exist = false)
    @ApiModelProperty(value = "销售：归属分类(QueryRangeTypeEnum)（0全部客户、10：我的客户、20:我发起的、30：下属客户、40我协作的、50：下属协作的，70：重点）" +
            "工资：" +
            "目标")
    private Integer queryRangeType;

}
