BUG-标签同步BUG修复

This commit is contained in:
dxfeng 2024-08-16 15:28:26 +08:00
parent 101189c770
commit a17ccfa60b
1 changed files with 21 additions and 3 deletions

View File

@ -646,9 +646,7 @@ public class ApplicantResumeServiceImpl extends Service implements ApplicantResu
}
// 同步设置的标签
int applicantModeId = ApplicantCommonInfo.getModeIdByTableName("uf_jcl_yppc");
rs.executeQuery("select a.tabname , a.color , a.bgcolor , a.bdcolor , a.type , a.creator , a.orderid from modeTabs_" + applicantModeId + " a where a.id in ( select modelableid from uf_jcl_yppc where id = ?)", applicantId);
List<Map<String, Object>> modeTabList = RecruitRecordSet.getRecordMapList(rs);
List<Map<String, Object>> modeTabList = getModeTabs(applicantId, rs);
String dateTime = DateUtil.getFullDate();
String[] dateSplit = dateTime.split(" ");
String createdate = dateSplit[0];
@ -690,4 +688,24 @@ public class ApplicantResumeServiceImpl extends Service implements ApplicantResu
}
}
/**
* 获取标签信息
*
* @param applicantId
* @return
*/
private static List<Map<String, Object>> getModeTabs(String applicantId, RecordSet rs) {
int applicantModeId = ApplicantCommonInfo.getModeIdByTableName("uf_jcl_yppc");
rs.executeQuery(" select modelableid from uf_jcl_yppc where id = ?", applicantId);
String modelableid = "";
if (rs.next()) {
modelableid = rs.getString("modelableid");
}
if (StringUtils.isNotBlank(modelableid)) {
rs.executeQuery("select a.tabname , a.color , a.bgcolor , a.bdcolor , a.type , a.creator , a.orderid from modeTabs_" + applicantModeId + " a where a.id in (" + modelableid + ")");
return RecruitRecordSet.getRecordMapList(rs);
}
return new ArrayList<>();
}
}