|
@@ -138,6 +138,7 @@ public class ReceiptApi {
|
|
|
/**
|
|
|
* 获取收款列表
|
|
|
* crm:/api/user/receivables/list
|
|
|
+ * 返佣款/api/user/rebate/list 或 (receiptType==3:/api/user/receivables/list)
|
|
|
*/
|
|
|
@ApiOperation("获取收款列表")
|
|
|
@ApiImplicitParams({
|
|
@@ -150,11 +151,7 @@ public class ReceiptApi {
|
|
|
@ApiImplicitParam(required = false, name = "pageSize", value = "每页数量")
|
|
|
})
|
|
|
@GetMapping("/list")
|
|
|
- public ResponseJson<PageInfo<ReceiptVo>> getReceiptList(Integer receiptType,
|
|
|
- Integer receiptStatus,
|
|
|
- String smsContent,
|
|
|
- String startDate,
|
|
|
- String endDate,
|
|
|
+ public ResponseJson<PageInfo<ReceiptVo>> getReceiptList(Integer receiptType, Integer receiptStatus, String smsContent, String startDate, String endDate,
|
|
|
@RequestParam(value = "pageNum", defaultValue = "1") int pageNum,
|
|
|
@RequestParam(value = "pageSize", defaultValue = "10") int pageSize,
|
|
|
@RequestHeader HttpHeaders headers) {
|
|
@@ -162,10 +159,10 @@ public class ReceiptApi {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 获取收款详情
|
|
|
+ * 收款详情(订单/非订单)
|
|
|
* crm:/api/user/receivables/get
|
|
|
*/
|
|
|
- @ApiOperation("获取收款详情")
|
|
|
+ @ApiOperation("收款详情(订单/非订单)")
|
|
|
@ApiImplicitParam(required = true, name = "id", value = "款项Id")
|
|
|
@GetMapping("/detail")
|
|
|
public ResponseJson<ReceiptVo> getReceiptDetail(Integer id, @RequestHeader HttpHeaders headers) {
|
|
@@ -173,11 +170,33 @@ public class ReceiptApi {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 获取收款订单列表
|
|
|
+ * 收款详情(供应商退款)
|
|
|
+ * crm:/api/user/shop/shopRefund
|
|
|
+ */
|
|
|
+ @ApiOperation("收款详情(供应商退款)")
|
|
|
+ @ApiImplicitParam(required = true, name = "id", value = "款项Id")
|
|
|
+ @GetMapping("/refund")
|
|
|
+ public ResponseJson<ReceiptVo> getReceiptRefundDetail(Integer id, @RequestHeader HttpHeaders headers) {
|
|
|
+ return receiptService.getReceiptRefundDetail(id, headers);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 收款详情(返佣款)
|
|
|
+ * crm:/api/user/rebate/rebateDetail
|
|
|
+ */
|
|
|
+ @ApiOperation("收款详情(返佣款)")
|
|
|
+ @ApiImplicitParam(required = true, name = "id", value = "款项Id")
|
|
|
+ @GetMapping("/rebate")
|
|
|
+ public ResponseJson<ReceiptVo> getReceiptRebateDetail(Integer id, @RequestHeader HttpHeaders headers) {
|
|
|
+ return receiptService.getReceiptRebateDetail(id, headers);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 收款详情-订单列表
|
|
|
* crm:/api/user/receivables/getOrderList
|
|
|
* crm:/api/user/receivables/getMoneyOrderList
|
|
|
*/
|
|
|
- @ApiOperation("获取收款订单列表")
|
|
|
+ @ApiOperation("收款详情-订单列表")
|
|
|
@ApiImplicitParams({
|
|
|
@ApiImplicitParam(required = false, name = "id", value = "收款ID"),
|
|
|
@ApiImplicitParam(required = false, name = "type", value = "类型:0商品订单(默认),1订金订单"),
|
|
@@ -187,12 +206,8 @@ public class ReceiptApi {
|
|
|
@ApiImplicitParam(required = false, name = "pageNum", value = "页码"),
|
|
|
@ApiImplicitParam(required = false, name = "pageSize", value = "每页数量")
|
|
|
})
|
|
|
- @GetMapping("/orders")
|
|
|
- public ResponseJson<PageInfo<OrderVo>> getReceiptOrderList(Integer id,
|
|
|
- Integer type,
|
|
|
- Integer organizeId,
|
|
|
- String orderReceiptStatus,
|
|
|
- String keyword,
|
|
|
+ @GetMapping("/detail/orders")
|
|
|
+ public ResponseJson<PageInfo<OrderVo>> getReceiptOrderList(Integer id, Integer type, Integer organizeId, String orderReceiptStatus, String keyword,
|
|
|
@RequestParam(value = "pageNum", defaultValue = "1") int pageNum,
|
|
|
@RequestParam(value = "pageSize", defaultValue = "10") int pageSize,
|
|
|
@RequestHeader HttpHeaders headers) {
|
|
@@ -200,34 +215,23 @@ public class ReceiptApi {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 获取收款订单详情
|
|
|
+ * 收款详情-订单详情
|
|
|
* crm:/api/user/receivables/orderDetail
|
|
|
*/
|
|
|
- @ApiOperation("获取收款订单详情")
|
|
|
+ @ApiOperation("收款详情-订单详情")
|
|
|
@ApiImplicitParam(required = false, name = "orderId", value = "订单ID")
|
|
|
- @GetMapping("/orders/info")
|
|
|
+ @GetMapping("/detail/orders/info")
|
|
|
public ResponseJson<OrderVo> getReceiptOrderInfo(Integer orderId, @RequestHeader HttpHeaders headers) {
|
|
|
return receiptService.getReceiptOrderInfo(orderId, headers);
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * 供应商退款-详情
|
|
|
- * crm:/api/user/shop/shopRefund
|
|
|
- */
|
|
|
- @ApiOperation("供应商退款-详情")
|
|
|
- @ApiImplicitParam(required = true, name = "id", value = "款项Id")
|
|
|
- @GetMapping("/refund")
|
|
|
- public ResponseJson<ReceiptVo> getReceiptRefundDetail(Integer id, @RequestHeader HttpHeaders headers) {
|
|
|
- return receiptService.getReceiptRefundDetail(id, headers);
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* 供应商退款-子订单列表
|
|
|
* crm:/api/user/shop/refundShopOrder
|
|
|
*/
|
|
|
@ApiOperation("供应商退款-子订单列表")
|
|
|
@ApiImplicitParams({
|
|
|
- @ApiImplicitParam(required = false, name = "id", value = "返佣收款ID"),
|
|
|
+ @ApiImplicitParam(required = false, name = "id", value = "收款ID"),
|
|
|
@ApiImplicitParam(required = false, name = "confirmedType", value = "0待确认,2已确认子订单"),
|
|
|
@ApiImplicitParam(required = false, name = "shopName", value = "供应商名称"),
|
|
|
@ApiImplicitParam(required = false, name = "keyword", value = "搜索关键词(客户名称/订单号)"),
|
|
@@ -235,10 +239,7 @@ public class ReceiptApi {
|
|
|
@ApiImplicitParam(required = false, name = "pageSize", value = "每页数量")
|
|
|
})
|
|
|
@GetMapping("/refund/orders")
|
|
|
- public ResponseJson<PageInfo<ShopOrderVo>> getRefundShopOrderList(Integer id,
|
|
|
- Integer confirmedType,
|
|
|
- String shopName,
|
|
|
- String keyword,
|
|
|
+ public ResponseJson<PageInfo<ShopOrderVo>> getRefundShopOrderList(Integer id, Integer confirmedType, String shopName, String keyword,
|
|
|
@RequestParam(value = "pageNum", defaultValue = "1") int pageNum,
|
|
|
@RequestParam(value = "pageSize", defaultValue = "10") int pageSize,
|
|
|
@RequestHeader HttpHeaders headers) {
|
|
@@ -246,16 +247,35 @@ public class ReceiptApi {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 供应商退款详情
|
|
|
+ * 供应商退款-订单详情
|
|
|
* crm:/api/user/rebate/orderInfo
|
|
|
*/
|
|
|
- @ApiOperation("供应商退款详情")
|
|
|
+ @ApiOperation("供应商退款-订单详情")
|
|
|
@ApiImplicitParam(required = false, name = "orderId", value = "订单ID")
|
|
|
- @GetMapping("/refunds/info")
|
|
|
+ @GetMapping("/refund/orders/info")
|
|
|
public ResponseJson<OrderVo> getRefundShopOrderInfo(Integer orderId, @RequestHeader HttpHeaders headers) {
|
|
|
return receiptService.getRefundShopOrderInfo(orderId, headers);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 返佣款-子订单列表
|
|
|
+ * crm:/api/user/rebate/rebateShopOrder
|
|
|
+ */
|
|
|
+ @ApiOperation("返佣款-子订单列表")
|
|
|
+ @ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(required = false, name = "id", value = "返佣收款ID"),
|
|
|
+ @ApiImplicitParam(required = false, name = "shopName", value = "供应商名称"),
|
|
|
+ @ApiImplicitParam(required = false, name = "pageNum", value = "页码"),
|
|
|
+ @ApiImplicitParam(required = false, name = "pageSize", value = "每页数量")
|
|
|
+ })
|
|
|
+ @GetMapping("/rebate/orders")
|
|
|
+ public ResponseJson<PageInfo<ShopOrderVo>> getRebateShopOrderList(Integer id, String shopName,
|
|
|
+ @RequestParam(value = "pageNum", defaultValue = "1") int pageNum,
|
|
|
+ @RequestParam(value = "pageSize", defaultValue = "10") int pageSize,
|
|
|
+ @RequestHeader HttpHeaders headers) {
|
|
|
+ return receiptService.getRebateShopOrderList(id, shopName, pageNum, pageSize, headers);
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 确认收款-关联收款信息
|
|
|
* crm:/api/user/receivables/confirmReceipt
|
|
@@ -277,9 +297,6 @@ public class ReceiptApi {
|
|
|
}
|
|
|
|
|
|
|
|
|
- // 收款列表-返佣款/api/user/rebate/list (receiptType==3:/api/user/receivables/list)
|
|
|
- // 返佣款详情/api/user/rebate/rebateDetail
|
|
|
- // 返佣款详情-子订单列表 /api/user/rebate/rebateShopOrder
|
|
|
// 返佣关联/api/user/rebate/relation
|
|
|
|
|
|
}
|