|
|
@ -972,7 +972,7 @@ public class ScmApplyInboundService extends MybatisBaseService<ScmApplyInboundMa |
|
|
|
return baseMapper.selectNum(bill); |
|
|
|
} |
|
|
|
|
|
|
|
public ResultBean cancal(String sid) { |
|
|
|
public ResultBean cancal(String sid,String cancalRemarks) { |
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
ScmApplyInbound scmApplyInbound = fetchBySid(sid); |
|
|
|
if ("已办结".equals(scmApplyInbound.getNodeState())) { |
|
|
@ -989,11 +989,13 @@ public class ScmApplyInboundService extends MybatisBaseService<ScmApplyInboundMa |
|
|
|
return rb.setMsg(resultBean.getMsg()); |
|
|
|
} |
|
|
|
Map<String, Object> map = BeanUtil.beanToMap(resultBean.getData()); |
|
|
|
map.put("cancalRemarks",cancalRemarks); |
|
|
|
updateFlowFiled(map); |
|
|
|
return rb.success().setData(resultBean.getData()); |
|
|
|
} else { |
|
|
|
scmApplyInbound.setNodeState("终止"); |
|
|
|
scmApplyInbound.setTaskDefKey("Event_end"); |
|
|
|
scmApplyInbound.setCancalRemarks(cancalRemarks); |
|
|
|
baseMapper.updateById(scmApplyInbound); |
|
|
|
} |
|
|
|
return rb.success(); |
|
|
|