| | |
| | | @Transactional |
| | | public Boolean addSharedData(Long id) { |
| | | log.info("addSharedData方法的入参id :{}", id); |
| | | //先判断一下share表是否已经插入 |
| | | ServiceReimbursementShared reimbursementShared1 = new ServiceReimbursementShared(); |
| | | reimbursementShared1.setReimid(id); |
| | | reimbursementShared1.setDelFlag(0L); |
| | | List<ServiceReimbursementShared> serviceReimbursementShareds = sharedService.queryList(reimbursementShared1); |
| | | if (!CollectionUtils.isEmpty(serviceReimbursementShareds)) { |
| | | return true; |
| | | } |
| | | |
| | | //如果没有插入,则走下面的流程 |
| | | ServiceReimbursement serviceReimbursement = serviceReimbursementMapper.selectById(id); |
| | | Map<String, Object> columnMap = new HashMap<>(); |
| | | columnMap.put("rbid", id); |