|
|
@ -173,36 +173,12 @@ public class HrHireApplyService extends MybatisBaseService<HrHireApplyMapper, Hr |
|
|
|
return oaFormService.complete(businessVariablesDto); |
|
|
|
} |
|
|
|
|
|
|
|
/* public ResultBean<String> getFlowOperateTitle(NodeQuery query) { |
|
|
|
ResultBean<String> rb = ResultBean.fireFail(); |
|
|
|
//0 上一环节 1下一环节
|
|
|
|
int next = query.getNext(); |
|
|
|
Map<String, Object> formVariables = query.getFormVariables(); |
|
|
|
formVariables = getMap(formVariables, query.getBusinessSid()); |
|
|
|
query.setFormVariables(formVariables); |
|
|
|
String data = ""; |
|
|
|
if (next == 0) { |
|
|
|
ResultBean<List<NodeVo>> resultBean = oaFormService.getPreviousNodesForReject(query); |
|
|
|
if (resultBean.getSuccess()) { |
|
|
|
resultBean.getData().removeAll(Collections.singleton(null)); |
|
|
|
data = resultBean.getData().get(0).getName(); |
|
|
|
} else { |
|
|
|
return rb.setMsg(resultBean.getMsg()); |
|
|
|
} |
|
|
|
} else if (next == 1) { |
|
|
|
ResultBean<List<NodeVo>> resultBean = oaFormService.getNextNodesForSubmit(query); |
|
|
|
if (resultBean.getSuccess()) { |
|
|
|
resultBean.getData().removeAll(Collections.singleton(null)); |
|
|
|
data = resultBean.getData().get(0).getName(); |
|
|
|
} else { |
|
|
|
return rb.setMsg(resultBean.getMsg()); |
|
|
|
} |
|
|
|
} else { |
|
|
|
return rb.setMsg("参数错误:next"); |
|
|
|
} |
|
|
|
return rb.success().setData(data); |
|
|
|
}*/ |
|
|
|
|
|
|
|
/** |
|
|
|
* 获取流程节点名称 |
|
|
|
* |
|
|
|
* @param query |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
public ResultBean<String> getFlowOperateTitle(NodeQuery query) { |
|
|
|
// 默认失败返回
|
|
|
|
ResultBean<String> rb = ResultBean.fireFail(); |
|
|
@ -259,7 +235,13 @@ public class HrHireApplyService extends MybatisBaseService<HrHireApplyMapper, Hr |
|
|
|
return null; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
* 网关参数组成 |
|
|
|
* |
|
|
|
* @param formVariables |
|
|
|
* @param sid |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
public Map<String, Object> getMap(Map<String, Object> formVariables, String sid) { |
|
|
|
Map<String, Object> appMap = new HashMap<>(); |
|
|
|
appMap.put("sid", sid); |
|
|
|