- 'use strict';
- module.exports = app => {
- class PaymentDetail extends app.BaseService {
- constructor(ctx) {
- super(ctx);
- this.tableName = 'payment_detail';
- }
- async hadDetail(trId) {
- const result = await this.count({ tr_id: trId });
- return result !== 0;
- }
- }
- return PaymentDetail;
- };
|