|
@@ -2,6 +2,7 @@ package com.usky.fire.controller.web;
|
|
|
|
|
|
|
|
|
import com.usky.common.core.bean.ApiResult;
|
|
|
+import com.usky.fire.domain.PatrolInspectionSite;
|
|
|
import com.usky.fire.service.PatrolInspectionPlanSonService;
|
|
|
import com.usky.fire.service.vo.PatrolInspectionPlanSonVo;
|
|
|
import com.usky.fire.service.vo.PatrolInspectionSiteVo;
|
|
@@ -95,6 +96,7 @@ public class AppPatrolInspectionController {
|
|
|
|
|
|
/**
|
|
|
* 手机端-巡检自检-巡检扫码地点详情
|
|
|
+ *
|
|
|
* @param planSonId 子计划ID
|
|
|
* @return
|
|
|
*/
|
|
@@ -102,4 +104,17 @@ public class AppPatrolInspectionController {
|
|
|
public ApiResult<List<PatrolInspectionSiteVo>> planSonSiteDetails(@RequestParam(value = "planSonId") Integer planSonId) {
|
|
|
return ApiResult.success(patrolInspectionPlanSonService.planSonSiteDetails(planSonId));
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 手机端-巡检自检-点位采集-提交
|
|
|
+ *
|
|
|
+ * @param patrolInspectionSite
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @PostMapping("addSite")
|
|
|
+ public ApiResult<Void> addSite(@RequestBody PatrolInspectionSite patrolInspectionSite) {
|
|
|
+ patrolInspectionPlanSonService.addSite(patrolInspectionSite);
|
|
|
+ return ApiResult.success();
|
|
|
+ }
|
|
|
}
|