Commit d8f84f70 by lihao

定制出版社空判断

parent a516a813
......@@ -2986,7 +2986,10 @@ public class BookGroupBizImpl implements BookGroupBiz {
paramMap.put("agentId", agentId);
if(isSpecial != null && isSpecial) {
List<Long> specialAgentIds = wechatGroupConsr.getAllAgentId();
paramMap.put("specialAgentIds", CollectionUtils.isEmpty(specialAgentIds) ? null :specialAgentIds);
if(CollectionUtils.isEmpty(specialAgentIds)) {
specialAgentIds.add(-1L);
}
paramMap.put("specialAgentIds", specialAgentIds);
}
PageBeanNew<AgentStatisticsInfoDTO> pageBeanNew = bookGroupDao.listPageNew(new PageParam(currentPage, numPerPage), paramMap, "getAgentStatisticsInfo");
if(!CollectionUtils.isEmpty(pageBeanNew.getRecordList())) {
......@@ -3003,7 +3006,10 @@ public class BookGroupBizImpl implements BookGroupBiz {
paramMap.put("agentId", agentId);
if(isSpecial != null && isSpecial) {
List<Long> specialAgentIds = wechatGroupConsr.getAllAgentId();
paramMap.put("specialAgentIds", CollectionUtils.isEmpty(specialAgentIds) ? null :specialAgentIds);
if(CollectionUtils.isEmpty(specialAgentIds)) {
specialAgentIds.add(-1L);
}
paramMap.put("specialAgentIds", specialAgentIds);
}
List<AgentStatisticsInfoDTO> agentStatisticsInfoDTOS = bookGroupDao.getAgentStatisticsInfo(paramMap);
if(CollectionUtils.isEmpty(agentStatisticsInfoDTOS)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment