Commit 0f166320 authored by 姜登's avatar 姜登

attr

parent 443fb479
Pipeline #17491 passed with stage
in 5 seconds
......@@ -4,7 +4,7 @@
* @Author: jd
* @Date: 2019-02-25 18:59:53
* @LastEditors: jd
* @LastEditTime: 2019-11-28 14:37:40
* @LastEditTime: 2019-11-28 14:49:08
*/
'use strict';
......@@ -36,7 +36,7 @@ class OrderService extends Service {
async update(params) {
const { ctx } = this;
const order = await ctx.model.TaskStatus.findAll({
attributes: ['id', 'status'],
attributes: ['id', 'appKey', 'taskId', 'notifyUrl', 'backUrl', 'status', 'userId'],
where: { orderId: params.orderId },
order: [['createDate', 'DESC']],
});
......@@ -57,6 +57,7 @@ class OrderService extends Service {
await order[0].update(params);
}
await ctx.nodemodel.GjjStatus.findOrCreate({
attributes: ['orderId'],
where: {
orderId: params.orderId,
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment