| | |
| | | @ManagerAuth(memo = "报销") |
| | | @Transactional |
| | | public R formAdd(@RequestBody ReimburseOnlineDomainParam param){ |
| | | long planId = 0; |
| | | if (!param.getTemplateName().equals("非项目型报销")){ |
| | | if (Cools.isEmpty(param.getOrderNo())){ |
| | | return R.error("添加失败!"+param.getTemplateName()+"需要关联项目号"); |
| | | } |
| | | String[] split = param.getOrderNo().split("---"); |
| | | planId = Long.parseLong(split[1]); |
| | | } |
| | | Date now = new Date(); |
| | | String[] split = param.getOrderNo().split("---"); |
| | | long planId = Long.parseLong(split[1]); |
| | | Rule rule = ruleService.selectById(1); |
| | | ReimburseOnline reimburseOnline = new ReimburseOnline(planId,RuleUtils.rule(rule),now,getUser()); |
| | | reimburseOnline.setMemberId(getUserId()); |