|
@@ -1,6 +1,5 @@
|
|
|
package com.ruoyi.web.controller.mobile;
|
|
|
|
|
|
-import com.ruoyi.common.annotation.Log;
|
|
|
import com.ruoyi.common.annotation.RepeatSubmit;
|
|
|
import com.ruoyi.common.core.controller.BaseController;
|
|
|
import com.ruoyi.common.core.domain.AjaxResult;
|
|
@@ -8,7 +7,6 @@ import com.ruoyi.common.core.page.TableDataInfo;
|
|
|
import com.ruoyi.common.core.validate.AddGroup;
|
|
|
import com.ruoyi.common.core.validate.EditGroup;
|
|
|
import com.ruoyi.common.core.validate.QueryGroup;
|
|
|
-import com.ruoyi.common.enums.BusinessType;
|
|
|
import com.ruoyi.common.utils.poi.ExcelUtil;
|
|
|
import com.ruoyi.gas.domain.bo.GEmergencyRepairBo;
|
|
|
import com.ruoyi.gas.domain.vo.GEmergencyRepairVo;
|
|
@@ -17,7 +15,6 @@ import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
@@ -46,7 +43,7 @@ public class MEmergencyRepairController extends BaseController {
|
|
|
* 查询抢险维修列表
|
|
|
*/
|
|
|
@ApiOperation("查询抢险维修列表")
|
|
|
- @PreAuthorize("@ss.hasPermi('gas:emergencyRepair:list')")
|
|
|
+// @PreAuthorize("@ss.hasPermi('gas:emergencyRepair:list')")
|
|
|
@GetMapping("/list")
|
|
|
public TableDataInfo<GEmergencyRepairVo> list(@Validated(QueryGroup.class) GEmergencyRepairBo bo) {
|
|
|
return iGEmergencyRepairService.queryPageList(bo);
|
|
@@ -56,8 +53,8 @@ public class MEmergencyRepairController extends BaseController {
|
|
|
* 导出抢险维修列表
|
|
|
*/
|
|
|
@ApiOperation("导出抢险维修列表")
|
|
|
- @PreAuthorize("@ss.hasPermi('gas:emergencyRepair:export')")
|
|
|
- @Log(title = "抢险维修", businessType = BusinessType.EXPORT)
|
|
|
+// @PreAuthorize("@ss.hasPermi('gas:emergencyRepair:export')")
|
|
|
+// @Log(title = "抢险维修", businessType = BusinessType.EXPORT)
|
|
|
@GetMapping("/export")
|
|
|
public void export(@Validated GEmergencyRepairBo bo, HttpServletResponse response) {
|
|
|
List<GEmergencyRepairVo> list = iGEmergencyRepairService.queryList(bo);
|
|
@@ -68,7 +65,7 @@ public class MEmergencyRepairController extends BaseController {
|
|
|
* 获取抢险维修详细信息
|
|
|
*/
|
|
|
@ApiOperation("获取抢险维修详细信息")
|
|
|
- @PreAuthorize("@ss.hasPermi('gas:emergencyRepair:query')")
|
|
|
+// @PreAuthorize("@ss.hasPermi('gas:emergencyRepair:query')")
|
|
|
@GetMapping("/{id}")
|
|
|
public AjaxResult<GEmergencyRepairVo> getInfo(@NotNull(message = "主键不能为空")
|
|
|
@PathVariable("id") Long id) {
|
|
@@ -79,8 +76,8 @@ public class MEmergencyRepairController extends BaseController {
|
|
|
* 新增抢险维修
|
|
|
*/
|
|
|
@ApiOperation("新增抢险维修")
|
|
|
- @PreAuthorize("@ss.hasPermi('gas:emergencyRepair:add')")
|
|
|
- @Log(title = "抢险维修", businessType = BusinessType.INSERT)
|
|
|
+// @PreAuthorize("@ss.hasPermi('gas:emergencyRepair:add')")
|
|
|
+// @Log(title = "抢险维修", businessType = BusinessType.INSERT)
|
|
|
@RepeatSubmit()
|
|
|
@PostMapping()
|
|
|
public AjaxResult<Void> add(@Validated(AddGroup.class) @RequestBody GEmergencyRepairBo bo) {
|
|
@@ -91,8 +88,8 @@ public class MEmergencyRepairController extends BaseController {
|
|
|
* 修改抢险维修
|
|
|
*/
|
|
|
@ApiOperation("修改抢险维修")
|
|
|
- @PreAuthorize("@ss.hasPermi('gas:emergencyRepair:edit')")
|
|
|
- @Log(title = "抢险维修", businessType = BusinessType.UPDATE)
|
|
|
+// @PreAuthorize("@ss.hasPermi('gas:emergencyRepair:edit')")
|
|
|
+// @Log(title = "抢险维修", businessType = BusinessType.UPDATE)
|
|
|
@RepeatSubmit()
|
|
|
@PutMapping()
|
|
|
public AjaxResult<Void> edit(@Validated(EditGroup.class) @RequestBody GEmergencyRepairBo bo) {
|
|
@@ -103,8 +100,8 @@ public class MEmergencyRepairController extends BaseController {
|
|
|
* 删除抢险维修
|
|
|
*/
|
|
|
@ApiOperation("删除抢险维修")
|
|
|
- @PreAuthorize("@ss.hasPermi('gas:emergencyRepair:remove')")
|
|
|
- @Log(title = "抢险维修" , businessType = BusinessType.DELETE)
|
|
|
+// @PreAuthorize("@ss.hasPermi('gas:emergencyRepair:remove')")
|
|
|
+// @Log(title = "抢险维修" , businessType = BusinessType.DELETE)
|
|
|
@DeleteMapping("/{ids}")
|
|
|
public AjaxResult<Void> remove(@NotEmpty(message = "主键不能为空")
|
|
|
@PathVariable Long[] ids) {
|