|
@@ -20,6 +20,13 @@ class CashOutService extends CrudService {
|
|
|
return data;
|
|
|
}
|
|
|
|
|
|
+ async beforeUpdate(filter, update) {
|
|
|
+ if (_.get(update, 'status') !== '0') {
|
|
|
+ update.deal_person = _.get(this.ctx, 'admin._id');
|
|
|
+ }
|
|
|
+ return { filter, update };
|
|
|
+ }
|
|
|
+
|
|
|
async afterUpdate(filter, body, data) {
|
|
|
const { status } = body;
|
|
|
if (status === '1') {
|