|
@@ -445,7 +445,6 @@ module.exports = class UserController extends shopController {
|
|
|
*/
|
|
|
async userCommissionLog() {
|
|
|
const that = this;
|
|
|
- const seq = that.app.Sequelize;
|
|
|
try {
|
|
|
const data = await that.ctx.validate(that.userMoneyValidate, await that.ctx.getParse());
|
|
|
const selectBean = await that.app.comoBean.instance(data, {
|
|
@@ -454,7 +453,6 @@ module.exports = class UserController extends shopController {
|
|
|
order: [ [ 'log_id', 'desc' ] ],
|
|
|
include: [ {
|
|
|
model: that.app.model.Orders,
|
|
|
- where: { order_status: { [seq.Op.in]: [ 1, 2, 3, 4 ] } },
|
|
|
attributes: [ 'order_id', 'order_status', 'order_amount', ],
|
|
|
as: 'order'
|
|
|
} ],
|