| | |
| | | serviceFundflow.setCheckuserno(user.getUserName()); |
| | | serviceFundflow.setCheckusername(user.getNickName()); |
| | | serviceFundflow.setFundtype(2); |
| | | serviceFundflow.setCheckTime(new Date()); |
| | | serviceFundflow.setApplytype(serviceFund.getApplytype()); |
| | | serviceFundflow.setFlowconclusion(CheckFlag); |
| | | serviceFundflow.setFlowcontent("通过"); |
| | |
| | | serviceFundflow.setFundtype(2); |
| | | serviceFundflow.setApplytype(serviceFund.getApplytype()); |
| | | serviceFundflow.setFlowconclusion(CheckFlag); |
| | | serviceFundflow.setCheckTime(new Date()); |
| | | if (StringUtils.isNotBlank(checkFundVO.getFlowcontent())) { |
| | | serviceFundflow.setFlowcontent(checkFundVO.getFlowcontent()); |
| | | } else { |
| | |
| | | map.put("开户银行", serviceFunddetailShared.getDepositbank()); |
| | | map.put("卡号", serviceFunddetailShared.getBankcardno()); |
| | | map.put("收益人家属或专家", serviceFunddetailShared.getBeneficiaryname()); |
| | | map.put("税后金额", serviceFunddetailShared.getTaxamount()); |
| | | map.put("税后金额", serviceFunddetailShared.getTaxedamount()); |
| | | map.put("作废最终金额", null); |
| | | Long fpuuid = COUNTER.incrementAndGet(); |
| | | map.put("发票附件", fpuuid); |
| | | map.put("发票识别", null); |
| | | map.put("识别人", null); |
| | | map.put("税额", null); |
| | | map.put("税额", serviceFunddetailShared.getTaxamount()); |
| | | long qtuuid = COUNTER.incrementAndGet(); |
| | | map.put("其他附件", qtuuid); |
| | | map.put("项目编码", serviceFunddetailShared.getItemcode()); |
| | |
| | | formmain_0831.put("备注", null); |
| | | formmain_0831.put("财务审批", null); |
| | | formmain_0831.put("财务部负责人审批", getLastApprovalInfo(serviceFundflows, serviceFund.getFinancedirector())); |
| | | formmain_0831.put("办公室主任审批", getLastApprovalInfo(serviceFundflows, serviceFund.getOfficedirector())); |
| | | |
| | | // formmain_0831.put("办公室主任审批", "办公室主任审批", "审批人:周育成 & 审批时间:" + new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date()) + " & 审批结果:通过"); |
| | | if (serviceFund.getBackflowlevel() == 3) |
| | | formmain_0831.put("办公室主任审批", "审批人:周育成 & 审批时间:" + new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date()) + " & 审批结果:通过"); |
| | | else formmain_0831.put("办公室主任审批", getLastApprovalInfo(serviceFundflows, "周育成")); |
| | | |
| | | formmain_0831.put("业务副院长审批", serviceFund.getBusvicepresident()); |
| | | formmain_0831.put("财务副院长审批", serviceFund.getFinvicepresident()); |
| | | formmain_0831.put("中心负责人审批", serviceFund.getOpochecker()); |
| | |
| | | SimpleDateFormat sd = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); |
| | | return "审批人:" + managerName + " & 审批时间:" + sd.format(new Date()) + " & 审批结果:通过"; |
| | | } |
| | | |
| | | Optional<ServiceFundflow> lastApproval = serviceFundflows.stream().filter(flow -> managerName.contains(flow.getCheckusername())).max(Comparator.comparing(ServiceFundflow::getCreateTime)); |
| | | //去一下空格 |
| | | String mn = managerName.trim(); |
| | | Optional<ServiceFundflow> lastApproval = serviceFundflows.stream().filter(flow -> mn.trim().contains(flow.getCheckusername())).max(Comparator.comparing(ServiceFundflow::getCreateTime)); |
| | | |
| | | if (lastApproval.isPresent()) { |
| | | ServiceFundflow flow = lastApproval.get(); |
| | |
| | | serviceFundflow.setUpdateBy(serviceProcessVO.getCheckusername()); |
| | | serviceFundflow.setCheckusername(serviceProcessVO.getCheckusername()); |
| | | serviceFundflow.setCreateTime(new Date()); |
| | | serviceFundflow.setCheckTime(new Date()); |
| | | serviceFundflow.setUpdateTime(new Date()); |
| | | serviceFundflow.setFlowcontent(serviceProcessVO.getFlowcontent()); |
| | | serviceFundflow.setFlowconclusion(StringUtils.isNotEmpty(serviceProcessVO.getFlowconclusion()) ? Integer.valueOf(serviceProcessVO.getFlowconclusion()) : null); |