TransferPositionBusiness.java 1.8 KB
Newer Older
1 2
package cn.timer.api.utils.router.business;

3 4
import org.springframework.beans.factory.annotation.Autowired;

5
import cn.hutool.json.JSONObject;
6
import cn.timer.api.controller.zzgl.service.ZzglBmgwMService;
7
import cn.timer.api.dto.spmk.FromData;
8
import cn.timer.api.dto.zzgl.UpEmpDeptDto;
9 10 11 12 13 14 15 16 17 18
import lombok.Builder;

/**
 * 调岗-业务
 * @author Tang
 *
 */
@Builder
public class TransferPositionBusiness extends SpmkAssoBusiness {

19 20 21
	@Autowired
	ZzglBmgwMService zzglBmgwMService;
	
22 23 24 25
	@Override
	public void handleApprove(JSONObject jsonObj) {
		// TODO Auto-generated method stub
		// 发起人企业id
26
		Integer orgCode = Integer.parseInt(jsonObj.get("orgCode",FromData.class).getValue());
27
		// 发起人id
28
		Integer id = Integer.parseInt(jsonObj.get("id",FromData.class).getValue());
29 30 31 32 33 34 35 36
		// 发起人名称
		String initiator = jsonObj.get("initiator",FromData.class).getValue();
		
		// 申请人
		String applicant = jsonObj.get("__applicant",FromData.class).getValue();
		// 申请原因
		String ReasonForApplication = jsonObj.get("__ReasonForApplication",FromData.class).getValue();
		// 调入部门
37
		Integer TransferInDepartment = Integer.parseInt(jsonObj.get("__TransferInDepartment",FromData.class).getValue());
38 39 40 41 42 43 44 45 46
		// 调入岗位
		String TransferInPosition = jsonObj.get("__TransferInPosition",FromData.class).getValue();
		// 生效日期
		String effectiveDate = jsonObj.get("__effectiveDate",FromData.class).getValue();
		// 备注
		String Remarks = jsonObj.get("Remarks",FromData.class).getValue();
		// 上传文件
		String UploadAttachment = jsonObj.get("UploadAttachment",FromData.class).getValue();
		
47 48 49 50 51
		UpEmpDeptDto upEmpDeptDto = UpEmpDeptDto.builder()
				.dpetId(TransferInDepartment)
				.isdg(1)
				.build();
		
52
		// 调 员工管理 业务
53
		zzglBmgwMService.applicationTransferPosition(id, orgCode, upEmpDeptDto);
54 55 56
	}

}