|
|
@@ -390,21 +390,43 @@ public class LedgerCombinedImportServiceImpl implements ILedgerCombinedImportSer
|
|
390
|
390
|
/** 5. 投诉情况 → ledger_complaint
|
|
391
|
391
|
* R2: 时间(0) 航班号(1) 旅客姓名(2) 班组(3) 责任人(4)
|
|
392
|
392
|
* 投诉情况(5) 旅客诉求(6) 类别(7) 渠道来源(8) 是否有责(9)
|
|
393
|
|
- * 处理进度(10)
|
|
|
393
|
+ * 处理进度(10) 责任队长(11) 队室内勤(12)
|
|
394
|
394
|
*/
|
|
395
|
395
|
private int doComplaint(Sheet sheet, String batchNo, String username) {
|
|
396
|
396
|
List<LedgerComplaint> list = new ArrayList<>();
|
|
397
|
397
|
for (Object[] c : dataRows(sheet, 2)) {
|
|
398
|
398
|
LedgerComplaint o = new LedgerComplaint();
|
|
399
|
|
- o.setRecordDate(date(c, 0));
|
|
400
|
|
- o.setFlightNo(str(c, 1));
|
|
401
|
|
- o.setPassengerName(str(c, 2));
|
|
402
|
|
- o.setTeamName(str(c, 3));
|
|
403
|
|
- o.setResponsibleName(str(c, 4));
|
|
404
|
|
- o.setComplaintDesc(str(c, 5));
|
|
405
|
|
- o.setComplaintType(str(c, 7));
|
|
406
|
|
- o.setResultHandling(str(c, 10));
|
|
407
|
|
- o.setRemark(str(c, 8));
|
|
|
399
|
+
|
|
|
400
|
+ // 按导入顺序映射字段
|
|
|
401
|
+ o.setRecordDate(date(c, 0)); // 时间
|
|
|
402
|
+ o.setFlightNo(str(c, 1)); // 航班号
|
|
|
403
|
+ o.setPassengerName(str(c, 2)); // 旅客姓名
|
|
|
404
|
+ o.setTeamName(str(c, 3)); // 班组
|
|
|
405
|
+ String responsibleName = str(c, 4); // 责任人
|
|
|
406
|
+ o.setResponsibleName(responsibleName);
|
|
|
407
|
+ o.setComplaintDesc(str(c, 5)); // 投诉情况
|
|
|
408
|
+ o.setPassengerDemand(str(c, 6)); // 旅客诉求
|
|
|
409
|
+ o.setComplaintType(str(c, 7)); // 类别
|
|
|
410
|
+ o.setChannelSource(str(c, 8)); // 渠道来源
|
|
|
411
|
+ o.setIsResponsible(str(c, 9)); // 是否有责
|
|
|
412
|
+ o.setResultHandling(str(c, 10)); // 处理进度
|
|
|
413
|
+ o.setResponsibleCaptain(str(c, 11)); // 责任队长
|
|
|
414
|
+ o.setTeamInternalDuty(str(c, 12)); // 队室内勤
|
|
|
415
|
+
|
|
|
416
|
+ // 根据责任人名称查找组织信息和ID
|
|
|
417
|
+ if (responsibleName != null && !responsibleName.trim().isEmpty()) {
|
|
|
418
|
+ Map<String, Object> orgInfo = resolveOrgInfoByNameWithCache(responsibleName);
|
|
|
419
|
+ if (!orgInfo.isEmpty()) {
|
|
|
420
|
+ o.setResponsibleId((Long) orgInfo.get("userId"));
|
|
|
421
|
+ o.setDeptId((Long) orgInfo.get("deptId"));
|
|
|
422
|
+ o.setDeptName((String) orgInfo.get("deptName"));
|
|
|
423
|
+ o.setTeamId((Long) orgInfo.get("teamId"));
|
|
|
424
|
+ o.setTeamName((String) orgInfo.get("teamName"));
|
|
|
425
|
+ o.setGroupId((Long) orgInfo.get("groupId"));
|
|
|
426
|
+ o.setGroupName((String) orgInfo.get("groupName"));
|
|
|
427
|
+ }
|
|
|
428
|
+ }
|
|
|
429
|
+
|
|
408
|
430
|
o.setImportBatch(batchNo);
|
|
409
|
431
|
o.setSourceType("1");
|
|
410
|
432
|
o.setCreateBy(username);
|