Commit 66e2b718 by 阮思源

Merge branch 'feat-1001923' into 'master'

定制出版社空判断

See merge request rays/pcloud-book!256
parents a516a813 d8f84f70
...@@ -2986,7 +2986,10 @@ public class BookGroupBizImpl implements BookGroupBiz { ...@@ -2986,7 +2986,10 @@ public class BookGroupBizImpl implements BookGroupBiz {
paramMap.put("agentId", agentId); paramMap.put("agentId", agentId);
if(isSpecial != null && isSpecial) { if(isSpecial != null && isSpecial) {
List<Long> specialAgentIds = wechatGroupConsr.getAllAgentId(); 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"); PageBeanNew<AgentStatisticsInfoDTO> pageBeanNew = bookGroupDao.listPageNew(new PageParam(currentPage, numPerPage), paramMap, "getAgentStatisticsInfo");
if(!CollectionUtils.isEmpty(pageBeanNew.getRecordList())) { if(!CollectionUtils.isEmpty(pageBeanNew.getRecordList())) {
...@@ -3003,7 +3006,10 @@ public class BookGroupBizImpl implements BookGroupBiz { ...@@ -3003,7 +3006,10 @@ public class BookGroupBizImpl implements BookGroupBiz {
paramMap.put("agentId", agentId); paramMap.put("agentId", agentId);
if(isSpecial != null && isSpecial) { if(isSpecial != null && isSpecial) {
List<Long> specialAgentIds = wechatGroupConsr.getAllAgentId(); 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); List<AgentStatisticsInfoDTO> agentStatisticsInfoDTOS = bookGroupDao.getAgentStatisticsInfo(paramMap);
if(CollectionUtils.isEmpty(agentStatisticsInfoDTOS)) { 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