|
@@ -3,6 +3,7 @@ package cn.com.ctop.common.module.service.impl;
|
|
|
import cn.com.ctop.common.module.entity.UserAllocation;
|
|
|
import cn.com.ctop.common.module.mapper.UserAllocationMapper;
|
|
|
import cn.com.ctop.common.module.service.IUserAllocationService;
|
|
|
+import cn.com.ctop.common.module.utils.Check;
|
|
|
import cn.com.ctop.common.module.utils.CtopAdConstant;
|
|
|
import cn.com.ctop.common.module.utils.ResultMapUtils;
|
|
|
import cn.com.ctop.common.module.utils.StatusCode;
|
|
@@ -169,8 +170,10 @@ public class UserAllocationServiceImpl extends ServiceImpl<UserAllocationMapper,
|
|
|
List list = new ArrayList();
|
|
|
for (int i = 0; i < projectList.size(); i++) {
|
|
|
JSONObject jsonObject = projectList.get(i);
|
|
|
- list.add(jsonObject.getLong("projectId"));
|
|
|
- map.put(jsonObject.getLong("projectId"), new ArrayList<>());
|
|
|
+ if (!Check.isNull(jsonObject)) {
|
|
|
+ list.add(jsonObject.getLong("projectId"));
|
|
|
+ map.put(jsonObject.getLong("projectId"), new ArrayList<>());
|
|
|
+ }
|
|
|
}
|
|
|
List<JSONObject> jsonList = userAllocationMapper.getAccountListByProjectList(list);
|
|
|
for (int i = 0; i < jsonList.size(); i++) {
|
|
@@ -209,8 +212,8 @@ public class UserAllocationServiceImpl extends ServiceImpl<UserAllocationMapper,
|
|
|
|
|
|
@Override
|
|
|
public boolean updateProjectStrategyStatus(Long accountId, Integer projectStrategy) {
|
|
|
- int num = userAllocationMapper.updateProjectStrategyStatus(accountId, projectStrategy);
|
|
|
- return num>0;
|
|
|
+ int num = userAllocationMapper.updateProjectStrategyStatus(accountId, projectStrategy);
|
|
|
+ return num > 0;
|
|
|
}
|
|
|
|
|
|
@Override
|