|
@@ -34,7 +34,9 @@ public class MobileServiceImpl implements IMobileService {
|
|
@Override
|
|
@Override
|
|
public RespWrapper<Map<String, Object>> findUserSiteEleTotal(EleTotalQueryHelp help, UserCoreCache userCache) {
|
|
public RespWrapper<Map<String, Object>> findUserSiteEleTotal(EleTotalQueryHelp help, UserCoreCache userCache) {
|
|
Map<String,Object> condition = new HashMap<>(8);
|
|
Map<String,Object> condition = new HashMap<>(8);
|
|
- if (!ProjectConstant.ADMIN.equals(userCache.getLoginName())) {
|
|
|
|
|
|
+ if(help.getSiteId() != null){
|
|
|
|
+ condition.put("siteIds", Arrays.asList(help.getSiteId()));
|
|
|
|
+ }else if (!ProjectConstant.ADMIN.equals(userCache.getLoginName())) {
|
|
condition.put("siteIds", userCache.getSiteData());
|
|
condition.put("siteIds", userCache.getSiteData());
|
|
}
|
|
}
|
|
if(help.getStartTime() != null && help.getEndTime() != null){
|
|
if(help.getStartTime() != null && help.getEndTime() != null){
|