payment_detail.js 372 B

12345678910111213141516
  1. 'use strict';
  2. module.exports = app => {
  3. class PaymentDetail extends app.BaseService {
  4. constructor(ctx) {
  5. super(ctx);
  6. this.tableName = 'payment_detail';
  7. }
  8. async hadDetail(trId) {
  9. const result = await this.count({ tr_id: trId });
  10. return result !== 0;
  11. }
  12. }
  13. return PaymentDetail;
  14. };