|
|
@ -158,15 +158,15 @@ public class OaMendApplyService extends MybatisBaseService<OaMendApplyMapper, Oa |
|
|
|
baseMapper.updateById(entity); |
|
|
|
} |
|
|
|
// 处理附件
|
|
|
|
saveFiles(sid, files, OaFileEnum.OAMENDAPPLY.getAttachType(),"图片"); |
|
|
|
saveFiles(sid, files, OaFileEnum.OAMENDAPPLY.getAttachType(), "图片"); |
|
|
|
|
|
|
|
return rb.success().setData(sid); |
|
|
|
} |
|
|
|
|
|
|
|
// 保存文件
|
|
|
|
private void saveFiles(String sid, List<String> files, String attachType,String fileType) { |
|
|
|
private void saveFiles(String sid, List<String> files, String attachType, String fileType) { |
|
|
|
files.removeAll(Collections.singleton(null)); |
|
|
|
oaAppendixService.saveFile(sid, files, attachType,fileType); |
|
|
|
oaAppendixService.saveFile(sid, files, attachType, fileType); |
|
|
|
} |
|
|
|
|
|
|
|
public OaMendApplyVo fetchDetailsVoBySid(String sid) { |
|
|
@ -294,6 +294,41 @@ public class OaMendApplyService extends MybatisBaseService<OaMendApplyMapper, Oa |
|
|
|
return oaFormService.getPreviousNodesForReject(query); |
|
|
|
} |
|
|
|
|
|
|
|
public ResultBean<String> getFlowOperateTitle(NodeQuery query) { |
|
|
|
ResultBean<String> rb = ResultBean.fireFail(); |
|
|
|
//0 上一环节 1下一环节
|
|
|
|
int next = query.getNext(); |
|
|
|
Map<String, Object> formVariables = query.getFormVariables(); |
|
|
|
//添加网关
|
|
|
|
// formVariables.put("", "");
|
|
|
|
//若有移动端,则需和移动端沟通具体参数,若没有删去即可。
|
|
|
|
Map<String, Object> appMap = new HashMap<>(); |
|
|
|
appMap.put("sid", query.getBusinessSid()); |
|
|
|
formVariables.put("app", appMap); |
|
|
|
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); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 具体申请设置网关参数的统一方法 |
|
|
|
*/ |
|
|
|