parent
4d60ca38aa
commit
bc8cb2a220
|
@ -280,8 +280,9 @@ public class AppInfoApiController {
|
|||
}
|
||||
|
||||
AppUserScopeEntity scope = appUserScopeService.getById(user.getCurrentScopeId());
|
||||
params.put("tenantId",user.getTenantId());
|
||||
|
||||
TenCellEntity cellEntity = tenCellService.getById(scope.getCellId());
|
||||
if(cellEntity!=null){
|
||||
params.put("tenantId",cellEntity.getTenantId());
|
||||
int during = Integer.parseInt((String)params.get("during"));
|
||||
String recordTimeStart = null;
|
||||
String recordTimeEnd = null;
|
||||
|
@ -291,7 +292,7 @@ public class AppInfoApiController {
|
|||
}else if(during == 1){ //本周
|
||||
recordTimeStart = MyDateUtils.getCurrentWeekStartTime();
|
||||
recordTimeEnd = MyDateUtils.getCurrentWeekEndTime();
|
||||
}else if(during == 1){ //本月
|
||||
}else if(during == 2){ //本月
|
||||
recordTimeStart = MyDateUtils.getCurrentMonthStartTime();
|
||||
recordTimeEnd = MyDateUtils.getCurrentMonthEndTime();
|
||||
}
|
||||
|
@ -315,6 +316,8 @@ public class AppInfoApiController {
|
|||
PageUtils page = tenRecordService.queryPageRoomRecord(params);
|
||||
return R.ok().put("data", page);
|
||||
}
|
||||
}
|
||||
|
||||
return R.ok().put("data",new PageUtils(new ArrayList<>(),0,0,0));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue