# AdjTrxCodeConfigDTO.java

    package cloud.wconnect.frontoffice.pojo.dto.adjustment;

    import lombok.Data;
    import org.hibernate.validator.constraints.Range;

    import jakarta.validation.constraints.NotNull;
    import jakarta.validation.constraints.Null;

    /**
     * @author lichen
     * @description adjustment trxCode 配置DTO类
     * @date 2023/4/4 17:02
     */
    @Data
    public class AdjTrxCodeConfigDTO {

        /**
         * 主键
         */
        @Null(message = "id must be null")
        private Integer id;

        /**
         * 资产id
         */
        @Null(message = "propertyId must be null")
        private Integer propertyId;

        /**
         * 匹配方式 1:精确匹配 2: 范围匹配 3: 最左模糊匹配 4: 带前缀的范围匹配
         */
        @NotNull(message = "matchType must not be null")
        @Range(min = 1, max = 4, message = "matchType must between in [1:Exact match 2:Range match 3:Leftmost fuzzy match 4:Range match with prefix]")
        private Integer matchType;

        /**
         * 交易代码
         */
        private String trxCode;

        /**
         * 2:范围匹配 4:带前缀的范围匹配 DTO
         */
        private ScopeMatchDTO scopeMatch;

    }