RecruitBusiness.java 2.94 KB
Newer Older
1 2
package cn.timer.api.utils.router.business;

tangzhaoqian committed
3 4
import org.springframework.stereotype.Service;

tangzhaoqian committed
5
import cn.hutool.core.convert.Convert;
6
import cn.hutool.core.util.ObjectUtil;
7 8 9 10 11 12 13 14 15 16
import cn.hutool.json.JSONObject;
import cn.timer.api.dto.spmk.FromData;
import lombok.Builder;

/**
 * 招聘-业务
 * 
 * @author Tang
 *
 */
tangzhaoqian committed
17
@Service
18 19 20 21 22 23
public class RecruitBusiness extends SpmkAssoBusiness {

	@Override
	public void handleApprove(JSONObject jsonObj) {
		// TODO Auto-generated method stub
		// 发起人企业id
tangzhaoqian committed
24
		Integer orgCode = ObjectUtil.isNull(jsonObj.get("orgCode")) ? null : Convert.toInt(jsonObj.get("orgCode"));
25
		// 发起人id
tangzhaoqian committed
26
		Integer id = jsonObj.getInt("id");
27 28
		
		// 招聘部门
29
		String RecruitmentDept = ObjectUtil.isNull(jsonObj.get("__RecruitmentDept",FromData.class)) ? null : jsonObj.get("__RecruitmentDept",FromData.class).getValue();
30
		// 招聘职位
31
		String RecruitmentPost = ObjectUtil.isNull(jsonObj.get("__RecruitmentPost",FromData.class)) ? null : jsonObj.get("__RecruitmentPost",FromData.class).getValue();
32
		// 工性性质
33
		String WorkingNature = ObjectUtil.isNull(jsonObj.get("__WorkingNature",FromData.class)) ? null : jsonObj.get("__WorkingNature",FromData.class).getValue();
34
		// 招聘人数
35
		String NumberOfRecruiters = ObjectUtil.isNull(jsonObj.get("__NumberOfRecruiters",FromData.class)) ? null : jsonObj.get("__NumberOfRecruiters",FromData.class).getValue();
36
		// 已在岗人数
37
		String NumberOfPeople = ObjectUtil.isNull(jsonObj.get("NumberOfPeople",FromData.class)) ? null : jsonObj.get("NumberOfPeople",FromData.class).getValue();
38
		// 招聘原因
39
		String RecruitmentReasons = ObjectUtil.isNull(jsonObj.get("RecruitmentReasons",FromData.class)) ? null : jsonObj.get("RecruitmentReasons",FromData.class).getValue();
40
		// 该岗位工作职责
41
		String operatingDuty = ObjectUtil.isNull(jsonObj.get("operatingDuty",FromData.class)) ? null : jsonObj.get("operatingDuty",FromData.class).getValue();
42
		// 招聘要求
43
		String RecruitmentRequirements = ObjectUtil.isNull(jsonObj.get("RecruitmentRequirements",FromData.class)) ? null : jsonObj.get("RecruitmentRequirements",FromData.class).getValue();
44
		// 薪酬上限
45
		String SalaryCap = ObjectUtil.isNull(jsonObj.get("SalaryCap",FromData.class)) ? null : jsonObj.get("SalaryCap",FromData.class).getValue();
46
		// 薪酬下限
47
		String TransferInDepartment = ObjectUtil.isNull(jsonObj.get("TransferInDepartment",FromData.class)) ? null : jsonObj.get("TransferInDepartment",FromData.class).getValue();
48
		// 生效日期
49
		String PayFloor = ObjectUtil.isNull(jsonObj.get("PayFloor",FromData.class)) ? null : jsonObj.get("PayFloor",FromData.class).getValue();
50
		// 备注
51
		String Remarks = ObjectUtil.isNull(jsonObj.get("Remarks",FromData.class)) ? null : jsonObj.get("Remarks",FromData.class).getValue();
52
		// 上传文件
53
		String UploadAttachment = ObjectUtil.isNull(jsonObj.get("UploadAttachment",FromData.class)) ? null : jsonObj.get("UploadAttachment",FromData.class).getValue();
54 55 56 57 58 59
		
		// 调 招聘管理 业务

	}

}