|
@@ -103,7 +103,6 @@ class GroupService extends CrudService {
|
|
|
let newLeader;
|
|
|
const orderList = _.orderBy(newPersons.filter(f => f.customer !== customer), [ 'status', 'join_time' ], [ 'asc', 'asc' ]);
|
|
|
const head = _.head(orderList);
|
|
|
- console.log(head);
|
|
|
if (head && head.status === '0') {
|
|
|
newLeader = _.get(head, 'customer');
|
|
|
updateData.leader = newLeader;
|
|
@@ -112,7 +111,6 @@ class GroupService extends CrudService {
|
|
|
// 判断是否都退团了
|
|
|
const allRefund = newPersons.every(e => e.status === '1');
|
|
|
if (allRefund) updateData.status = '-1';
|
|
|
- console.log(updateData);
|
|
|
tran.update('Group', group, updateData);
|
|
|
}
|
|
|
|