费用账单

揽收费用

  • DMS分摊操作发送MQ
    topic: topic_dms_order
    tag: tag_pickup_fee_apportion_push_event
    payload: {
      "apportionCode":"分摊批次号"
    }
  • DBMS拉取分摊批次号,根据批次号调用Feign接口拉取订单、揽收费用、分摊信息

feign接口类

  • com.wpglb.orders.feign.IPickupFeeApportionClient

// 分摊信息
GET: /feign/client/pickupFeeApportion/getByApportionCode?apportionCode=分摊批次号
ResponseBody:

{

    @Schema(description = "主键")
    private Long pickupFeeApportionId;

    @Schema(description = "分摊批次号")
    private String apportionCode;

    @Schema(description = "费用发生开始时间")
    private LocalDateTime feeGenerateStartTime;

    @Schema(description = "费用发生结束时间")
    private LocalDateTime feeGenerateEndTime;

    @Schema(description = "收货网点ID(分拨仓网点)")
    private Long receiveSiteId;

    @Schema(description = "入库开始时间")
    private LocalDateTime inboundStartTime;

    @Schema(description = "入库结束时间")
    private LocalDateTime inboundEndTime;

    @Schema(description = "分摊费用条数")
    private Integer apportionFeeNumber;

    @Schema(description = "分摊订单条数")
    private Integer apportionOrderNumber;

    @Schema(description = "总分摊费用")
    private BigDecimal totalApportionFee;

    @Schema(description = "总分摊重量")
    private BigDecimal totalApportionWeight;

    @Schema(description = "总分摊体积")
    private BigDecimal totalApportionVolume;

    @Schema(description = "重量单位:LB")
    private String weightUnit;

    @Schema(description = "体积单位:CFT")
    private String volumeUnit;

    @Schema(description = "货币单位")
    private String currency;

    @Schema(description = "备注")
    private String remark;
}

// 订单列表(分页)
POST: /feign/client/pickupFeeApportion/order/list
RequestBody:

{
    @NotBlank
    @Schema(description = "分摊批次号", requiredMode = Schema.RequiredMode.REQUIRED)
    private String apportionCode;

    @Min(1)
    @Schema(description = "当前页", example = "1")
    private Integer current;

    @Max(500)
    @Schema(description = "每页条数", example = "10")
    private Integer size;
}

ResponseBody:

[
    {
    @Schema(description = "明细主键")
    private Long pickupFeeApportionOrderId;

    @Schema(description = "分摊批次号")
    private String apportionCode;

    @Schema(description = "订单ID")
    private Long orderId;

    @Schema(description = "跟踪号")
    private String trackingNumber;

    @Schema(description = "参考号")
    private String referenceNo;

    @Schema(description = "入仓时间")
    private LocalDateTime inboundTime;
}
]

// 揽收费用列表(分页)
POST: /feign/client/pickupFeeApportion/detail/list
RequestBody:

{
    @NotBlank
    @Schema(description = "分摊批次号", requiredMode = Schema.RequiredMode.REQUIRED)
    private String apportionCode;

    @Min(1)
    @Schema(description = "当前页", example = "1")
    private Integer current;

    @Max(500)
    @Schema(description = "每页条数", example = "10")
    private Integer size;
}

ResponseBody:
`
[
{
@Schema(description = “明细主键”)
private Long pickupFeeApportionDetailId;

@Schema(description = "分摊批次号")
private String apportionCode;

@Schema(description = "科目编码")
private String subjectCode;

@Schema(description = "费用金额")
private BigDecimal totalFee;

@Schema(description = "货币单位")
private String currency;

}
]

作者:詹明威  创建时间:2026-03-09 17:50
最后编辑:詹明威  更新时间:2026-04-17 09:34