LeaveBusiness.java 1.2 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
package cn.timer.api.utils.router.business;

import cn.hutool.json.JSONObject;
import cn.timer.api.dto.spmk.FromData;
import lombok.Builder;

/**
 * 请假-业务
 * 
 * @author Tang
 *
 */
@Builder
public class LeaveBusiness extends SpmkAssoBusiness {

	@Override
	public void handleApprove(JSONObject jsonObj) {
		// TODO Auto-generated method stub
		// 发起人企业id
		String orgCode = jsonObj.get("orgCode",FromData.class).getValue();
		// 发起人id
		String id = jsonObj.get("id",FromData.class).getValue();
		// 发起人名称
		String initiator = jsonObj.get("initiator",FromData.class).getValue();
		
		// 请假类型
		String LeaveType = jsonObj.get("__LeaveType",FromData.class).getValue();
		// 开始时间
		String startTime = jsonObj.get("__startTime",FromData.class).getValue();
		// 结束时间
		String endTime = jsonObj.get("__endTime",FromData.class).getValue();
		// 时长
		String longTime = jsonObj.get("__longTime",FromData.class).getValue();
		// 请假事由
		String ReasonsForLeave = jsonObj.get("__ReasonsForLeave",FromData.class).getValue();
		// 上传文件
		String UploadAttachment = jsonObj.get("UploadAttachment",FromData.class).getValue();
		
		// 调 考勤管理 业务
	}

}