Commit 4ed3599c by 阮思源

当没有特殊出版社时候填充缺省值

parent d214dc4c
...@@ -3069,7 +3069,12 @@ public class BookGroupBizImpl implements BookGroupBiz { ...@@ -3069,7 +3069,12 @@ public class BookGroupBizImpl implements BookGroupBiz {
&& ListUtils.isEmpty(selfBookGroupStParamDTO.getAgentIds())) { && ListUtils.isEmpty(selfBookGroupStParamDTO.getAgentIds())) {
//获取特殊出版社id集合 //获取特殊出版社id集合
List<Long> agentIds = wechatGroupConsr.getAllAgentId(); List<Long> agentIds = wechatGroupConsr.getAllAgentId();
map.put("agentIds", agentIds); if (ListUtils.isEmpty(agentIds)){
//填充缺省值
map.put("agentIds", Lists.newArrayList(-1L));
}else {
map.put("agentIds", agentIds);
}
} else { } else {
map.put("agentIds", selfBookGroupStParamDTO.getAgentIds()); map.put("agentIds", selfBookGroupStParamDTO.getAgentIds());
} }
...@@ -3097,7 +3102,12 @@ public class BookGroupBizImpl implements BookGroupBiz { ...@@ -3097,7 +3102,12 @@ public class BookGroupBizImpl implements BookGroupBiz {
&& ListUtils.isEmpty(selfBookGroupStParamDTO.getAgentIds())) { && ListUtils.isEmpty(selfBookGroupStParamDTO.getAgentIds())) {
//获取特殊出版社id集合 //获取特殊出版社id集合
List<Long> agentIds = wechatGroupConsr.getAllAgentId(); List<Long> agentIds = wechatGroupConsr.getAllAgentId();
map.put("agentIds", agentIds); if (ListUtils.isEmpty(agentIds)){
//填充缺省值
map.put("agentIds", Lists.newArrayList(-1L));
}else {
map.put("agentIds", agentIds);
}
} else { } else {
map.put("agentIds", selfBookGroupStParamDTO.getAgentIds()); map.put("agentIds", selfBookGroupStParamDTO.getAgentIds());
} }
......
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