| | |
| | | } else { |
| | | if (task.getPyScript().contains(Constant.profile_prefix)) { |
| | | execPyTask(task, secId); |
| | | break; |
| | | } |
| | | } |
| | | } |
| | |
| | | // 4.如果任务执行完成后待完善粉丝数量 > 0 需要重复执行完善脚本 |
| | | if (!CollectionUtil.isEmpty(demandUserProfile)) { |
| | | Set<Map.Entry<Long, String>> entrySet = demandUserProfile.entrySet(); |
| | | log.info("当前执行的需求数 {}",entrySet.size()); |
| | | for (Map.Entry<Long, String> obj : entrySet) { |
| | | Long demandId = obj.getKey(); |
| | | log.info("当前执行的需求 {}",demandId); |
| | | String script = obj.getValue(); |
| | | int count = baseMapper.countUpdateProfile(demandId); |
| | | String key = String.format(Constant.DEMAND_UPDATE_USER_PROFILE, demandId, script); |