commit
e76432ae1a
@ -0,0 +1,61 @@
|
||||
<%@ page import="weaver.conn.RecordSet" %>
|
||||
<%@ page import="com.engine.organization.entity.staff.po.StaffPO" %>
|
||||
<%@ page import="java.util.List" %>
|
||||
<%@ page import="java.util.ArrayList" %>
|
||||
<%@ page import="com.engine.organization.entity.job.po.JobPO" %>
|
||||
<%@ page import="com.engine.organization.util.db.MapperProxyFactory" %>
|
||||
<%@ page import="com.engine.organization.mapper.job.JobMapper" %>
|
||||
<%@ page import="com.engine.organization.entity.staff.bo.StaffBO" %>
|
||||
<%@ page import="com.engine.organization.mapper.staff.StaffMapper" %>
|
||||
<%@ page contentType="text/html; charset=UTF-8" %>
|
||||
<%
|
||||
|
||||
RecordSet rs = new RecordSet();
|
||||
List<StaffPO> staffPOList = new ArrayList<>();
|
||||
String sql = "select * from jcl_org_staff where permanent_num = 0 and is_used = 0 and delete_type = 0";
|
||||
rs.executeQuery(sql);
|
||||
while (rs.next()) {
|
||||
StaffPO staffPO = new StaffPO();
|
||||
staffPO.setId(-1 == rs.getInt("id") ? 0L : (long) rs.getInt("id"));
|
||||
staffPO.setPlanId(-1 == rs.getInt("plan_id") ? 0L : (long) rs.getInt("plan_id"));
|
||||
staffPO.setCompId(-1 == rs.getInt("comp_id") ? 0 : rs.getInt("comp_id"));
|
||||
staffPO.setEcCompany(-1 == rs.getInt("ec_company") ? 0 : rs.getInt("ec_company"));
|
||||
staffPO.setDeptId(-1 == rs.getInt("dept_id") ? 0 : rs.getInt("dept_id"));
|
||||
staffPO.setEcDepartment(-1 == rs.getInt("ec_department") ? 0 : rs.getInt("ec_department"));
|
||||
staffPO.setJobId(-1 == rs.getInt("job_id") ? 0L : (long) rs.getInt("job_id"));
|
||||
staffPO.setStaffNum(-1 == rs.getInt("staff_num") ? 0 : rs.getInt("staff_num"));
|
||||
staffPO.setControlPolicy(-1 == rs.getInt("control_policy") ? 0 : rs.getInt("control_policy"));
|
||||
staffPO.setPermanentNum(-1 == rs.getInt("permanent_num") ? 0 : rs.getInt("permanent_num"));
|
||||
staffPO.setFreezeNum(-1 == rs.getInt("freeze_num") ? 0 : rs.getInt("freeze_num"));
|
||||
staffPO.setDescription(rs.getString("description"));
|
||||
staffPO.setCreator((long) rs.getInt("creator")); staffPO.setCreator((long) rs.getInt("creator"));
|
||||
staffPOList.add(staffPO);
|
||||
}
|
||||
|
||||
for (StaffPO staffPO : staffPOList) {
|
||||
sql = "select count(1) as num from hrmresource where STATUS < 4";
|
||||
if (null != staffPO.getEcCompany() && 0 != staffPO.getEcCompany()) {
|
||||
sql += " and subcompanyid1 = " + staffPO.getEcCompany();
|
||||
}
|
||||
if (null != staffPO.getEcDepartment() && 0 != staffPO.getEcDepartment()) {
|
||||
sql += " and departmentid = " + staffPO.getEcDepartment();
|
||||
}
|
||||
if (null != staffPO.getJobId() && 0 != staffPO.getJobId()) {
|
||||
JobPO jobById = MapperProxyFactory.getProxy(JobMapper.class).getJobById(staffPO.getJobId());
|
||||
if (null == jobById) {
|
||||
continue;
|
||||
}
|
||||
Integer ecJobTitle = jobById.getEcJobTitle();
|
||||
sql += " and jobtitle = " + ecJobTitle;
|
||||
}
|
||||
rs.executeQuery(sql);
|
||||
if (rs.next()) {
|
||||
staffPO.setPermanentNum(-1 == rs.getInt("num") ? 0 : rs.getInt("num"));
|
||||
StaffBO.buildStaffDesc(staffPO);
|
||||
MapperProxyFactory.getProxy(StaffMapper.class).updateStaff(staffPO);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
out.println("在编数初始化完成");
|
||||
%>
|
@ -0,0 +1,14 @@
|
||||
package com.api.organization.web;
|
||||
|
||||
import javax.ws.rs.Path;
|
||||
|
||||
/**
|
||||
* @Author liang.cheng
|
||||
* @Date 2023/6/27 3:38 PM
|
||||
* @Description: TODO
|
||||
* @Version 1.0
|
||||
*/
|
||||
|
||||
@Path("/bs/hrmorganization/virtual")
|
||||
public class OrgVirtualController extends com.engine.organization.web.OrgVirtualController {
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
package com.api.organization.web;
|
||||
|
||||
import javax.ws.rs.Path;
|
||||
|
||||
/**
|
||||
* @author:dxfeng
|
||||
* @createTime: 2022/12/28
|
||||
* @version: 1.0
|
||||
*/
|
||||
@Path("/bs/hrmorganization/personnelresume")
|
||||
public class PersonnelResumeController extends com.engine.organization.web.PersonnelResumeController {
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
package com.api.organization.web;
|
||||
|
||||
import javax.ws.rs.Path;
|
||||
|
||||
/**
|
||||
* @Author weaver_cl
|
||||
* @Description:
|
||||
* @Date 2022/12/8
|
||||
* @Version V1.0
|
||||
**/
|
||||
@Path("/bs/hrmorganization/version")
|
||||
public class VersionManageController extends com.engine.organization.web.VersionManageController {
|
||||
}
|
@ -0,0 +1,39 @@
|
||||
package com.engine.organization.entity.chart;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import weaver.conn.RecordSet;
|
||||
|
||||
/**
|
||||
* @author:dxfeng
|
||||
* @createTime: 2023/06/26
|
||||
* @version: 1.0
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@Builder
|
||||
public class CompanyTreePO {
|
||||
private String id;
|
||||
private String pId;
|
||||
private String value;
|
||||
private String title;
|
||||
private boolean isLeaf;
|
||||
private String key;
|
||||
|
||||
public boolean getIsLeaf() {
|
||||
RecordSet rs = new RecordSet();
|
||||
rs.executeQuery("select id from hrmsubcompany where (canceled is null or canceled != '1') and supsubcomid = ?",id);
|
||||
return !rs.next();
|
||||
}
|
||||
|
||||
public String getpId() {
|
||||
return pId;
|
||||
}
|
||||
|
||||
public String getKey() {
|
||||
return id;
|
||||
}
|
||||
}
|
@ -0,0 +1,30 @@
|
||||
package com.engine.organization.entity.company.param;
|
||||
|
||||
import com.engine.organization.common.BaseQueryParam;
|
||||
import lombok.*;
|
||||
|
||||
/**
|
||||
* @author:dxfeng
|
||||
* @createTime: 2022/11/24
|
||||
* @version: 1.0
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@EqualsAndHashCode(callSuper=false)
|
||||
public class CompParam extends BaseQueryParam {
|
||||
private Integer Id;
|
||||
private String subCompanyName;
|
||||
private String subCompanyDesc;
|
||||
private Integer companyId;
|
||||
private Integer supSubComId;
|
||||
private String url;
|
||||
private Boolean canceled;
|
||||
private String subCompanyCode;
|
||||
private String outKey;
|
||||
private Integer limitUsers;
|
||||
private String uuid;
|
||||
private Integer showOrder;
|
||||
private Integer showOrderOfTree;
|
||||
}
|
@ -1,71 +0,0 @@
|
||||
package com.engine.organization.entity.company.param;
|
||||
|
||||
import com.engine.organization.common.BaseQueryParam;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* @description:
|
||||
* @author:dxfeng
|
||||
* @createTime: 2022/05/16
|
||||
* @version: 1.0
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class CompSearchParam extends BaseQueryParam {
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 编号
|
||||
*/
|
||||
private String compNo;
|
||||
|
||||
/**
|
||||
* 名称
|
||||
*/
|
||||
private String compName;
|
||||
|
||||
/**
|
||||
* 简称
|
||||
*/
|
||||
private String compNameShort;
|
||||
|
||||
/**
|
||||
* 上级公司
|
||||
*/
|
||||
private Long parentCompany;
|
||||
private Long ecCompany;
|
||||
|
||||
/**
|
||||
* 组织机构代码
|
||||
*/
|
||||
private String orgCode;
|
||||
|
||||
/**
|
||||
* 行业
|
||||
*/
|
||||
private Integer industry;
|
||||
|
||||
/**
|
||||
* 负责人
|
||||
*/
|
||||
private Integer compPrincipal;
|
||||
|
||||
/**
|
||||
* 说明
|
||||
*/
|
||||
private String description;
|
||||
|
||||
/**
|
||||
* 禁用标记
|
||||
*/
|
||||
private Boolean forbiddenTag;
|
||||
}
|
@ -0,0 +1,36 @@
|
||||
package com.engine.organization.entity.hrmresource.bo;
|
||||
|
||||
import com.engine.organization.entity.hrmresource.po.ResourcePO;
|
||||
import com.engine.organization.entity.searchtree.SearchTree;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
/**
|
||||
* @author:dxfeng
|
||||
* @createTime: 2022/12/28
|
||||
* @version: 1.0
|
||||
*/
|
||||
public class ResourceBO {
|
||||
|
||||
public static List<SearchTree> buildSetToSearchTree(Collection<ResourcePO> builderJobs) {
|
||||
return builderJobs.stream().map(item -> {
|
||||
SearchTree tree = new SearchTree();
|
||||
tree.setCanClick(true);
|
||||
tree.setCanceled(false);
|
||||
tree.setIcon("icon-coms-currency-Customer");
|
||||
tree.setId(item.getId().toString());
|
||||
tree.setIsParent(false);
|
||||
tree.setIsVirtual("0");
|
||||
tree.setName(item.getLastName());
|
||||
tree.setPid("0");
|
||||
tree.setSelected(false);
|
||||
tree.setType("4");
|
||||
tree.setParentComp(null == item.getJobId() ? "0" : item.getJobId().toString());
|
||||
tree.setOrderNum(null == item.getDspOrder() ? 0 : item.getDspOrder());
|
||||
return tree;
|
||||
}).collect(Collectors.toList());
|
||||
|
||||
}
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
package com.engine.organization.entity.hrmresource.param;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* @author:dxfeng
|
||||
* @createTime: 2023/01/05
|
||||
* @version: 1.0
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class SearchTemplateParam {
|
||||
private String key;
|
||||
//private boolean selected;
|
||||
private String showname;
|
||||
private String fields;
|
||||
}
|
@ -0,0 +1,67 @@
|
||||
package com.engine.organization.entity.hrmresource.po;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
*
|
||||
* @TableName jcl_org_custom_template
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class JclOrgCustomTemplatePO implements Serializable {
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private Integer id;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private String name;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private String basicFields;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private String personalFields;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private String workFields;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private Integer isused;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private Integer creator;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private Date createTime;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private Date updateTime;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
}
|
@ -0,0 +1,37 @@
|
||||
package com.engine.organization.entity.hrmresource.po;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* @Author weaver_cl
|
||||
* @Description:
|
||||
* @Date 2022/12/15
|
||||
* @Version V1.0
|
||||
**/
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class ResourcePO {
|
||||
|
||||
private Long id;
|
||||
|
||||
private Integer subcompanyid1;
|
||||
|
||||
private Integer departmentid;
|
||||
|
||||
private Integer jobtitle;
|
||||
|
||||
private String lastName;
|
||||
private Integer dspOrder;
|
||||
|
||||
/**
|
||||
* 临时关联聚才林岗位ID
|
||||
*/
|
||||
private Long jobId;
|
||||
|
||||
}
|
@ -0,0 +1,29 @@
|
||||
package com.engine.organization.entity.hrmresource.po;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @author:dxfeng
|
||||
* @createTime: 2023/01/06
|
||||
* @version: 1.0
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class SearchTemplatePO {
|
||||
private Integer id;
|
||||
private String name;
|
||||
private String basicFields;
|
||||
private String personalFields;
|
||||
private String workFields;
|
||||
private String isused;
|
||||
private Integer creator;
|
||||
private Date createTime;
|
||||
private Date updateTime;
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
package com.engine.organization.entity.hrmresource.po;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* @author:dxfeng
|
||||
* @createTime: 2023/01/11
|
||||
* @version: 1.0
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class TransferDataPO {
|
||||
private String id;
|
||||
private String label;
|
||||
private String title;
|
||||
private String idx;
|
||||
}
|
@ -0,0 +1,47 @@
|
||||
package com.engine.organization.entity.hrmresource.vo;
|
||||
|
||||
import com.cloudstore.eccom.pc.table.WeaTableType;
|
||||
import com.engine.organization.annotation.OrganizationTable;
|
||||
import com.engine.organization.annotation.OrganizationTableColumn;
|
||||
import com.engine.organization.annotation.OrganizationTableOperate;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* @author:ml
|
||||
* @createTime: 2023/01/06
|
||||
* @version: 1.0
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@OrganizationTable(pageId = "c0583f20-f10c-11ec-9947-00e04c680716",
|
||||
fields = "t.id," +
|
||||
"t.lastname," +
|
||||
"t.departmentid," +
|
||||
"t.subcompanyid1," +
|
||||
"t.jobtitle," +
|
||||
"t.mobile," +
|
||||
"t.telephone," +
|
||||
"t.managerid, " +
|
||||
"t.dsporder ",
|
||||
fromSql = "FROM hrmresource t ",
|
||||
orderby = " dsporder ",
|
||||
sortway = " asc",
|
||||
primarykey = "id",
|
||||
operates = {
|
||||
@OrganizationTableOperate(text = "查看"),
|
||||
@OrganizationTableOperate(index = "1", text = "另存为版本")
|
||||
},
|
||||
tableType = WeaTableType.CHECKBOX
|
||||
)
|
||||
public class HrmResourceJclVO {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@OrganizationTableColumn(column = "id", display = false)
|
||||
private Long id;
|
||||
}
|
@ -0,0 +1,67 @@
|
||||
package com.engine.organization.entity.hrmresource.vo;
|
||||
|
||||
import com.cloudstore.eccom.pc.table.WeaTableType;
|
||||
import com.engine.organization.annotation.OrganizationTable;
|
||||
import com.engine.organization.annotation.OrganizationTableColumn;
|
||||
import com.engine.organization.annotation.OrganizationTableOperate;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@OrganizationTable(pageId = "8df45b09-0cda-4f57-a93a-ca9f96a4c111",
|
||||
fields = "t.id," +
|
||||
"t.name," +
|
||||
"t.basic_fields," +
|
||||
"t.personal_fields," +
|
||||
"t.work_fields," +
|
||||
"t.isused," +
|
||||
"t.creator," +
|
||||
"t.create_time," +
|
||||
"t.update_time",
|
||||
fromSql = "FROM jcl_org_custom_template t ",
|
||||
orderby = "id",
|
||||
sortway = "asc",
|
||||
primarykey = "id",
|
||||
operates = {
|
||||
@OrganizationTableOperate(index = "0", text = "编辑"),
|
||||
@OrganizationTableOperate(index = "1", text = "另存为"),
|
||||
@OrganizationTableOperate(index = "2", text = "删除")
|
||||
},
|
||||
tableType = WeaTableType.CHECKBOX
|
||||
)
|
||||
public class JclOrgCustomTemplateVO {
|
||||
|
||||
@OrganizationTableColumn(column = "id", display = false)
|
||||
private Integer id;
|
||||
|
||||
@OrganizationTableColumn(text = "模板名称", width = "30%", column = "name")
|
||||
private String name;
|
||||
|
||||
@OrganizationTableColumn(column = "basic_fields", display = false)
|
||||
private String basicFields;
|
||||
|
||||
@OrganizationTableColumn(column = "personal_fields", display = false)
|
||||
private String personalFields;
|
||||
|
||||
@OrganizationTableColumn(column = "work_fields", display = false)
|
||||
private String workFields;
|
||||
|
||||
@OrganizationTableColumn(column = "isused", display = false)
|
||||
private Integer isUsed;
|
||||
|
||||
@OrganizationTableColumn(column = "creator", display = false)
|
||||
private Integer creator;
|
||||
|
||||
@OrganizationTableColumn(text = "创建时间",column = "create_time", width = "30%")
|
||||
private Date createTime;
|
||||
|
||||
@OrganizationTableColumn(text = "更新时间",column = "update_time", display = false)
|
||||
private Date updateTime;
|
||||
}
|
@ -0,0 +1,42 @@
|
||||
package com.engine.organization.entity.jclimport.po;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONObject;
|
||||
import weaver.general.Util;
|
||||
|
||||
/**
|
||||
* @author:dxfeng
|
||||
* @createTime: 2022/12/06
|
||||
* @version: 1.0
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class HrmFormFieldPO {
|
||||
private Integer fieldId;
|
||||
private String fieldName;
|
||||
private String labelName;
|
||||
private Integer isSystem;
|
||||
private Integer isMand;
|
||||
private String fieldDbType;
|
||||
private String fieldHtmlType;
|
||||
private String type;
|
||||
private String dmlUrl;
|
||||
|
||||
public JSONObject getJsonObject(String fieldValue) throws JSONException {
|
||||
JSONObject jsonObject = new JSONObject();
|
||||
jsonObject.put("fieldid", Util.null2String(this.fieldId));
|
||||
jsonObject.put("fieldhtmltype", Util.null2String(this.fieldHtmlType));
|
||||
jsonObject.put("type", Util.null2String(this.type));
|
||||
jsonObject.put("dmlurl", Util.null2String(this.dmlUrl));
|
||||
jsonObject.put("fieldvalue", fieldValue);
|
||||
return jsonObject;
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,24 @@
|
||||
package com.engine.organization.entity.personnelcard.po;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* @author:dxfeng
|
||||
* @createTime: 2022/12/05
|
||||
* @version: 1.0
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class CusTreeFormPO {
|
||||
private String scope;
|
||||
private String formLabel;
|
||||
private Integer id;
|
||||
private Integer parentId;
|
||||
private String viewType;
|
||||
private Integer scopeOrder;
|
||||
}
|
@ -0,0 +1,24 @@
|
||||
package com.engine.organization.entity.personnelcard.po;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* @author:dxfeng
|
||||
* @createTime: 2022/12/05
|
||||
* @version: 1.0
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class HrmFieldGroupPO {
|
||||
private Integer id;
|
||||
private Integer groupLabel;
|
||||
private Integer groupOrder;
|
||||
private Integer groupType;
|
||||
private Integer isShow;
|
||||
private String labelName;
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
package com.engine.organization.entity.resume.po;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @author:dxfeng
|
||||
* @createTime: 2022/12/30
|
||||
* @version: 1.0
|
||||
*/
|
||||
@Data
|
||||
public class HrmFamilyInfoPO {
|
||||
private Integer resourceId;
|
||||
private String member;
|
||||
private String title;
|
||||
private String company;
|
||||
private String jobTitle;
|
||||
private String address;
|
||||
private String uuid;
|
||||
private String birthday;
|
||||
private Integer whetherChildren;
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
package com.engine.organization.entity.resume.po;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* @author:dxfeng
|
||||
* @createTime: 2022/12/29
|
||||
* @version: 1.0
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class PersonnelResumeColumn {
|
||||
private String name;
|
||||
private String value;
|
||||
private Integer colspans;
|
||||
private Integer rowspans;
|
||||
}
|
@ -0,0 +1,102 @@
|
||||
package com.engine.organization.entity.resume.po;
|
||||
|
||||
import lombok.Data;
|
||||
import net.coobird.thumbnailator.Thumbnails;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.apache.poi.util.IOUtils;
|
||||
import weaver.file.ImageFileManager;
|
||||
import weaver.general.GCONST;
|
||||
import weaver.general.Util;
|
||||
|
||||
import java.io.*;
|
||||
import java.nio.file.Files;
|
||||
import java.util.Base64;
|
||||
|
||||
/**
|
||||
* @author:dxfeng
|
||||
* @createTime: 2022/12/29
|
||||
* @version: 1.0
|
||||
*/
|
||||
@Data
|
||||
public class PersonnelResumePO {
|
||||
private Integer id;
|
||||
private String lastName;
|
||||
private String sex;
|
||||
private String birthday;
|
||||
// resourceImageId;
|
||||
private String image;
|
||||
private String imageId;
|
||||
private String nativePlace;
|
||||
// policy;
|
||||
private String politics;
|
||||
// departmentid;
|
||||
private String department;
|
||||
// maritalStatus;
|
||||
private String marriage;
|
||||
private String jobTitle;
|
||||
private String companyStartDate;
|
||||
private String workStartDate;
|
||||
// certificatenum
|
||||
private String idCard;
|
||||
// homeaddress
|
||||
private String address;
|
||||
private String telephone;
|
||||
private String email;
|
||||
private String selfStatement;
|
||||
|
||||
public String getSex() {
|
||||
if ("1".equals(sex)) {
|
||||
return "女";
|
||||
}
|
||||
return "男";
|
||||
}
|
||||
|
||||
public String getImage() {
|
||||
if (StringUtils.isBlank(image)) {
|
||||
return "";
|
||||
}
|
||||
ImageFileManager manager = new ImageFileManager();
|
||||
manager.getImageFileInfoById(Util.getIntValue(image));
|
||||
InputStream inputStream = manager.getInputStream();
|
||||
String imageStr = "";
|
||||
try {
|
||||
String outPutPath = GCONST.getRootPath() + "hrm" + File.separator + "import" + File.separator + "template" + File.separator
|
||||
+ manager.getImageFileName();
|
||||
File f = new File(outPutPath);
|
||||
if (!f.exists()) {
|
||||
String substring = outPutPath.substring(0, outPutPath.lastIndexOf(File.separator));
|
||||
File file = new File(substring);
|
||||
if (file.mkdirs()) {
|
||||
boolean newFile = f.createNewFile();
|
||||
if (!newFile) {
|
||||
throw new IOException(outPutPath + "文件创建失败");
|
||||
}
|
||||
}
|
||||
}
|
||||
Thumbnails.of(inputStream).forceSize(100, 120).toFile(f);
|
||||
InputStream fileInputStream = Files.newInputStream(f.toPath());
|
||||
imageStr = "data:image/" + manager.getImageFileType() + ";base64," + Base64.getEncoder().encodeToString(IOUtils.toByteArray(fileInputStream));
|
||||
// 删除文件
|
||||
f.delete();
|
||||
} catch (IOException e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
return imageStr;
|
||||
}
|
||||
|
||||
|
||||
public String getMarriage() {
|
||||
if (StringUtils.isBlank(marriage)) {
|
||||
return "未婚";
|
||||
}
|
||||
switch (marriage) {
|
||||
case "1":
|
||||
return "已婚";
|
||||
case "2":
|
||||
return "离异";
|
||||
case "0":
|
||||
default:
|
||||
return "未婚";
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,23 @@
|
||||
package com.engine.organization.entity.resume.po;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author:dxfeng
|
||||
* @createTime: 2022/12/29
|
||||
* @version: 1.0
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class PersonnelResumeTable {
|
||||
private String title;
|
||||
private List<PersonnelResumeColumn> columns;
|
||||
private List<List<PersonnelResumeColumn>> datas;
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
package com.engine.organization.entity.version;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class HrmDepartmentDto {
|
||||
|
||||
int id;
|
||||
String departmentmark;
|
||||
String departmentcode;
|
||||
String departmentname;
|
||||
String subcompanyid1;
|
||||
String supdepid;
|
||||
String bmfzr;
|
||||
String showorder;
|
||||
String canceled;
|
||||
|
||||
}
|
@ -0,0 +1,28 @@
|
||||
package com.engine.organization.entity.version;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
@Data
|
||||
public class HrmDepartmentVersion {
|
||||
|
||||
int id;
|
||||
Integer departmentId;
|
||||
String departmentMark;
|
||||
String departmentCode;
|
||||
String departmentName;
|
||||
Integer subCompanyId1;
|
||||
Integer supDepId;
|
||||
String bmfzr;
|
||||
Integer showOrder;
|
||||
Integer canceled;
|
||||
String description;
|
||||
String operator;
|
||||
Double version;
|
||||
Date operateTime;
|
||||
|
||||
String subcompanyname;
|
||||
String supDepName;
|
||||
String bmfzrName;
|
||||
}
|
@ -0,0 +1,25 @@
|
||||
package com.engine.organization.entity.version;
|
||||
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class HrmResourceDto {
|
||||
private Integer id;
|
||||
|
||||
private Integer departmentid;
|
||||
|
||||
private String dsporder;
|
||||
|
||||
private Integer subcompanyid1;
|
||||
|
||||
private Integer jobtitle;
|
||||
|
||||
private String mobile;
|
||||
|
||||
private String telephone;
|
||||
|
||||
private String managerid;
|
||||
|
||||
private String lastname;
|
||||
}
|
@ -0,0 +1,166 @@
|
||||
package com.engine.organization.entity.version;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
@Data
|
||||
public class HrmResourceVersion {
|
||||
|
||||
private Integer id;
|
||||
|
||||
private Integer resourceid;
|
||||
|
||||
private Date companystartdate;
|
||||
|
||||
private Integer companyworkyear;
|
||||
|
||||
private Date workstartdate;
|
||||
|
||||
private Integer workyear;
|
||||
|
||||
private Integer usekind;
|
||||
|
||||
private Integer jobcall;
|
||||
|
||||
private String accumfundaccount;
|
||||
|
||||
private String birthplace;
|
||||
|
||||
private String folk;
|
||||
|
||||
private String residentphone;
|
||||
|
||||
private String residentpostcode;
|
||||
|
||||
private String extphone;
|
||||
|
||||
private String managerstr;
|
||||
|
||||
private Integer status;
|
||||
|
||||
private String fax;
|
||||
|
||||
private String islabouunion;
|
||||
|
||||
private Integer weight;
|
||||
|
||||
private String tempresidentnumber;
|
||||
|
||||
private Date probationenddate;
|
||||
|
||||
private Integer countryid;
|
||||
|
||||
private Date passwdchgdate;
|
||||
|
||||
private String lloginid;
|
||||
|
||||
private Integer dsporder;
|
||||
|
||||
private Integer passwordstate;
|
||||
|
||||
private Integer accounttype;
|
||||
|
||||
private Integer belongto;
|
||||
|
||||
private String messagerurl;
|
||||
|
||||
private String accountname;
|
||||
|
||||
private String loginid;
|
||||
|
||||
private String password;
|
||||
|
||||
private String lastname;
|
||||
|
||||
private String sex;
|
||||
|
||||
private String birthday;
|
||||
|
||||
private Integer nationality;
|
||||
|
||||
private String maritalstatus;
|
||||
|
||||
private String telephone;
|
||||
|
||||
private String mobile;
|
||||
|
||||
private String mobilecall;
|
||||
|
||||
private String email;
|
||||
|
||||
private Integer locationid;
|
||||
|
||||
private String workroom;
|
||||
|
||||
private String homeaddress;
|
||||
|
||||
private String resourcetype;
|
||||
|
||||
private Date startdate;
|
||||
|
||||
private Date enddate;
|
||||
|
||||
private Integer jobtitle;
|
||||
|
||||
private String jobactivitydesc;
|
||||
|
||||
private Integer joblevel;
|
||||
|
||||
private Integer seclevel;
|
||||
|
||||
private Integer departmentid;
|
||||
|
||||
private Integer subcompanyid1;
|
||||
|
||||
private Integer costcenterid;
|
||||
|
||||
private Integer managerid;
|
||||
|
||||
private Integer assistantid;
|
||||
|
||||
private Integer bankid1;
|
||||
|
||||
private String accountid1;
|
||||
|
||||
private Integer resourceimageid;
|
||||
|
||||
private String certificatenum;
|
||||
|
||||
private String nativeplace;
|
||||
|
||||
private Integer educationlevel;
|
||||
|
||||
private Date bememberdate;
|
||||
|
||||
private Date bepartydate;
|
||||
|
||||
private String workcode;
|
||||
|
||||
private String regresidentplace;
|
||||
|
||||
private String healthinfo;
|
||||
|
||||
private String residentplace;
|
||||
|
||||
private String policy;
|
||||
|
||||
private String degree;
|
||||
|
||||
private String height;
|
||||
|
||||
private String classification;
|
||||
|
||||
private String description;
|
||||
|
||||
private String operator;
|
||||
|
||||
private Double version;
|
||||
|
||||
private Date operateTime;
|
||||
|
||||
String departmentname;
|
||||
String subcompanyname;
|
||||
String jobtitlename;
|
||||
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
package com.engine.organization.entity.version;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class HrmSubCompanyDto {
|
||||
|
||||
int id;
|
||||
String subcompanydesc;
|
||||
String subcompanycode;
|
||||
String subcompanyname;
|
||||
String supsubcomid;
|
||||
String showorder;
|
||||
String canceled;
|
||||
}
|
@ -0,0 +1,24 @@
|
||||
package com.engine.organization.entity.version;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
@Data
|
||||
public class HrmSubCompanyVersion {
|
||||
|
||||
Integer id;
|
||||
Integer subComId;
|
||||
String subCompanyDesc;
|
||||
String subCompanyCode;
|
||||
String subCompanyName;
|
||||
Integer supSubComId;
|
||||
Integer showOrder;
|
||||
Integer canceled;
|
||||
String description;
|
||||
String operator;
|
||||
Double version;
|
||||
Date operateTime;
|
||||
|
||||
String supSubComName;
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
package com.engine.organization.entity.version;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class VersionData {
|
||||
private String fieldId;
|
||||
private String fieldValue;
|
||||
}
|
@ -0,0 +1,20 @@
|
||||
package com.engine.organization.enums;
|
||||
|
||||
/**
|
||||
* @author:dxfeng
|
||||
* @createTime: 2022/12/06
|
||||
* @version: 1.0
|
||||
*/
|
||||
public enum HrmGroupEnum {
|
||||
HRM_BASIC(-1), HRM_PERSONAL(1), HRM_WORK(3), COMPANY(4), DEPARTMENT(5);
|
||||
|
||||
HrmGroupEnum(Integer groupType) {
|
||||
this.groupType = groupType;
|
||||
}
|
||||
|
||||
private Integer groupType;
|
||||
|
||||
public Integer getGroupType() {
|
||||
return groupType;
|
||||
}
|
||||
}
|
@ -1,51 +0,0 @@
|
||||
package com.engine.organization.mapper.hrmresource;
|
||||
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
/**
|
||||
* @description:
|
||||
* @author:dxfeng
|
||||
* @createTime: 2022/05/20
|
||||
* @version: 1.0
|
||||
*/
|
||||
public interface HrmResourceMapper {
|
||||
|
||||
/**
|
||||
* 获取最大ID
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
Long getMaxId();
|
||||
|
||||
Long getMaxShowOrder();
|
||||
|
||||
|
||||
/**
|
||||
* 根据ID查询姓名
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
String getLastNameById(@Param("id") Long id);
|
||||
|
||||
/**
|
||||
* 根据所选关键字段查询ID
|
||||
*
|
||||
* @param keyField
|
||||
* @param keyFieldValue
|
||||
* @return
|
||||
*/
|
||||
Long getIdByKeyField(@Param("keyField") String keyField, @Param("keyFieldValue") String keyFieldValue);
|
||||
|
||||
///**
|
||||
// * 根据所选关键字段,查询关键列
|
||||
// *
|
||||
// * @param keyField
|
||||
// * @return
|
||||
// */
|
||||
//List<JSONObject> getKeyMapByKetField(@Param("keyField") String keyField);
|
||||
|
||||
String getEcResourceId(@Param("jclResourceId") String jclResourceId);
|
||||
|
||||
Long getJclResourceId(@Param("ecResourceId") String ecResourceId);
|
||||
}
|
@ -1,61 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
||||
<mapper namespace="com.engine.organization.mapper.hrmresource.HrmResourceMapper">
|
||||
|
||||
<resultMap id="BaseResultMap" type="com.engine.organization.entity.hrmresource.po.HrmResourcePO">
|
||||
<result column="id" property="id"/>
|
||||
<result column="creator" property="creator"/>
|
||||
<result column="delete_type" property="deleteType"/>
|
||||
<result column="create_time" property="createTime"/>
|
||||
<result column="update_time" property="updateTime"/>
|
||||
</resultMap>
|
||||
|
||||
<!-- 表字段 -->
|
||||
<sql id="baseColumns">
|
||||
t
|
||||
.
|
||||
id
|
||||
, t.creator
|
||||
, t.delete_type
|
||||
, t.create_time
|
||||
, t.update_time
|
||||
</sql>
|
||||
|
||||
<select id="getMaxId" resultType="java.lang.Long">
|
||||
select max(id)
|
||||
from jcl_org_hrmresource
|
||||
</select>
|
||||
|
||||
<select id="getLastNameById" resultType="java.lang.String">
|
||||
select last_name
|
||||
from jcl_org_hrmresource
|
||||
where delete_type = 0
|
||||
and id = #{id}
|
||||
</select>
|
||||
<select id="getIdByKeyField" resultType="java.lang.Long">
|
||||
select id
|
||||
from jcl_org_hrmresource
|
||||
where delete_type = 0
|
||||
and ${keyField} = #{keyFieldValue}
|
||||
</select>
|
||||
<select id="getEcResourceId" resultType="java.lang.String">
|
||||
select a.id
|
||||
from hrmresource a
|
||||
inner join jcl_org_hrmresource b on a.uuid = b.uuid
|
||||
where b.id = #{jclResourceId}
|
||||
</select>
|
||||
<select id="getJclResourceId" resultType="java.lang.Long">
|
||||
select a.id
|
||||
from jcl_org_hrmresource a
|
||||
inner join hrmresource b on a.uuid = b.uuid
|
||||
where b.id = #{ecResourceId}
|
||||
</select>
|
||||
<select id="getMaxShowOrder" resultType="java.lang.Long">
|
||||
select max(show_order)
|
||||
from jcl_org_hrmresource
|
||||
</select>
|
||||
<!-- <select id="getKeyMapByKetField" resultType="com.alibaba.fastjson.JSONObject">-->
|
||||
<!-- select id, account_type, certificate_num, login_id, work_code, ${keyField}-->
|
||||
<!-- from jcl_org_hrmresource-->
|
||||
<!-- </select>-->
|
||||
</mapper>
|
@ -0,0 +1,20 @@
|
||||
package com.engine.organization.mapper.jclimport;
|
||||
|
||||
import com.engine.organization.entity.jclimport.po.HrmFormFieldPO;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author:dxfeng
|
||||
* @createTime: 2022/12/06
|
||||
* @version: 1.0
|
||||
*/
|
||||
public interface ImportMapper {
|
||||
|
||||
List<HrmFormFieldPO> getImportFields(@Param("languageId") Integer languageId, @Param("groupType") Integer groupType);
|
||||
|
||||
List<HrmFormFieldPO> getImportFieldInfo(@Param("languageId") Integer languageId, @Param("groupType") Integer groupType, @Param("labelName") String labelName);
|
||||
|
||||
List<String> getResourceExceptedFields();
|
||||
}
|
@ -0,0 +1,47 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
||||
<mapper namespace="com.engine.organization.mapper.jclimport.ImportMapper">
|
||||
|
||||
|
||||
<select id="getImportFields" resultType="com.engine.organization.entity.jclimport.po.HrmFormFieldPO">
|
||||
select a.fieldid, a.fieldname, b.labelname, a.issystem, a.ismand
|
||||
from hrm_formfield a
|
||||
inner join htmllabelinfo b on a.fieldlabel = b.indexid and b.languageid = #{languageId}
|
||||
inner join hrm_fieldgroup c on a.groupid = c.id
|
||||
where a.fieldhtmltype != '6' and c.grouptype = #{groupType}
|
||||
and a.isuse = 1
|
||||
</select>
|
||||
<select id="getImportFieldInfo" resultType="com.engine.organization.entity.jclimport.po.HrmFormFieldPO">
|
||||
select a.fieldid,
|
||||
a.fieldname,
|
||||
b.labelname,
|
||||
a.issystem,
|
||||
a.ismand,
|
||||
a.fielddbtype,
|
||||
a.fieldhtmltype,
|
||||
a.type,
|
||||
a.dmlurl
|
||||
from hrm_formfield a
|
||||
inner join htmllabelinfo b on a.fieldlabel = b.indexid and b.languageid = #{languageId}
|
||||
inner join hrm_fieldgroup c on a.groupid = c.id
|
||||
where a.fieldhtmltype != '6' and c.grouptype = #{groupType}
|
||||
and b.labelname = #{labelName}
|
||||
and a.isuse = 1
|
||||
</select>
|
||||
<select id="getResourceExceptedFields" resultType="java.lang.String">
|
||||
select FIELDNAME
|
||||
from cus_formdict
|
||||
where id in (select fieldid
|
||||
from cus_formfield
|
||||
where scope = 'HrmCustomFieldByInfoType'
|
||||
and scopeid = 3
|
||||
and dmlUrl in ('sequenceBrowser', 'schemeBrowser', 'LevelBrowser', 'gradeBrowser')
|
||||
union
|
||||
select fieldid
|
||||
from cus_formfield
|
||||
where scope = 'HrmCustomFieldByInfoType'
|
||||
and hrm_fieldlable = '职等职级'
|
||||
and scopeid = 3
|
||||
and dmlUrl = (select max(mainid) from mode_customtreedetail where tablename = 'v_jcl_zdzjs'))
|
||||
</select>
|
||||
</mapper>
|
@ -0,0 +1,81 @@
|
||||
package com.engine.organization.mapper.resource;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.engine.organization.entity.hrmresource.po.ResourcePO;
|
||||
import com.engine.organization.entity.hrmresource.param.SearchTemplateParam;
|
||||
import com.engine.organization.entity.hrmresource.po.SearchTemplatePO;
|
||||
import com.engine.organization.entity.resume.po.HrmFamilyInfoPO;
|
||||
import com.engine.organization.entity.resume.po.PersonnelResumePO;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Author weaver_cl
|
||||
* @Description:
|
||||
* @Date 2022/12/15
|
||||
* @Version V1.0
|
||||
**/
|
||||
public interface HrmResourceMapper {
|
||||
|
||||
List<ResourcePO> selectFilterDatas();
|
||||
|
||||
List<ResourcePO> listByFilter(@Param("resourcePO") ResourcePO resourcePO);
|
||||
|
||||
PersonnelResumePO getPersonnelResumeById(@Param("id") Integer id);
|
||||
|
||||
List<PersonnelResumePO> getPersonnelResumeList();
|
||||
|
||||
List<HrmFamilyInfoPO> getHrmFamilyInfoByUser(@Param("resourceId") Integer resourceId);
|
||||
|
||||
/**
|
||||
* 获取人员过滤后的人员信息
|
||||
*
|
||||
* @param subcompanyid1
|
||||
* @param departmentid
|
||||
* @param jobId
|
||||
* @param resourceId
|
||||
* @return
|
||||
*/
|
||||
List<ResourcePO> getPersonnelScreening(@Param("subCompanyIds") List<Integer> subcompanyid1, @Param("departmentIds") List<Integer> departmentid, @Param("jobIds") List<Long> jobId, @Param("resourceIds") List<Long> resourceId);
|
||||
|
||||
/**
|
||||
* 根据用户ID获取查询模板
|
||||
*
|
||||
* @param userId
|
||||
* @return
|
||||
*/
|
||||
List<SearchTemplateParam> getSearchTemplatesByUser(@Param("userId") Integer userId);
|
||||
|
||||
/**
|
||||
* 根据用户ID获取列定制模板
|
||||
*
|
||||
* @param userId
|
||||
* @return
|
||||
*/
|
||||
List<SearchTemplateParam> getCustomTemplatesByUser(@Param("userId") Integer userId);
|
||||
|
||||
SearchTemplatePO getSearchTemplateById(@Param("id") String id);
|
||||
|
||||
SearchTemplatePO getSearchTemplateByName(@Param("userId") Integer userId, @Param("name") String name);
|
||||
|
||||
SearchTemplatePO getCustomTemplateById(@Param("id") String id);
|
||||
|
||||
SearchTemplatePO getCustomTemplateByName(@Param("userId") Integer userId, @Param("name") String name);
|
||||
|
||||
SearchTemplatePO getUsedCustomTemplateByUser(@Param("userId") Integer userId);
|
||||
|
||||
Integer insertSearchTemplate(SearchTemplatePO templatePO);
|
||||
|
||||
Integer deleteSearchTemplate(@Param("id") Integer Id, @Param("userId") Integer userId);
|
||||
|
||||
Integer insertCustomTemplate(SearchTemplatePO templatePO);
|
||||
|
||||
Integer deleteCustomTemplate(@Param("id") Integer Id, @Param("userId") Integer userId);
|
||||
|
||||
List<JSONObject> queryAllResColumns(@Param("level") String level, @Param("grade") String grade);
|
||||
|
||||
String queryLabelName(@Param("fieldName") String fieldName, @Param("scopeId") String scopeId);
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,446 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
||||
<mapper namespace="com.engine.organization.mapper.resource.HrmResourceMapper">
|
||||
<resultMap id="HrmResourceMap" type="com.engine.organization.entity.hrmresource.po.ResourcePO">
|
||||
<result column="id" property="id"/>
|
||||
<result column="subcompanyid1" property="subcompanyid1"/>
|
||||
<result column="departmentid" property="departmentid"/>
|
||||
<result column="jobtitle" property="jobtitle"/>
|
||||
<result column="lastname" property="lastName"/>
|
||||
<result column="dspOrder" property="dspOrder"/>
|
||||
</resultMap>
|
||||
<resultMap id="SearchTemplateMap" type="com.engine.organization.entity.hrmresource.param.SearchTemplateParam">
|
||||
<result column="id" property="key"/>
|
||||
<result column="name" property="showname"/>
|
||||
<!-- <result column="selected" property="selected"/>-->
|
||||
</resultMap>
|
||||
|
||||
|
||||
<select id="selectFilterDatas" resultType="com.engine.organization.entity.hrmresource.po.ResourcePO">
|
||||
SELECT DISTINCT subcompanyid1, departmentid, jobtitle
|
||||
from hrmresource where status < 4
|
||||
</select>
|
||||
<select id="listByFilter" resultMap="HrmResourceMap">
|
||||
select id, subcompanyid1 , departmentid , jobtitle , lastname , dspOrder from hrmresource t
|
||||
where 1=1
|
||||
<include refid="likeSql"/>
|
||||
<if test="resourcePO.subcompanyid1 != null">
|
||||
and subcompanyid1 = #{resourcePO.subcompanyid1}
|
||||
</if>
|
||||
<if test="resourcePO.departmentid != null">
|
||||
and departmentid = #{resourcePO.departmentid}
|
||||
</if>
|
||||
<if test="resourcePO.jobtitle != null">
|
||||
and jobtitle = #{resourcePO.jobtitle}
|
||||
</if>
|
||||
</select>
|
||||
<select id="getPersonnelResumeById"
|
||||
resultType="com.engine.organization.entity.resume.po.PersonnelResumePO">
|
||||
select lastname,
|
||||
sex,
|
||||
birthday,
|
||||
resourceimageid as image,
|
||||
nativeplace,
|
||||
policy as politics,
|
||||
a.departmentname as department,
|
||||
maritalstatus as marriage,
|
||||
b.jobtitlename as jobTitle,
|
||||
companystartdate,
|
||||
workstartdate,
|
||||
certificatenum as idCard,
|
||||
residentplace as address,
|
||||
mobile as telephone,
|
||||
email
|
||||
from hrmresource h
|
||||
inner join hrmdepartment a on a.id = h.departmentid
|
||||
inner join hrmjobtitles b on b.id = h.jobtitle
|
||||
where h.id = #{id}
|
||||
</select>
|
||||
<select id="getPersonnelResumeList"
|
||||
resultType="com.engine.organization.entity.resume.po.PersonnelResumePO">
|
||||
select h.id,
|
||||
lastname,
|
||||
sex,
|
||||
birthday,
|
||||
resourceimageid as image,
|
||||
resourceimageid as imageId,
|
||||
nativeplace,
|
||||
policy as politics,
|
||||
a.departmentname as department,
|
||||
maritalstatus as marriage,
|
||||
b.jobtitlename as jobTitle,
|
||||
companystartdate,
|
||||
workstartdate,
|
||||
certificatenum as idCard,
|
||||
residentplace as address,
|
||||
mobile as telephone,
|
||||
email
|
||||
from hrmresource h
|
||||
inner join hrmdepartment a on a.id = h.departmentid
|
||||
inner join hrmjobtitles b on b.id = h.jobtitle
|
||||
where h.status < 4
|
||||
</select>
|
||||
<select id="getHrmFamilyInfoByUser" resultType="com.engine.organization.entity.resume.po.HrmFamilyInfoPO">
|
||||
select *
|
||||
from HrmFamilyInfo
|
||||
where resourceid = #{resourceId}
|
||||
</select>
|
||||
<select id="getPersonnelScreening" resultMap="HrmResourceMap">
|
||||
select t.id, t.subcompanyid1 , t.departmentid , t.jobtitle , t.lastname , t.dspOrder
|
||||
from hrmresource t inner join JCL_ORG_JOB a ON a.EC_COMPANY =t.SUBCOMPANYID1 AND a.EC_DEPARTMENT =t.DEPARTMENTID
|
||||
AND a.EC_JOBTITLE =t.JOBTITLE
|
||||
where 1 = 1
|
||||
<if test="subCompanyIds != null and subCompanyIds.size > 0">
|
||||
AND t.subcompanyid1 IN
|
||||
<foreach collection="subCompanyIds" open="(" item="subcompanyid1" separator="," close=")">
|
||||
#{subcompanyid1}
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="departmentIds != null and departmentIds.size > 0">
|
||||
AND t.departmentid IN
|
||||
<foreach collection="departmentIds" open="(" item="departmentid" separator="," close=")">
|
||||
#{departmentid}
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="jobIds != null and jobIds.size > 0">
|
||||
AND a.id IN
|
||||
<foreach collection="jobIds" open="(" item="jobId" separator="," close=")">
|
||||
#{jobId}
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="resourceIds != null and resourceIds.size > 0">
|
||||
AND t.id IN
|
||||
<foreach collection="resourceIds" open="(" item="resourceId" separator="," close=")">
|
||||
#{resourceId}
|
||||
</foreach>
|
||||
</if>
|
||||
</select>
|
||||
<select id="getSearchTemplatesByUser" resultMap="SearchTemplateMap">
|
||||
select id,
|
||||
name
|
||||
from jcl_org_search_template
|
||||
where creator = #{userId}
|
||||
</select>
|
||||
<select id="getSearchTemplateById"
|
||||
resultType="com.engine.organization.entity.hrmresource.po.SearchTemplatePO">
|
||||
select *
|
||||
from jcl_org_search_template
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<select id="getCustomTemplateById"
|
||||
resultType="com.engine.organization.entity.hrmresource.po.SearchTemplatePO">
|
||||
select *
|
||||
from jcl_org_custom_template
|
||||
where id = #{id}
|
||||
</select>
|
||||
<select id="getCustomTemplatesByUser"
|
||||
resultMap="SearchTemplateMap">
|
||||
select id,
|
||||
name
|
||||
from jcl_org_custom_template
|
||||
where creator = #{userId}
|
||||
</select>
|
||||
|
||||
<insert id="insertSearchTemplate" parameterType="com.engine.organization.entity.hrmresource.po.SearchTemplatePO"
|
||||
keyProperty="id"
|
||||
keyColumn="id" useGeneratedKeys="true">
|
||||
INSERT INTO JCL_ORG_SEARCH_TEMPLATE
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="creator != null">
|
||||
creator,
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
create_time,
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
update_time,
|
||||
</if>
|
||||
<if test="name != null">
|
||||
name,
|
||||
</if>
|
||||
<if test="basicFields != null">
|
||||
basic_fields,
|
||||
</if>
|
||||
<if test="personalFields != null">
|
||||
personal_fields,
|
||||
</if>
|
||||
<if test="workFields != null">
|
||||
work_fields,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="VALUES (" suffix=")" suffixOverrides=",">
|
||||
<if test="creator != null">
|
||||
#{creator},
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
#{createTime},
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
#{updateTime},
|
||||
</if>
|
||||
<if test="name != null">
|
||||
#{name},
|
||||
</if>
|
||||
<if test="basicFields != null">
|
||||
#{basicFields},
|
||||
</if>
|
||||
<if test="personalFields != null">
|
||||
#{personalFields},
|
||||
</if>
|
||||
<if test="workFields != null">
|
||||
#{workFields},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<insert id="insertSearchTemplate" parameterType="com.engine.organization.entity.hrmresource.po.SearchTemplatePO"
|
||||
databaseId="oracle">
|
||||
<selectKey keyProperty="id" resultType="int" order="AFTER">
|
||||
select JCL_ORG_SEARCH_TEMPLATE_ID.currval from dual
|
||||
</selectKey>
|
||||
INSERT INTO JCL_ORG_SEARCH_TEMPLATE
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="creator != null">
|
||||
creator,
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
create_time,
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
update_time,
|
||||
</if>
|
||||
<if test="name != null">
|
||||
name,
|
||||
</if>
|
||||
<if test="basicFields != null">
|
||||
basic_fields,
|
||||
</if>
|
||||
<if test="personalFields != null">
|
||||
personal_fields,
|
||||
</if>
|
||||
<if test="workFields != null">
|
||||
work_fields,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="VALUES (" suffix=")" suffixOverrides=",">
|
||||
<if test="creator != null">
|
||||
#{creator},
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
#{createTime},
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
#{updateTime},
|
||||
</if>
|
||||
<if test="name != null">
|
||||
#{name},
|
||||
</if>
|
||||
<if test="basicFields != null">
|
||||
#{basicFields},
|
||||
</if>
|
||||
<if test="personalFields != null">
|
||||
#{personalFields},
|
||||
</if>
|
||||
<if test="workFields != null">
|
||||
#{workFields},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<insert id="insertCustomTemplate" parameterType="com.engine.organization.entity.hrmresource.po.SearchTemplatePO"
|
||||
keyProperty="id"
|
||||
keyColumn="id" useGeneratedKeys="true">
|
||||
INSERT INTO JCL_ORG_CUSTOM_TEMPLATE
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="creator != null">
|
||||
creator,
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
create_time,
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
update_time,
|
||||
</if>
|
||||
<if test="name != null">
|
||||
name,
|
||||
</if>
|
||||
<if test="basicFields != null">
|
||||
basic_fields,
|
||||
</if>
|
||||
<if test="personalFields != null">
|
||||
personal_fields,
|
||||
</if>
|
||||
<if test="workFields != null">
|
||||
work_fields,
|
||||
</if>
|
||||
<if test="isused != null">
|
||||
isused,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="VALUES (" suffix=")" suffixOverrides=",">
|
||||
<if test="creator != null">
|
||||
#{creator},
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
#{createTime},
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
#{updateTime},
|
||||
</if>
|
||||
<if test="name != null">
|
||||
#{name},
|
||||
</if>
|
||||
<if test="basicFields != null">
|
||||
#{basicFields},
|
||||
</if>
|
||||
<if test="personalFields != null">
|
||||
#{personalFields},
|
||||
</if>
|
||||
<if test="workFields != null">
|
||||
#{workFields},
|
||||
</if>
|
||||
<if test="isused != null">
|
||||
#{isused},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<insert id="insertCustomTemplate" parameterType="com.engine.organization.entity.hrmresource.po.SearchTemplatePO"
|
||||
databaseId="oracle">
|
||||
<selectKey keyProperty="id" resultType="int" order="AFTER">
|
||||
select JCL_ORG_CUSTOM_TEMPLATE_ID.currval from dual
|
||||
</selectKey>
|
||||
INSERT INTO JCL_ORG_CUSTOM_TEMPLATE
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="creator != null">
|
||||
creator,
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
create_time,
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
update_time,
|
||||
</if>
|
||||
<if test="name != null">
|
||||
name,
|
||||
</if>
|
||||
<if test="basicFields != null">
|
||||
basic_fields,
|
||||
</if>
|
||||
<if test="personalFields != null">
|
||||
personal_fields,
|
||||
</if>
|
||||
<if test="workFields != null">
|
||||
work_fields,
|
||||
</if>
|
||||
<if test="isused != null">
|
||||
isused,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="VALUES (" suffix=")" suffixOverrides=",">
|
||||
<if test="creator != null">
|
||||
#{creator},
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
#{createTime},
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
#{updateTime},
|
||||
</if>
|
||||
<if test="name != null">
|
||||
#{name},
|
||||
</if>
|
||||
<if test="basicFields != null">
|
||||
#{basicFields},
|
||||
</if>
|
||||
<if test="personalFields != null">
|
||||
#{personalFields},
|
||||
</if>
|
||||
<if test="workFields != null">
|
||||
#{workFields},
|
||||
</if>
|
||||
<if test="isused != null">
|
||||
#{isused},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<delete id="deleteSearchTemplate">
|
||||
delete
|
||||
from jcl_org_search_template
|
||||
where id = #{id}
|
||||
and creator = #{userId}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteCustomTemplate">
|
||||
delete
|
||||
from jcl_org_custom_template
|
||||
where id = #{id}
|
||||
and creator = #{userId}
|
||||
</delete>
|
||||
|
||||
<sql id="likeSql">
|
||||
<if test="resourcePO.lastName != null and resourcePO.lastName != ''">
|
||||
AND t.lastname like CONCAT('%',#{resourcePO.lastName},'%')
|
||||
</if>
|
||||
</sql>
|
||||
<sql id="likeSql" databaseId="oracle">
|
||||
<if test="resourcePO.lastName != null and resourcePO.lastName != ''">
|
||||
AND t.lastname like '%'||#{resourcePO.lastName}||'%'
|
||||
</if>
|
||||
</sql>
|
||||
<sql id="likeSql" databaseId="postgresql">
|
||||
<if test="resourcePO.lastName != null and resourcePO.lastName != ''">
|
||||
AND t.lastname like '%'||#{resourcePO.lastName}||'%'
|
||||
</if>
|
||||
</sql>
|
||||
<sql id="likeSql" databaseId="sqlserver">
|
||||
<if test="resourcePO.lastName != null and resourcePO.lastName != ''">
|
||||
AND t.lastname like '%'+#{resourcePO.lastName}+'%'
|
||||
</if>
|
||||
</sql>
|
||||
|
||||
<select id="queryAllResColumns" parameterType="java.lang.String" resultType="com.alibaba.fastjson.JSONObject">
|
||||
select a.fieldid, a.fieldname, b.labelname, a.issystem, a.ismand
|
||||
from hrm_formfield a
|
||||
inner join htmllabelinfo b on a.fieldlabel = b.indexid and b.languageid = 7
|
||||
</select>
|
||||
<select id="getSearchTemplateByName"
|
||||
resultType="com.engine.organization.entity.hrmresource.po.SearchTemplatePO">
|
||||
select *
|
||||
from jcl_org_search_template
|
||||
where creator = #{userId}
|
||||
and name = #{name}
|
||||
</select>
|
||||
<select id="getCustomTemplateByName"
|
||||
resultType="com.engine.organization.entity.hrmresource.po.SearchTemplatePO">
|
||||
select *
|
||||
from jcl_org_custom_template
|
||||
where creator = #{userId}
|
||||
and name = #{name}
|
||||
</select>
|
||||
|
||||
<select id="queryLabelName" parameterType="java.lang.String" resultType="java.lang.String">
|
||||
select b.LABELNAME
|
||||
from hrm_formfield a
|
||||
inner join htmllabelinfo b on a.fieldlabel = b.indexid
|
||||
where a.FIELDNAME = #{fieldName}
|
||||
and b.LANGUAGEID = '7'
|
||||
union all
|
||||
SELECT t1.hrm_fieldlable as labelname
|
||||
FROM cus_formfield t1,
|
||||
cus_formdict t2
|
||||
WHERE t1.fieldid = t2.id
|
||||
AND t1.scope = 'HrmCustomFieldByInfoType'
|
||||
and t1.SCOPEID = #{scopeId}
|
||||
and t2.fieldname = #{fieldName}
|
||||
</select>
|
||||
<select id="getUsedCustomTemplateByUser"
|
||||
resultType="com.engine.organization.entity.hrmresource.po.SearchTemplatePO">
|
||||
select *
|
||||
from jcl_org_custom_template
|
||||
where ISUSED = 1
|
||||
and creator = #{userId}
|
||||
</select>
|
||||
|
||||
</mapper>
|
@ -0,0 +1,39 @@
|
||||
package com.engine.organization.mapper.resource;
|
||||
|
||||
import com.engine.organization.entity.hrmresource.po.JclOrgCustomTemplatePO;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author Mlin
|
||||
* @description 针对表【jcl_org_custom_template】的数据库操作Mapper
|
||||
* @createDate 2023-01-12 10:28:52
|
||||
* @Entity com.engine.organization.entity.hrmresource.po.JclOrgCustomTemplate
|
||||
*/
|
||||
public interface JclOrgCustomTemplateMapper {
|
||||
|
||||
int deleteByPrimaryKey(Long id);
|
||||
|
||||
int insert(JclOrgCustomTemplatePO record);
|
||||
|
||||
int insertSelective(JclOrgCustomTemplatePO record);
|
||||
|
||||
JclOrgCustomTemplatePO selectByPrimaryKey(Long id);
|
||||
|
||||
int updateByPrimaryKeySelective(JclOrgCustomTemplatePO record);
|
||||
|
||||
int updateByPrimaryKey(JclOrgCustomTemplatePO record);
|
||||
|
||||
List<JclOrgCustomTemplatePO> listAll();
|
||||
|
||||
List<Long> listAllId();
|
||||
|
||||
int deleteByIds(@Param("ids") Collection<Long> ids);
|
||||
|
||||
int updateUsed(@Param("isused")String isused,@Param("id") String id,@Param("creator") String creator);
|
||||
|
||||
JclOrgCustomTemplatePO queryIsusedTemp(@Param("isused")String isused,@Param("creator") String creator);
|
||||
|
||||
}
|
@ -0,0 +1,150 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.engine.organization.mapper.resource.JclOrgCustomTemplateMapper">
|
||||
|
||||
<resultMap id="BaseResultMap" type="com.engine.organization.entity.hrmresource.po.JclOrgCustomTemplatePO">
|
||||
<id property="id" column="id" jdbcType="INTEGER"/>
|
||||
<result property="name" column="name" jdbcType="VARCHAR"/>
|
||||
<result property="basicFields" column="basic_fields" jdbcType="VARCHAR"/>
|
||||
<result property="personalFields" column="personal_fields" jdbcType="VARCHAR"/>
|
||||
<result property="workFields" column="work_fields" jdbcType="VARCHAR"/>
|
||||
<result property="isused" column="isused" jdbcType="INTEGER"/>
|
||||
<result property="creator" column="creator" jdbcType="INTEGER"/>
|
||||
<result property="createTime" column="create_time" jdbcType="DATE"/>
|
||||
<result property="updateTime" column="update_time" jdbcType="DATE"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
id,name,basic_fields,
|
||||
personal_fields,work_fields,isused,
|
||||
creator,create_time,update_time
|
||||
</sql>
|
||||
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from jcl_org_custom_template
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</select>
|
||||
<select id="listAll" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from jcl_org_custom_template order by id
|
||||
</select>
|
||||
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
|
||||
delete from jcl_org_custom_template
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</delete>
|
||||
<insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.engine.organization.entity.hrmresource.po.JclOrgCustomTemplatePO" useGeneratedKeys="true">
|
||||
insert into jcl_org_custom_template
|
||||
(name,basic_fields
|
||||
,personal_fields,work_fields,isused
|
||||
,creator,create_time,update_time
|
||||
)
|
||||
values (#{name,jdbcType=VARCHAR},#{basicFields,jdbcType=VARCHAR}
|
||||
,#{personalFields,jdbcType=VARCHAR},#{workFields,jdbcType=VARCHAR},#{isused,jdbcType=INTEGER}
|
||||
,#{creator,jdbcType=INTEGER},#{createTime,jdbcType=DATE},#{updateTime,jdbcType=DATE}
|
||||
)
|
||||
</insert>
|
||||
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.engine.organization.entity.hrmresource.po.JclOrgCustomTemplatePO" useGeneratedKeys="true">
|
||||
insert into jcl_org_custom_template
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="name != null">name,</if>
|
||||
<if test="basicFields != null">basic_fields,</if>
|
||||
<if test="personalFields != null">personal_fields,</if>
|
||||
<if test="workFields != null">work_fields,</if>
|
||||
<if test="isused != null">isused,</if>
|
||||
<if test="creator != null">creator,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id,jdbcType=INTEGER},</if>
|
||||
<if test="name != null">#{name,jdbcType=VARCHAR},</if>
|
||||
<if test="basicFields != null">#{basicFields,jdbcType=VARCHAR},</if>
|
||||
<if test="personalFields != null">#{personalFields,jdbcType=VARCHAR},</if>
|
||||
<if test="workFields != null">#{workFields,jdbcType=VARCHAR},</if>
|
||||
<if test="isused != null">#{isused,jdbcType=INTEGER},</if>
|
||||
<if test="creator != null">#{creator,jdbcType=INTEGER},</if>
|
||||
<if test="createTime != null">#{createTime,jdbcType=DATE},</if>
|
||||
<if test="updateTime != null">#{updateTime,jdbcType=DATE},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.engine.organization.entity.hrmresource.po.JclOrgCustomTemplatePO">
|
||||
update jcl_org_custom_template
|
||||
<set>
|
||||
<if test="name != null">
|
||||
name = #{name,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="basicFields != null">
|
||||
basic_fields = #{basicFields,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="personalFields != null">
|
||||
personal_fields = #{personalFields,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="workFields != null">
|
||||
work_fields = #{workFields,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="isused != null">
|
||||
isused = #{isused,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="creator != null">
|
||||
creator = #{creator,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
create_time = #{createTime,jdbcType=DATE},
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
update_time = #{updateTime,jdbcType=DATE},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.engine.organization.entity.hrmresource.po.JclOrgCustomTemplatePO">
|
||||
update jcl_org_custom_template
|
||||
set
|
||||
name = #{name,jdbcType=VARCHAR},
|
||||
basic_fields = #{basicFields,jdbcType=VARCHAR},
|
||||
personal_fields = #{personalFields,jdbcType=VARCHAR},
|
||||
work_fields = #{workFields,jdbcType=VARCHAR},
|
||||
isused = #{isused,jdbcType=INTEGER},
|
||||
creator = #{creator,jdbcType=INTEGER},
|
||||
create_time = #{createTime,jdbcType=DATE},
|
||||
update_time = #{updateTime,jdbcType=DATE}
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
|
||||
<select id="listAllId" resultType="java.lang.Long">
|
||||
select t.id from jcl_org_custom_template t
|
||||
</select>
|
||||
|
||||
<delete id="deleteByIds">
|
||||
delete from jcl_org_custom_template where id in
|
||||
<foreach collection="ids" open="(" item="id" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
<update id="updateUsed" parameterType="java.lang.String">
|
||||
update JCL_ORG_CUSTOM_TEMPLATE set isused = #{isused}
|
||||
<where>
|
||||
<if test="id !=null">
|
||||
id = #{id}
|
||||
</if>
|
||||
<if test="creator !=null">
|
||||
and creator = #{creator}
|
||||
</if>
|
||||
</where>
|
||||
</update>
|
||||
|
||||
<select id="queryIsusedTemp" parameterType="java.lang.String" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from JCL_ORG_CUSTOM_TEMPLATE t where t.isused = #{isused} and t.creator = #{creator}
|
||||
</select>
|
||||
|
||||
</mapper>
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue