Commit fd456328 authored by 姜登's avatar 姜登

gjjh5

parent 3dab66c1
Pipeline #16003 passed with stage
in 8 seconds
/*
* @Descripttion:
* @version:
* @Author: jd
* @Date: 2019-02-25 18:59:53
* @LastEditors: jd
* @LastEditTime: 2019-11-08 13:52:39
*/
'use strict'; 'use strict';
const Service = require('egg').Service; const Service = require('egg').Service;
...@@ -62,17 +70,17 @@ class OrderService extends Service { ...@@ -62,17 +70,17 @@ class OrderService extends Service {
}) })
.spread(async (info, created) => { .spread(async (info, created) => {
if (created === false) { if (created === false) {
await info.update({ taskId, cityId: params.cityId, status: 'init' }); await info.update({ taskId: params.taskId, cityId: params.cityId, status: 'init' });
} }
}); });
return order[0]; return order[0];
} }
async oldgjjStatus(params) { async oldgjjStatus({ orderId, status }) {
const { ctx } = this; const { ctx } = this;
await ctx.nodemodel.GjjStatus.update({ status: params.status }, { await ctx.nodemodel.GjjStatus.update({ status }, {
where: { where: {
orderId: params.orderId, orderId,
}, },
limit: 1, limit: 1,
}); });
......
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