|
@@ -0,0 +1,34 @@
|
|
|
+package com.ym.mec.web.controller;
|
|
|
+
|
|
|
+import com.ym.mec.biz.dal.entity.InspectionItemPlanConclusion;
|
|
|
+import com.ym.mec.biz.service.InspectionItemPlanConclusionService;
|
|
|
+import com.ym.mec.common.controller.BaseController;
|
|
|
+import com.ym.mec.common.entity.HttpResponseResult;
|
|
|
+import io.swagger.annotations.Api;
|
|
|
+import io.swagger.annotations.ApiImplicitParam;
|
|
|
+import io.swagger.annotations.ApiImplicitParams;
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
+
|
|
|
+import java.util.List;
|
|
|
+import java.util.Map;
|
|
|
+
|
|
|
+@Api(tags = "巡查结果")
|
|
|
+@RequestMapping("inspectionItemPlanConclusion")
|
|
|
+@RestController
|
|
|
+public class InspectionItemPlanConclusionController extends BaseController {
|
|
|
+ @Autowired
|
|
|
+ private InspectionItemPlanConclusionService InspectionItemPlanConclusionService;
|
|
|
+
|
|
|
+ @ApiOperation(value = "获取日程的巡查结果")
|
|
|
+ @GetMapping("/getInfo")
|
|
|
+ @PreAuthorize("@pcs.hasPermissions('inspectionItemPlanConclusion/getInfo')")
|
|
|
+ @ApiImplicitParams({@ApiImplicitParam(name = "planId", value = "日程id", required = true, dataType = "int"),
|
|
|
+ @ApiImplicitParam(name = "checkItem", value = "巡查结果项", required = false, dataType = "int")})
|
|
|
+ public HttpResponseResult<Map<Integer, List<InspectionItemPlanConclusion>>> getInfo(Long planId, Integer checkItem) {
|
|
|
+ return succeed(InspectionItemPlanConclusionService.getInfo(planId, checkItem));
|
|
|
+ }
|
|
|
+
|
|
|
+}
|