|
@@ -3,6 +3,8 @@ package com.usky.fire.controller.web;
|
|
|
import com.ruoyi.common.core.utils.poi.ExcelUtil;
|
|
|
import com.usky.common.core.bean.ApiResult;
|
|
|
import com.usky.common.core.bean.CommonPage;
|
|
|
+import com.usky.common.log.annotation.Log;
|
|
|
+import com.usky.common.log.enums.BusinessType;
|
|
|
import com.usky.fire.domain.PatrolInspectionSite;
|
|
|
import com.usky.fire.domain.PatrolInspectionSiteContent;
|
|
|
import com.usky.fire.service.PatrolInspectionContentService;
|
|
@@ -71,6 +73,7 @@ public class PatrolInspectionSiteController {
|
|
|
* @param PatrolInspectionSiteList
|
|
|
* @return
|
|
|
*/
|
|
|
+ @Log(title = "巡检地点-点位分配", businessType = BusinessType.UPDATE)
|
|
|
@PostMapping("updatePatrolInspectionSiteList")
|
|
|
public ApiResult<Void> updatePatrolInspectionSiteList(@RequestBody List<PatrolInspectionSite> PatrolInspectionSiteList) {
|
|
|
patrolInspectionSiteService.updatePatrolInspectionSiteList(PatrolInspectionSiteList);
|
|
@@ -83,6 +86,7 @@ public class PatrolInspectionSiteController {
|
|
|
* @param PatrolInspectionSite
|
|
|
* @return
|
|
|
*/
|
|
|
+ @Log(title = "巡检地点", businessType = BusinessType.UPDATE)
|
|
|
@PostMapping("updatePatrolInspectionSite")
|
|
|
public ApiResult<Void> updatePatrolInspectionSite(@RequestBody PatrolInspectionSite PatrolInspectionSite) {
|
|
|
patrolInspectionSiteService.updatePatrolInspectionSite(PatrolInspectionSite);
|
|
@@ -95,6 +99,7 @@ public class PatrolInspectionSiteController {
|
|
|
* @param id 巡检地点ID
|
|
|
* @return
|
|
|
*/
|
|
|
+ @Log(title = "巡检地点", businessType = BusinessType.DELETE)
|
|
|
@GetMapping("delPatrolInspectionSite")
|
|
|
public ApiResult<Void> delPatrolInspectionSite(@RequestParam(value = "id") Integer id) {
|
|
|
patrolInspectionSiteService.delPatrolInspectionSite(id);
|
|
@@ -126,6 +131,7 @@ public class PatrolInspectionSiteController {
|
|
|
* @param siteContentList
|
|
|
* @return
|
|
|
*/
|
|
|
+ @Log(title = "巡检地点-分配内容", businessType = BusinessType.INSERT)
|
|
|
@PostMapping("addSiteContent")
|
|
|
public ApiResult<Void> addSiteContent(@RequestBody List<PatrolInspectionSiteContent> siteContentList) {
|
|
|
patrolInspectionSiteService.addSiteContent(siteContentList);
|