|
|
@ -9,6 +9,8 @@ import com.yxt.anrui.oa.biz.oaform.FormCommon; |
|
|
|
import com.yxt.anrui.oa.biz.oaform.OaForm; |
|
|
|
import com.yxt.anrui.oa.biz.oaform.OaFormRuleEnum; |
|
|
|
import com.yxt.anrui.oa.biz.oaform.OaFormService; |
|
|
|
import com.yxt.anrui.oa.biz.oaform.flowable.BusinessVariablesDto; |
|
|
|
import com.yxt.anrui.oa.biz.oaform.flowable.CompleteDto; |
|
|
|
import com.yxt.anrui.oa.biz.oaform.flowable.SubmitDto; |
|
|
|
import com.yxt.anrui.oa.biz.oaform.flowable.TaskDto; |
|
|
|
import com.yxt.anrui.oa.feign.flowable.flow.ProcDefEnum; |
|
|
@ -58,6 +60,8 @@ public class HrHireApplyService extends MybatisBaseService<HrHireApplyMapper, Hr |
|
|
|
return rb.setMsg("该申请不存在"); |
|
|
|
} |
|
|
|
OaForm oaForm = oaFormService.fetchBySid(sid); |
|
|
|
hrHireApplyVo.setTaskId(oaForm.getTaskId()); |
|
|
|
hrHireApplyVo.setProcInsId(oaForm.getProcInstId()); |
|
|
|
//根据部门sid获取orgPath并赋值
|
|
|
|
SysOrganizationVo organizationVo = sysOrganizationFeign.fetchBySid(oaForm.getDeptSid()).getData(); |
|
|
|
String orgSidPath = organizationVo.getOrgSidPath(); |
|
|
@ -155,6 +159,21 @@ public class HrHireApplyService extends MybatisBaseService<HrHireApplyMapper, Hr |
|
|
|
return oaFormService.reject(dto); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 办理(同意) |
|
|
|
* |
|
|
|
* @param dto |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
public ResultBean complete(CompleteDto dto) { |
|
|
|
Map<String, Object> formVariables = dto.getFormVariables(); |
|
|
|
formVariables = getMap(formVariables, dto.getBusinessSid()); |
|
|
|
dto.setFormVariables(formVariables); |
|
|
|
BusinessVariablesDto businessVariablesDto = new BusinessVariablesDto(); |
|
|
|
BeanUtil.copyProperties(dto, businessVariablesDto); |
|
|
|
return oaFormService.complete(businessVariablesDto); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public Map<String, Object> getMap(Map<String, Object> formVariables, String sid) { |
|
|
|
Map<String, Object> appMap = new HashMap<>(); |
|
|
|