package com.chushang.inspection.terminal.query;

import com.chushang.common.mybatis.annotation.Condition;
import com.chushang.common.mybatis.page.CommonParam;
import lombok.*;

import javax.validation.constraints.Size;
import java.util.List;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class FiveUnifiedStoreDetailsQuery extends CommonParam {

    /**
     * 一级分行id
     */
    @Condition(name = "first_level_branch")
    private Long firstLevelBranch;

    /**
     * 二级分行id
     */
    @Condition(name = "secondary_branches", type = Condition.ConditionType.in)
    private List<Long> secondaryBranches;

    /**
     * 商户编号
     */
    @Size(max = 64, message = "商户编号不能超过64个字符")
    private String no;

    /**
     * 终端编号
     */
    @Size(max = 30, message = "终端sn号不能超过30个字符")
    private String terminalNo;
}
