zhanghua
2025-10-28 cc4f8046f4fab83306e7514367de7a6ad424e493
src/api/student.js
@@ -43,6 +43,7 @@
        }
      }
    `,
    fetchPolicy:'no-cache',
    variables: params,
  });
}
@@ -89,48 +90,18 @@
        }
      }
    `,
    fetchPolicy:'no-cache',
    variables: params,
  });
}
export function getRenew(params) {
  return apolloClient.query({
    query: gql`
      query vars($staffId: Int!, $keyword: String, $pageIn: PageIn!) {
        findPlayerRenew(staffId: $staffId, keyword: $keyword, pageIn: $pageIn) {
          ls {
            id
            name
            gender
            mobile
            user {
              id
              name
              wxOaOpenId
            }
            accs {
              id
              voucher {
                id
                voucherType
                name
              }
              qty
              freezeQty
              amt
              beginDate
              endDate
              modifyTime
            }
          }
          pageOut {
            total
            index
            size
          }
        }
      }
    query: gql`query vars($staffId:Int!,$campusId:Int,$keyword:String,$pageIn:PageIn!){
  findRenewPlayerAcc(staffId:$staffId,campusId:$campusId, keyword:$keyword,pageIn:$pageIn) {
    ls{id name userAvatars{url1 url2 url3 origin def ext} playerAvatars{url1 url2 url3 origin def ext} accId voucherName giftQty qty endDate voucherType memberType} pageOut{total index size} }}
    `,
    fetchPolicy:'no-cache',
    variables: params,
  });
}
@@ -177,6 +148,7 @@
        }
      }
    `,
    fetchPolicy:'no-cache',
    variables: params,
  });
}
@@ -301,6 +273,7 @@
        }
      }
    `,
    fetchPolicy:'no-cache',
    variables: params,
  });
}
@@ -333,6 +306,7 @@
        }
      }
    `,
    fetchPolicy:'no-cache',
    variables: params,
  });
}