|
@ -1,10 +1,7 @@
|
|
|
package com.yihu.wlyy.web.doctor.sign;
|
|
|
|
|
|
import java.text.SimpleDateFormat;
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.Date;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
|
import java.util.*;
|
|
|
|
|
|
import com.yihu.wlyy.util.IdCardUtil;
|
|
|
import io.swagger.annotations.Api;
|
|
@ -223,7 +220,7 @@ public class DoctorSignController extends BaseController {
|
|
|
}
|
|
|
}
|
|
|
JSONObject data = new JSONObject();
|
|
|
JSONArray jsonArray = new JSONArray();
|
|
|
List<JSONObject> jsonArray = new ArrayList<>();
|
|
|
SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd");
|
|
|
if (listSub != null) {
|
|
|
for (Map<String, Object> temp : listSub) {
|
|
@ -273,9 +270,27 @@ public class DoctorSignController extends BaseController {
|
|
|
json.put("expensesRemindStatus", df.format(new Date()).equals(epTime) ? 1 : 0);
|
|
|
}
|
|
|
}
|
|
|
jsonArray.put(json);
|
|
|
jsonArray.add(json);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (status == 5) {
|
|
|
jsonArray.sort(new Comparator<JSONObject>() {
|
|
|
@Override
|
|
|
public int compare(JSONObject o1, JSONObject o2) {
|
|
|
if (o1.getInt("expensesRemindStatus") > o2.getInt("expensesRemindStatus")) {
|
|
|
return 1;
|
|
|
} else if (o1.getInt("expensesRemindStatus") < o2.getInt("expensesRemindStatus")) {
|
|
|
return -1;
|
|
|
} else if (o1.getInt("expensesRemindStatus") == o2.getInt("expensesRemindStatus")) {
|
|
|
return 0;
|
|
|
} else {
|
|
|
return 0;
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
|
|
|
data.put("list", jsonArray);
|
|
|
data.put("totalPage", totalPage);
|
|
|
data.put("page", page);
|