|
@@ -2,6 +2,7 @@ package com.sheep.gamegroup.model.entity;
|
|
|
|
|
|
|
|
import com.kfzs.duanduan.utils.NumberFormatUtils;
|
|
import com.kfzs.duanduan.utils.NumberFormatUtils;
|
|
|
|
|
|
|
|
|
|
+import java.util.Calendar;
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -12,10 +13,11 @@ import java.util.List;
|
|
|
public class PunchAndSign {
|
|
public class PunchAndSign {
|
|
|
// {"sign_up_count":3,"punch_count":1,total_award:1}
|
|
// {"sign_up_count":3,"punch_count":1,total_award:1}
|
|
|
private long countdown;
|
|
private long countdown;
|
|
|
|
|
+ private long dataTimes;
|
|
|
private String sign_up_count;
|
|
private String sign_up_count;
|
|
|
private String punch_count;
|
|
private String punch_count;
|
|
|
private String total_award;
|
|
private String total_award;
|
|
|
- private List<PunchUser> avatar ;
|
|
|
|
|
|
|
+ private List<PunchUser> avatar;
|
|
|
|
|
|
|
|
public String getSign_up_count() {
|
|
public String getSign_up_count() {
|
|
|
return sign_up_count;
|
|
return sign_up_count;
|
|
@@ -57,10 +59,25 @@ public class PunchAndSign {
|
|
|
this.countdown = countdown;
|
|
this.countdown = countdown;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ public long getDataTimes() {
|
|
|
|
|
+ return dataTimes;
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|
+ public void setDataTimes(long dataTimes) {
|
|
|
|
|
+ this.dataTimes = dataTimes;
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+ //获取未打卡次数
|
|
|
public String getNoPunch_count() {
|
|
public String getNoPunch_count() {
|
|
|
return Integer.toString(NumberFormatUtils.parseInteger(total_award) - NumberFormatUtils.parseInteger(punch_count));
|
|
return Integer.toString(NumberFormatUtils.parseInteger(total_award) - NumberFormatUtils.parseInteger(punch_count));
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ //获取今日或者昨日
|
|
|
|
|
+ public String getDayText() {
|
|
|
|
|
+ Calendar calendar = Calendar.getInstance();
|
|
|
|
|
+ calendar.setTimeInMillis(dataTimes * 1000);
|
|
|
|
|
+ int hour = calendar.get(Calendar.HOUR_OF_DAY);
|
|
|
|
|
+ return hour >= 0 && hour < 9 ? "昨日" : "今日";
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|