|
|
@ -55,8 +55,8 @@ async function addPatrolRecord (ctx, next) { |
|
|
|
try { |
|
|
|
const models = ctx.fs.dc.models; |
|
|
|
const data = ctx.request.body; |
|
|
|
let { patrolPlanId, lastInspectionTime, inspectionTime, points, alarm } = data |
|
|
|
let record = { patrolPlanId, lastInspectionTime, inspectionTime, points, alarm } |
|
|
|
let { patrolPlanId, lastInspectionTime, inspectionTime, points, alarm, pointId } = data |
|
|
|
let record = { patrolPlanId, lastInspectionTime, inspectionTime, points, alarm, pointId } |
|
|
|
|
|
|
|
await models.PatrolRecord.create(record); |
|
|
|
|
|
|
|