Commit 963d809b by tangzhaoqian Committed by chenzg

审批bug修复

parent 6beb7c58
......@@ -139,7 +139,7 @@ public class YgglMainEmp extends Model<YgglMainEmp> {
@ApiModelProperty(value="转正备注 ",example="转正备注")
private String zzRemark;
@ApiModelProperty(value="工作性质 0全职、1实习、2兼职、3劳务派遣、4劳务、5派遣、6外包、7退休返聘",example="101")
@ApiModelProperty(value="工作性质 0全职、1实习、2兼职、3劳务派遣、4劳务、5派遣、6外包、7退休返聘",example="101")
private Integer jobType;
@ApiModelProperty(value="员工状态 0试用、1正式、2离职中、3已离职",example="101")
......
......@@ -3,6 +3,7 @@ package cn.timer.api.utils.router.business;
import java.text.ParseException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import cn.hutool.core.convert.Convert;
import cn.hutool.core.util.ObjectUtil;
......@@ -18,7 +19,7 @@ import lombok.Builder;
* @author Tang
*
*/
@Builder
@Service
public class EvectionBusiness extends SpmkAssoBusiness {
@Autowired
......
package cn.timer.api.utils.router.business;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import cn.hutool.core.convert.Convert;
import cn.hutool.core.util.ObjectUtil;
......@@ -16,7 +17,7 @@ import lombok.Builder;
* @author Tang
*
*/
@Builder
@Service
public class GoOutBusiness extends SpmkAssoBusiness {
@Autowired
......
......@@ -3,6 +3,7 @@ package cn.timer.api.utils.router.business;
import java.text.ParseException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import cn.hutool.core.convert.Convert;
import cn.hutool.core.util.ObjectUtil;
......@@ -20,7 +21,7 @@ import lombok.Builder;
* @author Tang
*
*/
@Builder
@Service
public class LeaveBusiness extends SpmkAssoBusiness {
@Autowired
......
package cn.timer.api.utils.router.business;
import org.springframework.stereotype.Service;
import cn.hutool.core.util.ObjectUtil;
import cn.hutool.json.JSONObject;
import cn.timer.api.dto.spmk.FromData;
......@@ -11,7 +13,7 @@ import lombok.Builder;
* @author Tang
*
*/
@Builder
@Service
public class RecruitBusiness extends SpmkAssoBusiness {
@Override
......
......@@ -3,6 +3,7 @@ package cn.timer.api.utils.router.business;
import java.util.Date;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
......@@ -20,7 +21,7 @@ import lombok.Builder;
* @author Tang
*
*/
@Builder
@Service
public class RegularizationBusiness extends SpmkAssoBusiness {
@Autowired
......@@ -63,13 +64,13 @@ public class RegularizationBusiness extends SpmkAssoBusiness {
.build();
// 调 员工管理 业务
YgglMainEmp.builder()
.jobStatus(2)
.zzTime(ygzzDto.getZzTime())
.sjzzTime(new Date())
.zzRemark(ygzzDto.getZzRemark())
.build().update(new UpdateWrapper<YgglMainEmp>().lambda().eq(YgglMainEmp::getEmpNum, ygzzDto.getEmpNum()));
// ygglService.applicationRegularization(ygzzDto);
// YgglMainEmp.builder()
// .jobStatus(2)
// .zzTime(ygzzDto.getZzTime())
// .sjzzTime(new Date())
// .zzRemark(ygzzDto.getZzRemark())
// .build().update(new UpdateWrapper<YgglMainEmp>().lambda().eq(YgglMainEmp::getEmpNum, ygzzDto.getEmpNum()));
ygglService.applicationRegularization(ygzzDto);
}
}
......@@ -3,6 +3,7 @@ package cn.timer.api.utils.router.business;
import java.text.ParseException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import cn.hutool.core.convert.Convert;
import cn.hutool.core.util.ObjectUtil;
......@@ -18,7 +19,7 @@ import lombok.Builder;
* @author Tang
*
*/
@Builder
@Service
public class ReissueACardBusiness extends SpmkAssoBusiness {
@Autowired
......
......@@ -2,7 +2,10 @@ package cn.timer.api.utils.router.business;
import java.text.ParseException;
import org.springframework.beans.factory.annotation.Autowired;import cn.hutool.core.date.DateUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import cn.hutool.core.date.DateUtil;
import cn.hutool.core.util.ObjectUtil;
import cn.hutool.json.JSONObject;
import cn.timer.api.controller.yggl.service.YgglService;
......@@ -16,7 +19,7 @@ import lombok.Builder;
* @author Tang
*
*/
@Builder
@Service
public class ResignationBusiness extends SpmkAssoBusiness {
@Autowired
......
package cn.timer.api.utils.router.business;
import org.springframework.beans.factory.annotation.Autowired;
import cn.timer.api.utils.router.enums.ApproveEnum;
/**
......@@ -9,6 +11,25 @@ import cn.timer.api.utils.router.enums.ApproveEnum;
*/
public class SpmkAssoBusinessFactory {
@Autowired
private RegularizationBusiness regularizationBusiness;
@Autowired
private TransferPositionBusiness transferPositionBusiness;
@Autowired
private ResignationBusiness resignationBusiness;
@Autowired
private RecruitBusiness recruitBusiness;
@Autowired
private WorkOvertimeBusiness workOvertimeBusiness;
@Autowired
private LeaveBusiness leaveBusiness;
@Autowired
private EvectionBusiness evectionBusiness;
@Autowired
private GoOutBusiness goOutBusiness;
@Autowired
private ReissueACardBusiness reissueACardBusiness;
static SpmkAssoBusinessFactory factory;
public static SpmkAssoBusinessFactory getFactory() {
......@@ -23,31 +44,31 @@ public class SpmkAssoBusinessFactory {
case DEFAULT:
break;
case REGULARIZATION:
sat = RegularizationBusiness.builder().build();
sat = regularizationBusiness;
break;
case RESIGNATION:
sat = ResignationBusiness.builder().build();
sat = resignationBusiness;
break;
case TRANSFER_POSITION:
sat = TransferPositionBusiness.builder().build();
sat = transferPositionBusiness;
break;
case RECRUIT:
sat = RecruitBusiness.builder().build();
sat = recruitBusiness;
break;
case WORK_OVERTIME:
sat = WorkOvertimeBusiness.builder().build();
sat = workOvertimeBusiness;
break;
case LEAVE:
sat = LeaveBusiness.builder().build();
sat = leaveBusiness;
break;
case EVECTION:
sat = EvectionBusiness.builder().build();
sat = evectionBusiness;
break;
case GO_OUT:
sat = GoOutBusiness.builder().build();
sat = goOutBusiness;
break;
case REISSUE_A_CARD:
sat = ReissueACardBusiness.builder().build();
sat = reissueACardBusiness;
break;
default:
break;
......
package cn.timer.api.utils.router.business;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import cn.hutool.core.util.ObjectUtil;
import cn.hutool.json.JSONObject;
......@@ -14,7 +15,8 @@ import lombok.Builder;
* @author Tang
*
*/
@Builder
@Service
public class TransferPositionBusiness extends SpmkAssoBusiness {
@Autowired
......
......@@ -3,6 +3,7 @@ package cn.timer.api.utils.router.business;
import java.text.ParseException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import cn.hutool.core.convert.Convert;
import cn.hutool.core.util.ObjectUtil;
......@@ -18,7 +19,7 @@ import lombok.Builder;
* @author Tang
*
*/
@Builder
@Service
public class WorkOvertimeBusiness extends SpmkAssoBusiness {
@Autowired
......
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