Commit afdf144b authored by hongguangwu's avatar hongguangwu

MVP1.7.7-friend-改为批量

parent c160d32c
......@@ -104,7 +104,7 @@ public class TSocialFriendServiceImpl extends ServiceImpl<TSocialFriendMapper, T
// 获取所有需要反馈的任务id
List<TSocialInfo> socialList = tSocialInfoService.getSocialFriendYgsAll();
List<TSocialFriendBackLog> logList;
TSocialFriendBackLog backLog;
TSocialFriendBackLog backLog = new TSocialFriendBackLog();
FriendResult info;
List<FriendResult> resultList;
Map<String, FriendResult> resultMap;
......@@ -115,7 +115,7 @@ public class TSocialFriendServiceImpl extends ServiceImpl<TSocialFriendMapper, T
info = resultMap.get(socialInfo.getEmpIdcard());
if (info == null) {
backLog = new TSocialFriendBackLog();
backLog.setSocialId(socialInfo.getId());
backLog.setSocialId(socialInfo.getEmpIdcard());
backLog.setRequestId(socialInfo.getYgsRequestId());
backLog.setType(11);
if (Common.isNotNull(socialInfo.getDispatchType()) && CommonConstants.ONE_STRING.equals(socialInfo.getDispatchType())) {
......@@ -130,6 +130,8 @@ public class TSocialFriendServiceImpl extends ServiceImpl<TSocialFriendMapper, T
}
info = resultMap.get(socialInfo.getEmpIdcard());
}
} else {
backLog.setSocialId(backLog.getSocialId() + "," +socialInfo.getEmpIdcard());
}
if (info != null && Common.isNotNull(info.getZt())) {
doCore(info, socialInfo, typeFlag, user, errorMap);
......@@ -145,11 +147,12 @@ public class TSocialFriendServiceImpl extends ServiceImpl<TSocialFriendMapper, T
if (socialYsdList != null && !socialYsdList.isEmpty()) {
logList = new ArrayList<>();
resultMap = new HashMap<>();
backLog = new TSocialFriendBackLog();
for (TSocialInfo socialInfo : socialYsdList) {
info = resultMap.get(socialInfo.getEmpIdcard());
if (info == null) {
backLog = new TSocialFriendBackLog();
backLog.setSocialId(socialInfo.getId());
backLog.setSocialId(socialInfo.getEmpIdcard());
backLog.setRequestId(socialInfo.getYsdRequestId());
backLog.setType(13);
if (Common.isNotNull(socialInfo.getDispatchType()) && CommonConstants.ONE_STRING.equals(socialInfo.getDispatchType())) {
......@@ -164,6 +167,8 @@ public class TSocialFriendServiceImpl extends ServiceImpl<TSocialFriendMapper, T
info = resultMap.get(socialInfo.getEmpIdcard());
}
logList.add(backLog);
} else {
backLog.setSocialId(backLog.getSocialId() + "," +socialInfo.getEmpIdcard());
}
if (info != null && Common.isNotNull(info.getZt())) {
doCore(info, socialInfo, typeFlag, user, errorMap);
......
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