bug
This commit is contained in:
@@ -185,11 +185,22 @@ public class PointController {
|
||||
Date parse = simpleDateFormat.parse(date);
|
||||
List<Map<String,Object>> flag = new ArrayList<>();
|
||||
for (int i=0;i<24;i+=2){
|
||||
Map<String,Object> ff = new HashMap<>();
|
||||
Calendar instance = Calendar.getInstance();
|
||||
instance.setTime(parse);
|
||||
int i1 = instance.get(Calendar.HOUR_OF_DAY);
|
||||
if(i1==23){
|
||||
instance.add(Calendar.DAY_OF_MONTH,1);
|
||||
}
|
||||
if(i1==23&&i==0){
|
||||
ff.put("now",true);
|
||||
} else if (i1<i+1&&i1>=i-1) {
|
||||
ff.put("now",true);
|
||||
}else {
|
||||
ff.put("now",false);
|
||||
}
|
||||
instance.set(Calendar.HOUR_OF_DAY,i);
|
||||
Date time = instance.getTime();
|
||||
Map<String,Object> ff = new HashMap<>();
|
||||
ff.put("zwlz",pointService.ZWLZ(time));
|
||||
ff.put("lgbf",pointService.LGBF(time));
|
||||
ff.put("ftbf",pointService.FTBF(time));
|
||||
|
||||
Reference in New Issue
Block a user