|
|
@@ -824,21 +824,37 @@ public class LedgerCombinedImportServiceImpl implements ILedgerCombinedImportSer
|
|
824
|
824
|
}
|
|
825
|
825
|
|
|
826
|
826
|
/** 15. 锦旗及感谢信 → ledger_banner_letter
|
|
827
|
|
- * R2: 时间(0) 姓名(1) 内容(2) 类别(3) 图片附件(4) 班组(5) 队室内勤(6)
|
|
|
827
|
+ * R2: 时间(0) 姓名(1) 获得感谢信的具体内容(2) 类别(3) 图片和附件(4) 班组(5) 队室内勤(6)
|
|
828
|
828
|
* 类别: 锦旗→'1', 其他→'2'
|
|
829
|
829
|
*/
|
|
830
|
830
|
private int doBannerLetter(Sheet sheet, String batchNo, String username) {
|
|
831
|
831
|
List<LedgerBannerLetter> list = new ArrayList<>();
|
|
832
|
832
|
for (Object[] c : dataRows(sheet, 2)) {
|
|
833
|
833
|
LedgerBannerLetter o = new LedgerBannerLetter();
|
|
834
|
|
- o.setRecordDate(date(c, 0));
|
|
835
|
|
- o.setPersonName(str(c, 1));
|
|
836
|
|
- o.setContentDesc(str(c, 2));
|
|
|
834
|
+ o.setRecordDate(date(c, 0)); // 时间
|
|
|
835
|
+ String personName = str(c, 1);
|
|
|
836
|
+ o.setPersonName(personName); // 姓名
|
|
|
837
|
+ o.setContentDesc(str(c, 2)); // 获得感谢信的具体内容
|
|
837
|
838
|
String typeStr = str(c, 3);
|
|
838
|
|
- o.setType("锦旗".equals(typeStr) ? "1" : "2");
|
|
839
|
|
- o.setEvidenceFile(str(c, 4));
|
|
840
|
|
- o.setTeamName(str(c, 5));
|
|
841
|
|
- o.setRemark(str(c, 6));
|
|
|
839
|
+ o.setType("锦旗".equals(typeStr) ? "1" : "2"); // 类别
|
|
|
840
|
+ o.setEvidenceFile(str(c, 4)); // 图片和附件
|
|
|
841
|
+ o.setTeamName(str(c, 5)); // 班组
|
|
|
842
|
+ o.setTeamInternalDuty(str(c, 6)); // 队室内勤
|
|
|
843
|
+
|
|
|
844
|
+ // 根据姓名查找组织ID
|
|
|
845
|
+ if (personName != null && !personName.trim().isEmpty()) {
|
|
|
846
|
+ Map<String, Object> orgInfo = resolveOrgInfoByNameWithCache(personName);
|
|
|
847
|
+ if (!orgInfo.isEmpty()) {
|
|
|
848
|
+ o.setPersonUserId((Long) orgInfo.get("userId"));
|
|
|
849
|
+ o.setDeptId((Long) orgInfo.get("deptId"));
|
|
|
850
|
+ o.setDeptName((String) orgInfo.get("deptName"));
|
|
|
851
|
+ o.setTeamId((Long) orgInfo.get("teamId"));
|
|
|
852
|
+ o.setTeamName((String) orgInfo.get("teamName"));
|
|
|
853
|
+ o.setGroupId((Long) orgInfo.get("groupId"));
|
|
|
854
|
+ o.setGroupName((String) orgInfo.get("groupName"));
|
|
|
855
|
+ }
|
|
|
856
|
+ }
|
|
|
857
|
+
|
|
842
|
858
|
o.setImportBatch(batchNo);
|
|
843
|
859
|
o.setSourceType("1");
|
|
844
|
860
|
o.setCreateBy(username);
|