Browse Source

修改巡检新增接口

master
xincheng 2 years ago
parent
commit
38592c0ca7
  1. 4
      api/app/lib/controllers/patrolRecord/patrolRecord.js

4
api/app/lib/controllers/patrolRecord/patrolRecord.js

@ -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);

Loading…
Cancel
Save