package safeluck.drive.evaluation.bean;
|
|
import com.anyun.basecommonlib.MyLog;
|
|
import safeluck.drive.evaluation.util.Utils;
|
|
/**
|
* MyApplication2
|
* Created by lzw on 2019/3/19. 14:17:11
|
* 邮箱:632393724@qq.com
|
* All Rights Saved! Chongqing AnYun Tech co. LTD
|
*/
|
public class ScoreBean implements Comparable<ScoreBean>{
|
/**扣分分数*/
|
private float mScore;
|
/**扣分项目*/
|
private String mItem;
|
/**扣分原因*/
|
private String reason;
|
|
|
private int item_code;
|
|
private long mUtc;
|
|
private String utcStr;
|
|
public int getItem_code() {
|
return item_code;
|
}
|
|
public void setItem_code(int item_code) {
|
this.item_code = item_code;
|
}
|
|
|
|
public ScoreBean(float mScore, String mItem, String reason) {
|
this.mScore = mScore;
|
this.mItem = mItem;
|
this.reason = reason;
|
}
|
public ScoreBean(float mScore, String mItem, String reason,String utc,int item_code) {
|
this.mScore = mScore;
|
this.mItem = mItem;
|
this.reason = reason;
|
if (Utils.isDigital(utc)){
|
|
mUtc = Utils.dateToLongSec(utc);
|
this.utcStr = utc;
|
|
}else{
|
MyLog.i("utc时间不是纯数字"+utc);
|
mUtc = System.currentTimeMillis();
|
this.utcStr="20210222142545";
|
|
}
|
this.item_code= item_code;
|
}
|
|
public long getUtc() {
|
return mUtc;
|
}
|
|
public String getUtcStr(){
|
return utcStr;
|
}
|
|
|
|
public float getScore() {
|
return mScore;
|
}
|
|
public void setScore(float mScore) {
|
this.mScore = mScore;
|
}
|
|
public String getItem() {
|
return mItem;
|
}
|
|
public void setItem(String mItem) {
|
this.mItem = mItem;
|
}
|
|
public String getReason() {
|
return reason;
|
}
|
|
public void setReason(String reason) {
|
this.reason = reason;
|
}
|
|
|
@Override
|
public int compareTo(ScoreBean o) {
|
if (this.mUtc>o.getUtc()){
|
return -1;
|
}else if (this.mUtc==o.getUtc()){
|
return 0;
|
}else{
|
return 1;
|
}
|
}
|
}
|