Commit ac345f2e by jinxin

转移errorCode添加

parent 6633d1aa
...@@ -72,7 +72,7 @@ public class TransferActiveCodeDTO implements Serializable { ...@@ -72,7 +72,7 @@ public class TransferActiveCodeDTO implements Serializable {
log.append("失败明细:"); log.append("失败明细:");
for (int i=1;i<=this.failedList.size();i++){ for (int i=1;i<=this.failedList.size();i++){
Map<String, String> stringMap = this.failedList.get(i - 1); Map<String, String> stringMap = this.failedList.get(i - 1);
log.append(i+".(转移成员:"+stringMap.get("handoverStaffName")+",接收成员:"+stringMap.get("takeoverStaffName")+");"); log.append(i+".(转移成员:"+stringMap.get("handoverStaffName")+",接收成员:"+stringMap.get("takeoverStaffName")+",errorCode:"+stringMap.get("errorCode")+");");
} }
//去掉末尾的分号 //去掉末尾的分号
String substring = log.substring(0, log.toString().length() - 1); String substring = log.substring(0, log.toString().length() - 1);
......
...@@ -994,6 +994,7 @@ public class StaffApiServiceImpl implements StaffApiService { ...@@ -994,6 +994,7 @@ public class StaffApiServiceImpl implements StaffApiService {
Map<String,String> stringMap = new HashMap<>(8); Map<String,String> stringMap = new HashMap<>(8);
stringMap.put("handoverStaffName",handoverStaff.getStaffName()); stringMap.put("handoverStaffName",handoverStaff.getStaffName());
stringMap.put("takeoverStaffName",takeOverStaff.getStaffName()); stringMap.put("takeoverStaffName",takeOverStaff.getStaffName());
stringMap.put("errorCode",String.valueOf(dto.getErrcode()));
failedList.add(stringMap); failedList.add(stringMap);
} }
} }
...@@ -1012,6 +1013,7 @@ public class StaffApiServiceImpl implements StaffApiService { ...@@ -1012,6 +1013,7 @@ public class StaffApiServiceImpl implements StaffApiService {
Map<String,String> stringMap = new HashMap<>(8); Map<String,String> stringMap = new HashMap<>(8);
stringMap.put("handoverStaffName",handoverStaff.getStaffName()); stringMap.put("handoverStaffName",handoverStaff.getStaffName());
stringMap.put("takeoverStaffName",takeOverStaff.getStaffName()); stringMap.put("takeoverStaffName",takeOverStaff.getStaffName());
stringMap.put("errorCode",listServiceResponse.getCode());
failedList.add(stringMap); failedList.add(stringMap);
}); });
result.setFailedList(failedList); result.setFailedList(failedList);
......
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