mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-12 21:02:08 +08:00
可开票查询接口新增产品名称、订单总额字段
This commit is contained in:
+6
@@ -25,4 +25,10 @@ public class InvoiceAvailablePageRespVO {
|
||||
|
||||
@Schema(description = "可开票金额")
|
||||
private BigDecimal availableAmount;
|
||||
|
||||
@Schema(description = "订单总额")
|
||||
private BigDecimal totalAmount;
|
||||
|
||||
@Schema(description = "产品名称")
|
||||
private String productName;
|
||||
}
|
||||
|
||||
+2
@@ -198,6 +198,8 @@ public class InvoiceServiceImpl implements InvoiceService {
|
||||
availablePageRespVO.setTradeType(TradeTypeEnum.PRODUCT.getCode());
|
||||
// 可开票金额=总额扣除赠送金
|
||||
availablePageRespVO.setAvailableAmount(i.getTotalAmount().subtract(i.getGiftMoneySpent()));
|
||||
availablePageRespVO.setProductName(i.getProductName());
|
||||
availablePageRespVO.setTotalAmount(i.getTotalAmount());
|
||||
availablePageRespVOS.add(availablePageRespVO);
|
||||
});
|
||||
return new PageResult<>(availablePageRespVOS, availablePage.getTotal());
|
||||
|
||||
Reference in New Issue
Block a user