| | |
| | | CooperOrderDTO cooperOrderDTO = _cooperOrderService.Get(OrderId); |
| | | List<FiOrderrecievemoneyDTO> fiOrderrecievemoneyDTOs = _fiOrderrecievemoneyService.GetList(OrderId); |
| | | |
| | | dto.Money = cooperOrderDTO.Money.Value - (cooperOrderDTO.Youhui??0); |
| | | dto.Money = cooperOrderDTO.Money.Value; |
| | | if(fiOrderrecievemoneyDTOs!=null&& fiOrderrecievemoneyDTOs.Count > 0) |
| | | { |
| | | dto.YishouMoney = fiOrderrecievemoneyDTOs.Sum(x => x.Recievemoney).Value; |
| | |
| | | data1.RecordTypeId = "1";//收入 |
| | | data1.Department = ""; |
| | | |
| | | resultEntity = _iFiAccountRecordService.save(data1); |
| | | |
| | | |
| | | firmAccount.AllIncome = (firmAccount.AllIncome ?? 0) + data1.Money; |
| | | firmAccount.Balance = (firmAccount.Balance ?? 0) + data1.Money; |
| | | |
| | | data1.AccountMoney = firmAccount.Balance; |
| | | resultEntity = _iFiAccountRecordService.save(data1); |
| | | resultEntity = _fiAccountService.save(firmAccount); |
| | | scope.Complete(); |
| | | } |