|
|
|
@ -1063,36 +1063,8 @@ public class ChartServiceImpl extends Service implements ChartService {
|
|
|
|
|
" coadjutant, fleader,versiondate, isvirtual,versionid,job_num,staff_num) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)";
|
|
|
|
|
insertData(recordSetTrans, insertDeptSql, insertParamList);
|
|
|
|
|
|
|
|
|
|
//当前岗位版本存储
|
|
|
|
|
rs.executeQuery("select b.id as jobid,b.JOBTITLENAME as jobname,a.ec_department as departmentid," +
|
|
|
|
|
"c.departmentname as department,a.ec_company as subcompanyid,d.subcompanyname as subcompany," +
|
|
|
|
|
"b.jobresponsibility,a.forbidden_tag as canceled,a.job_no as jobcode,a.description " +
|
|
|
|
|
"from jcl_org_job a inner join hrmjobtitles b on a.ec_jobtitle = b.id " +
|
|
|
|
|
"left join hrmdepartment c on a.ec_department=c.id " +
|
|
|
|
|
"left join hrmsubcompany d on a.ec_company=d.id");
|
|
|
|
|
insertParamList = new ArrayList<>();
|
|
|
|
|
while (rs.next()) {
|
|
|
|
|
insertList = new ArrayList<>();
|
|
|
|
|
insertList.add(StringUtils.isBlank(rs.getString("jobid")) ? null : rs.getString("jobid"));
|
|
|
|
|
insertList.add(currentUser);
|
|
|
|
|
insertList.add(rs.getString("jobname"));
|
|
|
|
|
insertList.add(rs.getString("departmentid"));
|
|
|
|
|
insertList.add(rs.getString("department"));
|
|
|
|
|
insertList.add(rs.getString("subcompanyid"));
|
|
|
|
|
insertList.add(rs.getString("subcompany"));
|
|
|
|
|
insertList.add(rs.getString("jobresponsibility"));
|
|
|
|
|
insertList.add(StringUtils.isBlank(rs.getString("canceled")) ? null : rs.getInt("canceled"));
|
|
|
|
|
insertList.add(rs.getString("jobcode"));
|
|
|
|
|
insertList.add(rs.getString("description"));
|
|
|
|
|
insertList.add(currentDate);
|
|
|
|
|
insertList.add(StringUtils.isBlank(versionId) ? null : Util.getIntValue(versionId));
|
|
|
|
|
insertParamList.add(insertList);
|
|
|
|
|
}
|
|
|
|
|
String insertJobSql = "insert into jcl_chart_job(jobid,creater,jobname,departmentid,department,subcompanyid," +
|
|
|
|
|
"subcompany,jobresponsibility,canceled,jobcode,description,versiondate,versionid)values(?,?,?,?,?,?,?,?,?,?,?,?,?)";
|
|
|
|
|
insertData(recordSetTrans, insertJobSql, insertParamList);
|
|
|
|
|
|
|
|
|
|
//当前人员版本存储
|
|
|
|
|
//当前人员版本存储(todo 人员数据存在建模表)
|
|
|
|
|
rs.executeQuery("select a.id as resourceid,workyear,usekind,managerstr,status,sex,accounttype,belongto," +
|
|
|
|
|
"loginid,maritalstatus,a.telephone,mobile,mobilecall,email,b.locationname,resourcetype,startdate," +
|
|
|
|
|
"enddate,d.id as jobtitleid,d.JOBTITLENAME as jobtitle,joblevel,seclevel,departmentid,e.departmentname as department," +
|
|
|
|
|