Commit 9d80eb5c by lal

提交

parent e8b25718
package cn.timer.api.controller.kqgl.service;
import cn.timer.api.dto.kqmk.AttEvectionApprovalDto;
import cn.timer.api.dto.kqmk.AttLeaveApprovalDto;
import cn.timer.api.dto.kqmk.AttOvertimeApprovalDto;
import cn.timer.api.dto.kqmk.AttRepairApprovalDto;
public interface KqglService {
/**
* @param leaveapproval
* @return
*/
boolean attleaveapproval(AttLeaveApprovalDto leaveappr);
boolean attovertimeapproval(AttOvertimeApprovalDto overappr);
boolean attevectionapproval(AttEvectionApprovalDto evecappr);
boolean attrepairapproval(AttRepairApprovalDto repaappr);
}
package cn.timer.api.controller.kqgl.service;
import org.springframework.stereotype.Service;
import cn.timer.api.dto.kqmk.AttEvectionApprovalDto;
import cn.timer.api.dto.kqmk.AttLeaveApprovalDto;
import cn.timer.api.dto.kqmk.AttOvertimeApprovalDto;
import cn.timer.api.dto.kqmk.AttRepairApprovalDto;
@Service
public class KqglServiceImpl implements KqglService {
/**
* 考勤请假审批
*/
@Override
public boolean attleaveapproval(AttLeaveApprovalDto leaveappr) {
return true;
}
/**
* 考勤加班审批
*/
@Override
public boolean attovertimeapproval(AttOvertimeApprovalDto overappr) {
return true;
}
/**
* 考勤出差外出审批
*/
@Override
public boolean attevectionapproval(AttEvectionApprovalDto evecappr) {
return true;
}
/**
* 考勤补卡审批
*/
@Override
public boolean attrepairapproval(AttRepairApprovalDto repaappr) {
return true;
}
}
package cn.timer.api.dto.kqmk;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* @author 考勤出差外出审批
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class AttEvectionApprovalDto {
@ApiModelProperty(value = "出差外出id", example = "")
private int evectionid;
@ApiModelProperty(value = "开始时间", example = "时间戳")
private long starttime;
@ApiModelProperty(value = "结束时间", example = "时间戳")
private long endtime;
@ApiModelProperty(value = "时长", example = "")
private double duration;
@ApiModelProperty(value = "类型", example = "1:出差;2:外出")
private int evectiontype;
}
package cn.timer.api.dto.kqmk;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* @author 考勤请假审批
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class AttLeaveApprovalDto {
@ApiModelProperty(value = "请假id", example = "")
private int leaveid;
@ApiModelProperty(value = "请假类型", example = "具体传ID")
private int leavetype;
@ApiModelProperty(value = "开始时间", example = "时间戳")
private long starttime;
@ApiModelProperty(value = "结束时间", example = "时间戳")
private long endtime;
@ApiModelProperty(value = "时长(分钟)", example = "")
private double duration;
}
package cn.timer.api.dto.kqmk;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* @author 考勤加班审批
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class AttOvertimeApprovalDto {
@ApiModelProperty(value = "加班id", example = "")
private int overtimeid;
@ApiModelProperty(value = "加班类型", example = "具体传ID")
private int overtimetype;
@ApiModelProperty(value = "开始时间", example = "时间戳")
private long starttime;
@ApiModelProperty(value = "结束时间", example = "时间戳")
private long endtime;
@ApiModelProperty(value = "时长(分钟)", example = "")
private double duration;
@ApiModelProperty(value = "加班补偿方式", example = "1:转调休;2:转加班费;3:转调休或加班费")
private int compensate;
}
package cn.timer.api.dto.kqmk;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* @author 考勤补卡审批
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class AttRepairApprovalDto {
@ApiModelProperty(value = "补卡审批ID", example = "")
private int repairid;
@ApiModelProperty(value = "补卡时间", example = "时间戳")
private long cardrepltime;
@ApiModelProperty(value = "", example = "1:上午;2:下午")
private int cardreplperiod;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment