| | |
| | | public AjaxResult add(@RequestBody ServiceFund serviceFund) { |
| | | boolean b = serviceFundService.save(serviceFund); |
| | | Long id = serviceFund.getId(); |
| | | if (b) { |
| | | addReiSharedDatd(serviceFund, 1); |
| | | } |
| | | // if (b) { |
| | | // addReiSharedDatd(serviceFund, 1); |
| | | // } |
| | | return AjaxResult.success(id); |
| | | } |
| | | |
| | |
| | | public AjaxResult addnew(@RequestBody ServiceFundVO serviceFundVO) { |
| | | boolean b = serviceFundService.save(serviceFundVO); |
| | | Long id = serviceFundVO.getId(); |
| | | if (b) { |
| | | addReiSharedDatd(serviceFundVO, 1); |
| | | } |
| | | // if (b) { |
| | | // addReiSharedDatd(serviceFundVO, 1); |
| | | // } |
| | | List<ServiceFunddetail> serviceFunddetails = serviceFundVO.getServiceFunddetails(); |
| | | serviceFunddetails.forEach(item -> item.setFundid(id)); |
| | | serviceFunddetailService.saveBatch(serviceFunddetails); |
| | |
| | | serviceFundflowrule.setApplytype(serviceFund.getApplytype()); |
| | | serviceFundflowrule.setCheckuserno(loginUser.getUsername()); |
| | | logger.info("serviceFundController---checkFund---queryList的入参值serviceFundflowrule:{}",serviceFundflowrule); |
| | | |
| | | List<ServiceFundflowrule> serviceFundflowrules = serviceFundflowruleService.queryList(serviceFundflowrule); |
| | | |
| | | if (serviceFundflowrules == null || serviceFundflowrules.stream().count() == 0) { |
| | |
| | | @RepeatSubmit |
| | | public AjaxResult edit(@RequestBody ServiceFund serviceFund) { |
| | | boolean bret = serviceFundService.updateById(serviceFund); |
| | | if (bret) { |
| | | addReiSharedDatd(serviceFund, 2); |
| | | } |
| | | // if (bret) { |
| | | // addReiSharedDatd(serviceFund, 2); |
| | | // } |
| | | return toAjax(bret); |
| | | } |
| | | |