| | |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | | import com.ruoyi.common.core.domain.entity.SysUser; |
| | | import com.ruoyi.common.core.domain.model.LoginUser; |
| | | import com.ruoyi.common.enums.ApplyTypeEnum; |
| | | import com.ruoyi.common.exception.base.BaseException; |
| | | import com.ruoyi.common.utils.HttpClientKit; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | |
| | | List<Map<String, Object>> list = new ArrayList<>(); |
| | | List<Map<String, Object>> annexfilesList = new ArrayList<>(); |
| | | for (ServiceFunddetailShared serviceFunddetailShared : serviceFunddetailSharedList) { |
| | | //附件处理 |
| | | String annexfiles = serviceFunddetailShared.getAnnexfiles(); |
| | | String invoicefiles = serviceFunddetailShared.getInvoicefiles(); |
| | | |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("序号1", serviceFunddetailShared.getOrderno()); |
| | | map.put("费用项目", serviceFunddetailShared.getItemname()); |
| | |
| | | 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("发票附件", ""); |
| | | if (StringUtils.isNotEmpty(invoicefiles)) { |
| | | 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("其他附件", ""); |
| | | if (StringUtils.isNotEmpty(annexfiles)) { |
| | | map.put("其他附件", qtuuid); |
| | | } |
| | | map.put("项目编码", serviceFunddetailShared.getItemcode()); |
| | | map.put("预算项目", null); |
| | | map.put("贷方科目", null); |
| | |
| | | map.put("费用说明", null); |
| | | list.add(map); |
| | | |
| | | //附件处理 |
| | | String annexfiles = serviceFunddetailShared.getAnnexfiles(); |
| | | String invoicefiles = serviceFunddetailShared.getInvoicefiles(); |
| | | |
| | | int i = 0; |
| | | if (StringUtils.isNotEmpty(annexfiles)) { |
| | |
| | | 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()); |
| | |
| | | formmain_0831.put("识别人-作废", null); |
| | | formmain_0831.put("财务审批签字", serviceFund.getFinancedirector()); |
| | | formmain_0831.put("财务部负责人签字", serviceFund.getFinancedirector()); |
| | | formmain_0831.put("表达类型", null); |
| | | formmain_0831.put("表达类型", StringUtils.isEmpty(serviceFund.getApplytype()) ? null : ApplyTypeEnum.getDescByCode(serviceFund.getApplytype())); |
| | | formmain_0831.put("税前金额合计", serviceFund.getPretaxcost()); |
| | | formmain_0831.put("税额合计", serviceFund.getPretaxcost() - serviceFund.getTaxedcost()); |
| | | formmain_0831.put("表单编号1", null); |
| | |
| | | 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(); |