|
|
@ -207,5 +207,23 @@ public class StaffLoginLogServiceImpl extends BaseServiceImpl<StaffLoginLogDao, |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
* 柱状图:下级组织账号登录次数汇总 |
|
|
|
* |
|
|
|
* @param orgId |
|
|
|
* @param level |
|
|
|
* @param startDate |
|
|
|
* @param endDate |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
public PageData<CommunityLoginResultDTO> querySubCount(String orgId, String level, Date startDate, Date endDate) { |
|
|
|
if (StringUtils.isBlank(orgId)) { |
|
|
|
CustomerStaffInfoCacheResult staffInfoCacheResult = CustomerStaffRedis.getStaffInfo(EpmetRequestHolder.getLoginUserCustomerId(), EpmetRequestHolder.getLoginUserId()); |
|
|
|
orgId = staffInfoCacheResult.getAgencyId(); |
|
|
|
} |
|
|
|
List<CommunityLoginResultDTO> list = baseDao.querySubCount(orgId, startDate, endDate); |
|
|
|
int total = CollectionUtils.isEmpty(list) ? NumConstant.ZERO : list.size(); |
|
|
|
return new PageData<CommunityLoginResultDTO>(list, total, total); |
|
|
|
} |
|
|
|
} |