|
|
@ -218,16 +218,18 @@ public class OrganizationSyncEc {
|
|
|
|
|
|
|
|
|
|
|
|
map.put("id", ecDepartment);
|
|
|
|
map.put("id", ecDepartment);
|
|
|
|
RecordSet rs = new RecordSet();
|
|
|
|
RecordSet rs = new RecordSet();
|
|
|
|
// 先查拓展表
|
|
|
|
|
|
|
|
rs.execute("select * from hrmdepartmentdefined where deptid = '" + ecDepartment + "'");
|
|
|
|
// 再查主表
|
|
|
|
|
|
|
|
rs.execute("select * from hrmdepartment where id = '" + ecDepartment + "'");
|
|
|
|
int colcount = rs.getColCounts();
|
|
|
|
int colcount = rs.getColCounts();
|
|
|
|
if (rs.next()) {
|
|
|
|
if (rs.next()) {
|
|
|
|
for (int i = 1; i <= colcount; i++) {
|
|
|
|
for (int i = 1; i <= colcount; i++) {
|
|
|
|
map.put(rs.getColumnName(i).toLowerCase(), Util.null2String(rs.getString(i)));
|
|
|
|
map.put(rs.getColumnName(i).toLowerCase(), Util.null2String(rs.getString(i)));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// 再查主表
|
|
|
|
|
|
|
|
rs.execute("select * from hrmdepartment where id = '" + ecDepartment + "'");
|
|
|
|
// 先查拓展表
|
|
|
|
|
|
|
|
rs.execute("select * from hrmdepartmentdefined where deptid = '" + ecDepartment + "'");
|
|
|
|
colcount = rs.getColCounts();
|
|
|
|
colcount = rs.getColCounts();
|
|
|
|
if (rs.next()) {
|
|
|
|
if (rs.next()) {
|
|
|
|
for (int i = 1; i <= colcount; i++) {
|
|
|
|
for (int i = 1; i <= colcount; i++) {
|
|
|
|