| | |
| | | */ |
| | | |
| | | import com.sandu.common.domain.ResponseVO; |
| | | import com.sandu.common.object.BaseConditionVO; |
| | | import com.sandu.common.util.ResponseUtil; |
| | | import com.sandu.ximon.admin.param.LightPoleHeelingProcessingParam; |
| | | import com.sandu.ximon.admin.security.PermissionConfig; |
| | | import com.sandu.ximon.admin.service.LightPoleHeelingProcessingServices; |
| | | import com.sandu.ximon.dao.enums.MenuEnum; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | /** |
| | | * 灯杆倾斜警告处理列表 |
| | |
| | | @RequestMapping("/v1/admin/LightPoleHeelingProcessing") |
| | | public class LightPoleHeelingProcessingController { |
| | | private LightPoleHeelingProcessingServices lightPoleHeelingProcessingServices; |
| | | private PermissionConfig permissionConfig; |
| | | |
| | | /** |
| | | * 灯杆倾斜警告处理 |
| | |
| | | */ |
| | | @PostMapping("/Processing") |
| | | public ResponseVO<Object> ProcessingLightPoleHeeling(@RequestBody @Validated LightPoleHeelingProcessingParam param) { |
| | | if (!permissionConfig.check(MenuEnum.LIGHT_POLE_HEELING_PROCESSING.getCode())) { |
| | | return ResponseUtil.fail("缺少对应用户权限"); |
| | | } |
| | | return ResponseUtil.success(lightPoleHeelingProcessingServices.ProcessingLightPoleHeeling(param)); |
| | | |
| | | } |
| | | |
| | | /** |
| | | * 灯杆倾斜警告处理List |
| | | * |
| | | * @return |
| | | */ |
| | | @GetMapping("/processingDetailList") |
| | | public ResponseVO<Object> processingDetailList(BaseConditionVO baseConditionVO, @RequestParam(required = false, value = "keyword") @Validated String keyword) { |
| | | if (!permissionConfig.check(MenuEnum.LIGHT_POLE_HEELING_PROCESSING_LIST.getCode())) { |
| | | return ResponseUtil.fail("缺少对应用户权限"); |
| | | } |
| | | return ResponseUtil.success(lightPoleHeelingProcessingServices.processingDetailList(baseConditionVO, keyword)); |
| | | |
| | | } |
| | | |
| | | /** |
| | | * 灯杆倾斜警告处理详情 |
| | | * |
| | | * @return |
| | | */ |
| | | @GetMapping("/processingDetail") |
| | | public ResponseVO<Object> processingDetail(@RequestParam(required = false, value = "processingNumber") @Validated Long processingNumber) { |
| | | if (!permissionConfig.check(MenuEnum.LIGHT_POLE_HEELING_PROCESSING_LIST.getCode())) { |
| | | return ResponseUtil.fail("缺少对应用户权限"); |
| | | } |
| | | return ResponseUtil.success(lightPoleHeelingProcessingServices.processingDetail(processingNumber)); |
| | | |
| | | } |
| | | } |