|
@@ -12,6 +12,7 @@ import com.zanxiang.game.data.serve.pojo.vo.*;
|
|
|
import com.zanxiang.game.data.serve.service.IAdsPromotionDayService;
|
|
|
import com.zanxiang.game.data.serve.utils.Page;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
+import org.apache.commons.collections4.CollectionUtils;
|
|
|
import org.apache.commons.lang3.ArrayUtils;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.nutz.dao.Cnd;
|
|
@@ -787,8 +788,8 @@ public class PromotionDayServiceImpl implements IAdsPromotionDayService {
|
|
|
if (userIds != null) {
|
|
|
cri.where().andInList("pitcher_id", userIds);
|
|
|
}
|
|
|
- if (ArrayUtils.isNotEmpty(dto.getAgentId())) {
|
|
|
- cri.where().andInList("agent_id", Arrays.asList(dto.getAgentId()));
|
|
|
+ if (CollectionUtils.isNotEmpty(dto.getAgentId())) {
|
|
|
+ cri.where().andInList("agent_id", dto.getAgentId());
|
|
|
}
|
|
|
if (StringUtils.isNotBlank(dto.getCpName())) {
|
|
|
cri.where().andEquals("cp_name", dto.getCpName());
|
|
@@ -860,8 +861,8 @@ public class PromotionDayServiceImpl implements IAdsPromotionDayService {
|
|
|
if (userIds != null) {
|
|
|
cri.where().andInList("pitcher_id", userIds);
|
|
|
}
|
|
|
- if (ArrayUtils.isNotEmpty(dto.getAgentId())) {
|
|
|
- cri.where().andInList("agent_id", Arrays.asList(dto.getAgentId()));
|
|
|
+ if (CollectionUtils.isNotEmpty(dto.getAgentId())) {
|
|
|
+ cri.where().andInList("agent_id", dto.getAgentId());
|
|
|
}
|
|
|
if (StringUtils.isNotBlank(dto.getCpName())) {
|
|
|
cri.where().andEquals("cp_name", dto.getCpName());
|