Просмотр исходного кода

fix(P2): CommissionRecord 添加 family_id 字段 + CommissionService createCommissionRecord 集成 familyId

Xiaogang Liao 2 месяцев назад
Родитель
Сommit
aa412f8b3e

+ 2 - 0
cfc-backend/src/main/java/com/etotem/cfc/entity/CommissionRecord.java

@@ -46,5 +46,7 @@ public class CommissionRecord implements Serializable {
 
     private String remark;
 
+    private Long familyId;      // 归属家庭ID(家庭级推广体系)
+
     private Date createdAt;
 }

+ 8 - 8
cfc-web/src/api/admin.js

@@ -233,8 +233,8 @@ export function getPointsStats() {
 export function getWishesList(params) {
   return request({
     url: '/api/wishes',
-    method: 'get',
-    params
+    method: 'post',
+    data: params
   })
 }
 
@@ -242,8 +242,8 @@ export function getWishesList(params) {
 export function getPendingWishes(familyId) {
   return request({
     url: '/api/wishes/pending',
-    method: 'get',
-    params: { familyId }
+    method: 'post',
+    data: { familyId }
   })
 }
 
@@ -251,7 +251,7 @@ export function getPendingWishes(familyId) {
 export function getWishDetail(id) {
   return request({
     url: `/api/wishes/${id}`,
-    method: 'get'
+    method: 'post'
   })
 }
 
@@ -1338,7 +1338,7 @@ export function cancelSubscriptionAdmin(data) {
 export function getBenefitConfig() {
   return request({
     url: '/api/admin/subscription/benefits',
-    method: 'get'
+    method: 'post'
   })
 }
 
@@ -1433,7 +1433,7 @@ export function getProductPpointByProduct(data) {
 export function getPromotionTierConfig() {
   return request({
     url: '/api/admin/promotion/config',
-    method: 'get'
+    method: 'post'
   })
 }
 
@@ -1475,7 +1475,7 @@ export function cancelPendingRefund(params) {
 export function getCommissionConfig() {
   return request({
     url: '/api/admin/commission/config',
-    method: 'get'
+    method: 'post'
   })
 }