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