package cn.superdesk.uniorder.dto.param.system;

import cn.superdesk.uniorder.common.pagination.AnBaseQueryCriteria;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.SuperBuilder;
import lombok.extern.slf4j.Slf4j;

import java.io.Serializable;
import java.util.List;

/**
 * @Description: Java类作用描述
 * @Author: linjinyu
 * @CreateDate: 2022/5/16 12:21 下午
 * @UpdateUser: linjinyu
 * @UpdateDate: 2022/5/16 12:21 下午
 * @UpdateRemark: 修改内容
 * @Version: 1.0
 */
@NoArgsConstructor
@AllArgsConstructor
@SuperBuilder(toBuilder = true)
@Data
@Slf4j
@ToString
public class SysUserQueryCriteria extends AnBaseQueryCriteria implements Serializable {

    //  Map<String, Object> params = new HashMap<>();
    //	params.put("searchParam", getString("searchParam"));
    //	and (su.user_name like CONCAT('%',#{searchParam,jdbcType=VARCHAR},'%')
    //	or su.fullname like CONCAT('%',#{searchParam,jdbcType=VARCHAR},'%')
    //	or su.phone like CONCAT('%',#{searchParam,jdbcType=VARCHAR},'%')
    //	)
    //	params.put("roleId", getLong("roleId"));

    @ApiModelProperty("su.user_name,su.fullname,su.phone like %XXXXX%")
    private String searchParam;
    @ApiModelProperty("角色Id")
    private Long   roleId;

    @ApiModelProperty("引用Enum CommonSourceFromEnum-支持多选")
    private List<String> sourceFromsSelected;
    @ApiModelProperty("是否启用:0-禁用;1-启用;默认为1-启用")
    private Integer      enabled;
    @ApiModelProperty("软删除:0-未删除;1-已删除;默认为0-未删除")
    private Integer      deleted;
}
