All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.zys.mybatis.dto.UpdateDto Maven / Gradle / Ivy

package com.zys.mybatis.dto;

import java.util.Objects;

/**
 * @author zys
 * @version 1.0
 * @date 2021/3/24 10:18
 */
public class UpdateDto {

    public UpdateDto(String fieldName){
        this.fieldName = fieldName;
        this.isPoundSign = true;
    }
    public UpdateDto(String fieldName,Boolean isPoundSign){
        this.fieldName = fieldName;
        this.isPoundSign = isPoundSign;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        UpdateDto updateDto = (UpdateDto) o;
        return fieldName.equals(updateDto.fieldName) &&
                isPoundSign.equals(updateDto.isPoundSign);
    }

    @Override
    public int hashCode() {
        return Objects.hash(fieldName, isPoundSign);
    }

    /**
     * 字段名称
     */
    private String fieldName;

    /**
     * 是否是井号
     */
    private Boolean isPoundSign;


    public String getFieldName(){
        return fieldName;
    }

    public Boolean getIsPoundSign(){
        return isPoundSign;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy