You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
package com.engine.organization.service.impl;
|
|
|
|
|
|
|
|
import com.engine.core.impl.Service;
|
|
|
|
import com.engine.organization.entity.staff.param.StaffOutParam;
|
|
|
|
import com.engine.organization.service.StaffOutService;
|
|
|
|
import com.engine.organization.util.OrganizationAssert;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @Author liang.cheng
|
|
|
|
* @Date 2023/9/1 10:27 AM
|
|
|
|
* @Description: 编制外部调用
|
|
|
|
* @Version 1.0
|
|
|
|
*/
|
|
|
|
public class StaffOutServiceImpl extends Service implements StaffOutService {
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public Integer changeStaff(StaffOutParam staffOutParam) {
|
|
|
|
OrganizationAssert.notNull(staffOutParam.getNum(),"调整数量不能为空!");
|
|
|
|
OrganizationAssert.notNull(staffOutParam.getPlanId(),"未指定所属编制方案!");
|
|
|
|
FunctionOutStaffServiceImpl functionFactory = new FunctionOutStaffServiceImpl();
|
|
|
|
return functionFactory.actuator(staffOutParam.getType(), staffOutParam);
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public Integer transactionOnJob(StaffOutParam staffOutParam) {
|
|
|
|
FunctionOutStaffServiceImpl functionFactory = new FunctionOutStaffServiceImpl();
|
|
|
|
return functionFactory.actuator(staffOutParam.getType(), staffOutParam);
|
|
|
|
}
|
|
|
|
}
|