forked from integrated_whb/integrated_whb
动火作业加入可跳过步骤
parent
88efa3f0ea
commit
1716c4fa55
|
@ -144,8 +144,9 @@ public class HotworkServiceImpl implements HotworkService {
|
||||||
|
|
||||||
List<PageData> unsignedList = hotworkSignMapper.checkUnsigned(sign);//当前步骤未签名人列表
|
List<PageData> unsignedList = hotworkSignMapper.checkUnsigned(sign);//当前步骤未签名人列表
|
||||||
if((unsignedList == null || unsignedList.size() == 0) && pd.getString("APPLY_STATUS").equals("1")){//如果没有未签人 则跳转下一步
|
if((unsignedList == null || unsignedList.size() == 0) && pd.getString("APPLY_STATUS").equals("1")){//如果没有未签人 则跳转下一步
|
||||||
|
// PageData currentflow = getStep(work.get("TASK_ID"), work.get("STEP_ID"));
|
||||||
|
PageData currentflow = getCurrentFlow(work);
|
||||||
hotworkMapper.editStep(work);
|
hotworkMapper.editStep(work);
|
||||||
PageData currentflow = getStep(work.get("TASK_ID"), work.get("STEP_ID"));
|
|
||||||
|
|
||||||
//保存日志
|
//保存日志
|
||||||
saveLog(work,work.getString("USER_ID"),"1");
|
saveLog(work,work.getString("USER_ID"),"1");
|
||||||
|
@ -378,6 +379,19 @@ public class HotworkServiceImpl implements HotworkService {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private PageData getCurrentFlow(PageData work) throws Exception {
|
||||||
|
PageData flow = new PageData();
|
||||||
|
flow.put("TASK_ID", work.get("TASK_ID"));
|
||||||
|
flow.put("STEP_ID", work.get("STEP_ID"));
|
||||||
|
flow = eightWorkTaskFlowMapper.getStep(flow);
|
||||||
|
if("1".equals(flow.get("CAN_SKIP")) && (work.get(flow.get("NEXT_ACTOR_FIELD")) == null || work.get(flow.get("NEXT_ACTOR_FIELD")).equals(""))){
|
||||||
|
work.put("STEP_ID", flow.get("NEXT_STEP_ID"));
|
||||||
|
return getCurrentFlow(work);
|
||||||
|
}else{
|
||||||
|
return flow;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private PageData getStep(Object TASK_ID, Object STEP_ID) throws Exception {
|
private PageData getStep(Object TASK_ID, Object STEP_ID) throws Exception {
|
||||||
PageData flow = new PageData();
|
PageData flow = new PageData();
|
||||||
flow.put("TASK_ID", TASK_ID);
|
flow.put("TASK_ID", TASK_ID);
|
||||||
|
|
|
@ -56,7 +56,8 @@
|
||||||
<select id="getStep" parameterType="pd" resultType="pd" >
|
<select id="getStep" parameterType="pd" resultType="pd" >
|
||||||
select
|
select
|
||||||
<include refid="Field"></include>,
|
<include refid="Field"></include>,
|
||||||
n.ACTOR_FIELD as NEXT_ACTOR_FIELD
|
n.ACTOR_FIELD as NEXT_ACTOR_FIELD,
|
||||||
|
n.CAN_SKIP
|
||||||
from
|
from
|
||||||
<include refid="tableName"></include> f
|
<include refid="tableName"></include> f
|
||||||
left join
|
left join
|
||||||
|
|
Loading…
Reference in New Issue