| | |
| | | FlowLevel = FlowLevel + 1; |
| | | } else { |
| | | CheckFlag = 2; |
| | | if (CheckFlag == 2) { |
| | | //应医院要求如果出现退回,直接退到发起者 |
| | | FlowLevel = 0; |
| | | } else { |
| | | RecordStatus = (FlowLevel + 1) * 2 - 1; |
| | | FlowLevel = (FlowLevel - 1); |
| | | if (FlowLevel < 0) { |
| | | FlowLevel = 0; |
| | | } |
| | | } |
| | | } |
| | | |
| | |
| | | @PutMapping |
| | | @RepeatSubmit |
| | | public AjaxResult edit(@RequestBody ServiceFund serviceFund) { |
| | | List<ServiceFund> infoByInfoIdList = serviceFundService.getInfoByInfoId(serviceFund.getId()); |
| | | for (ServiceFund sf : infoByInfoIdList) { |
| | | //如果等于100,说明已经走到医院财务那边了;财务那边取数据是从分享表取,所以,这里直接往分享表里添加数据就行了 |
| | | if (sf.getBackflowlevel() == 100 || sf.getBackflowlevel() == 199) { |
| | | ServiceFundShared serviceFundShared = DtoConversionUtils.sourceToTarget(serviceFund, ServiceFundShared.class); |
| | | serviceFundShared.setId(null); |
| | | serviceFundShared.setDel_flag(0); |
| | | fundSharedService.save(serviceFundShared); |
| | | |
| | | //将fund表的审核状态改成100 |
| | | sf.setBackflowlevel(100); |
| | | serviceFundService.updateById(sf); |
| | | return success(); |
| | | } else { |
| | | boolean bret = serviceFundService.updateById(serviceFund); |
| | | // if (bret) { |
| | | // addReiSharedDatd(serviceFund, 2); |
| | | // } |
| | | return toAjax(bret); |
| | | } |
| | | } |
| | | |
| | | return toAjax(false); |
| | | } |
| | | |
| | | /** |
| | | * 删除费用申请主 |