package org.jeecg.modules.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Comparator;
import java.util.Date;

public class EffiRateComparator implements Comparator<Object> {


    @Override
    public int compare(Object o1, Object o2) {
        UserDto p1 = (UserDto) o1; // 强制转换
        UserDto p2 = (UserDto) o2;
        return (p2.getEffiRate()).compareTo(p1.getEffiRate());
    }
}
