| | |
| | | if (tErpProcurement.getMoney().doubleValue() < 0) { |
| | | throw new RuntimeException("金额设置错误,请联系平台管理员"); |
| | | } |
| | | tErpProcurement.sets |
| | | tErpProcurement.setSupplierMoney(supplierCommissionPrice); |
| | | this.save(tErpProcurement); |
| | | tErpProcurementGoods1.forEach(e -> e.setProcurementId(tErpProcurement.getId())); |
| | | erpProcurementGoodsService.saveBatch(tErpProcurementGoods1); |
| | |
| | | |
| | | } |
| | | |
| | | @Override |
| | | public List<SupplierThirtyProcurementStatisticsVO> supplierThirtyProcurementStatistics(String supplierAndClinicId, String startTime, String endTime,Integer roleType) { |
| | | return this.baseMapper.supplierThirtyProcurementStatistics(supplierAndClinicId, startTime, endTime, roleType); |
| | | } |
| | | |
| | | @Override |
| | | public List<SupplierThirtyMoneyProcurementStatisticsVO> supplierThirtyMoneyProcurementStatistics(String supplierAndClinicId, String startTime, String endTime,Integer roleType) { |
| | | return this.baseMapper.supplierThirtyMoneyProcurementStatistics(supplierAndClinicId, startTime, endTime, roleType); |
| | | } |
| | | |
| | | @Override |
| | | public Integer supplierSalesStatisticsTypeCount(String supplierId) { |
| | | return this.baseMapper.supplierSalesStatisticsTypeCount(supplierId); |
| | | } |
| | | |
| | | @Override |
| | | public Integer supplierSalesStatisticsCount(String supplierId) { |
| | | return this.baseMapper.supplierSalesStatisticsCount(supplierId); |
| | | } |
| | | |
| | | @Override |
| | | public BigDecimal supplierSalesStatisticsMoney(String supplierId, String startTime, String endTime) { |
| | | return this.baseMapper.supplierSalesStatisticsMoney(supplierId,startTime, endTime); |
| | | } |
| | | |
| | | @Override |
| | | public List<SupplierSalesStatisticsGoodsTypeVO> supplierSalesStatisticsGoodsType(String supplierId, String startTime, String endTime) { |
| | | return this.baseMapper.supplierSalesStatisticsGoodsType(supplierId,startTime, endTime); |
| | | } |
| | | |
| | | @Override |
| | | public List<SupplierSalesStatisticsGoodsCountVO> supplierSalesStatisticsGoodsCount(String supplierId, String startTime, String endTime, String goodsName) { |
| | | return this.baseMapper.supplierSalesStatisticsGoodsCount(supplierId,startTime, endTime,goodsName); |
| | | } |
| | | |
| | | @Override |
| | | public List<SupplierSalesStatisticsGoodsCountVO> supplierSalesStatisticsGoodsCountMonth(String supplierId, String startTime, String endTime, String goodsName) { |
| | | return this.baseMapper.supplierSalesStatisticsGoodsCountMonth(supplierId,startTime, endTime,goodsName); |
| | | } |
| | | |
| | | } |