|
@@ -57,7 +57,7 @@ class AfterSaleService extends CrudService {
|
|
|
try {
|
|
|
this.tran.update('AfterSale', entity._id, update);
|
|
|
await this.tran.run();
|
|
|
- const type = _.get(update, 'type');
|
|
|
+ const type = _.get(entity, 'type');
|
|
|
const status = _.get(update, 'status');
|
|
|
// 同意退款,则直接进行退款,然后再将状态修改为已退款
|
|
|
if (type === '0' && status === '1') {
|