|
|
|
@ -1,8 +1,10 @@
|
|
|
|
|
package com.engine.jclproduct.utils;
|
|
|
|
|
|
|
|
|
|
import com.engine.jclproduct.entity.param.TransferParam;
|
|
|
|
|
import com.engine.jclproduct.entity.po.DepartmentPo;
|
|
|
|
|
import com.engine.jclproduct.entity.po.EmploymentRecordPo;
|
|
|
|
|
import com.engine.jclproduct.entity.po.HrmresourcePo;
|
|
|
|
|
import com.engine.jclproduct.entity.po.SubCompanyPo;
|
|
|
|
|
import com.weaver.general.Util;
|
|
|
|
|
import weaver.common.DateUtil;
|
|
|
|
|
import weaver.conn.RecordSet;
|
|
|
|
@ -97,6 +99,53 @@ public class EmploymentUtil {
|
|
|
|
|
return hrmresourcePoList;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 当前分部表信息
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
public static List<SubCompanyPo> getSubCompany() {
|
|
|
|
|
List<SubCompanyPo> subCompanyPoList = new ArrayList<>();
|
|
|
|
|
RecordSet rs = new RecordSet();
|
|
|
|
|
rs.executeQuery("select id,subcompanyname,companyid,supsubcomid,showorder,canceled,subcompanycode from hrmsubcompany");
|
|
|
|
|
while (rs.next()) {
|
|
|
|
|
subCompanyPoList.add(SubCompanyPo.builder()
|
|
|
|
|
.subcompanyId(Util.getIntValue(rs.getString("id")))
|
|
|
|
|
.subcompanyName(Util.null2String(rs.getString("subcompanyname")))
|
|
|
|
|
.companyId(Util.getIntValue(rs.getString("companyid")))
|
|
|
|
|
.supsubcomId(Util.getIntValue(rs.getString("supsubcomid")))
|
|
|
|
|
.showorder(Util.getFloatValue(rs.getString("showorder")))
|
|
|
|
|
.canceled(Util.getIntValue(rs.getString("canceled")))
|
|
|
|
|
.subcompanyCode(Util.null2String(rs.getString("subcompanycode")))
|
|
|
|
|
.build());
|
|
|
|
|
}
|
|
|
|
|
return subCompanyPoList;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 当前部门表信息
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
public static List<DepartmentPo> getDepartment() {
|
|
|
|
|
List<DepartmentPo> departmentPoList = new ArrayList<>();
|
|
|
|
|
RecordSet rs = new RecordSet();
|
|
|
|
|
rs.executeQuery("select a.id,departmentmark,subcompanyid1,supdepid,showorder,canceled,departmentcode,b.bmfzr from hrmdepartment a\n" +
|
|
|
|
|
" left join hrmdepartmentdefined b on a.id = b.deptid");
|
|
|
|
|
while (rs.next()) {
|
|
|
|
|
departmentPoList.add(DepartmentPo.builder()
|
|
|
|
|
.departmentId(Util.getIntValue(rs.getString("id")))
|
|
|
|
|
.departmentmark(Util.null2String(rs.getString("departmentmark")))
|
|
|
|
|
.subcompanyId(Util.getIntValue(rs.getString("subcompanyid1")))
|
|
|
|
|
.supdepId(Util.getIntValue(rs.getString("supdepid")))
|
|
|
|
|
.showorder(Util.getFloatValue(rs.getString("showorder")))
|
|
|
|
|
.canceled(Util.getIntValue(rs.getString("canceled")))
|
|
|
|
|
.departmentCode(Util.null2String(rs.getString("departmentcode")))
|
|
|
|
|
.bmfzr(Util.null2String(rs.getString("bmfzr")))
|
|
|
|
|
.build());
|
|
|
|
|
}
|
|
|
|
|
return departmentPoList;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|