package com.shkj.wms.bo;

import com.shkj.common.core.domain.BaseEntity;
import com.shkj.common.core.validate.AddGroup;
import com.shkj.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;


/**
 * 规则详情业务对象 bas_rule_detail
 *
 * @author j.liang
 * @date 2022-12-08
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class BasRuleDetailBo extends BaseEntity {

    /**
     * 规则详情id
     */
    @NotNull(message = "规则详情id不能为空", groups = { EditGroup.class })
    private Long ruledetailId;

    /**
     * 规则项
     */
    @NotBlank(message = "规则项不能为空", groups = { AddGroup.class, EditGroup.class })
    private String ruleItem;

    /**
     * 规则值
     */
    @NotBlank(message = "规则值不能为空", groups = { AddGroup.class, EditGroup.class })
    private String ruleValue;

    /**
     * 规则长度
     */
    private Long ruleLength;

    /**
     * 归零规则（0每天 1每周 2每月 3每年 4从不）
     */
    private String ruleZero;

    /**
     * 补零规则（0前置补零 1不补零）
     */
    private String ruleZeroize;

    /**
     * 按变量归零（0是 1否）
     */
    private String ruleVariable;

    private Long ruleId;


}
