|
@ -372,6 +372,7 @@ public class TbsCostApplyController { |
|
|
return R.error("费用申请处于未非审批状态!"); |
|
|
return R.error("费用申请处于未非审批状态!"); |
|
|
} |
|
|
} |
|
|
R<String> result = seeYonService.commonCommit(affairCommit,TbsSeeYonConst.COST_APPLY_FORM); |
|
|
R<String> result = seeYonService.commonCommit(affairCommit,TbsSeeYonConst.COST_APPLY_FORM); |
|
|
|
|
|
boolean isBackCommit = affairCommit.getState()==2; |
|
|
if(result.getStatus()==200){ |
|
|
if(result.getStatus()==200){ |
|
|
// 判断是否含有下个节点
|
|
|
// 判断是否含有下个节点
|
|
|
String flag = result.getData(); |
|
|
String flag = result.getData(); |
|
@ -383,12 +384,20 @@ public class TbsCostApplyController { |
|
|
tbsCostApplyService.updateById(apply); |
|
|
tbsCostApplyService.updateById(apply); |
|
|
return R.ok(); |
|
|
return R.ok(); |
|
|
}else if ("stop".equals(flag)){ |
|
|
}else if ("stop".equals(flag)){ |
|
|
|
|
|
if(isBackCommit){ |
|
|
|
|
|
TbsCostApply apply = new TbsCostApply(); |
|
|
|
|
|
apply.setId(costApply.getId()); |
|
|
|
|
|
apply.setChargeState(TbsCostApplyState.State_4_refused.getCode()); |
|
|
|
|
|
tbsCostApplyService.updateById(apply); |
|
|
|
|
|
return R.ok(); |
|
|
|
|
|
}else { |
|
|
TbsCostApply apply = new TbsCostApply(); |
|
|
TbsCostApply apply = new TbsCostApply(); |
|
|
apply.setId(costApply.getId()); |
|
|
apply.setId(costApply.getId()); |
|
|
apply.setChargeState(TbsCostApplyState.State_5_stop.getCode()); |
|
|
apply.setChargeState(TbsCostApplyState.State_5_stop.getCode()); |
|
|
tbsCostApplyService.updateById(apply); |
|
|
tbsCostApplyService.updateById(apply); |
|
|
tbsCostApplyService.releaseCost(costApply.getId(), 1); |
|
|
tbsCostApplyService.releaseCost(costApply.getId(), 1); |
|
|
return R.ok(); |
|
|
return R.ok(); |
|
|
|
|
|
} |
|
|
}else if ("next".equals(flag)){ |
|
|
}else if ("next".equals(flag)){ |
|
|
return R.ok(); |
|
|
return R.ok(); |
|
|
} |
|
|
} |
|
|