|
@@ -99,8 +99,11 @@ public class AgentNewLogServiceImpl extends ServiceImpl<IAgentNewLogMapper, Agen
|
|
|
}
|
|
|
|
|
|
private LogDataVo getLogDataVo(List<Integer> agentIds){
|
|
|
- List<AgentNewLog> logDataM = this.getBaseMapper().getLogDataM(agentIds);
|
|
|
LogDataVo logDataVo = new LogDataVo();
|
|
|
+ if(agentIds.isEmpty()){
|
|
|
+ return logDataVo;
|
|
|
+ }
|
|
|
+ List<AgentNewLog> logDataM = this.getBaseMapper().getLogDataM(agentIds);
|
|
|
for (AgentNewLog log : logDataM) {
|
|
|
switch (log.getType()){
|
|
|
case 0 : logDataVo.setLastMajorNum(log.getCount() * log.getTotalTime() + logDataVo.getLastMajorNum()); break;
|