|
|
@@ -42,7 +42,7 @@ public class GxtWorkOrderController extends BaseController
|
|
|
/**
|
|
|
* 查询维保工单列表
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('gxt:order:list')")
|
|
|
+ @PreAuthorize("@ss.hasPermi('gxt:maintenance:order:list')")
|
|
|
@GetMapping("/list")
|
|
|
public TableDataInfo list(GxtWorkOrder gxtWorkOrder)
|
|
|
{
|
|
|
@@ -54,7 +54,7 @@ public class GxtWorkOrderController extends BaseController
|
|
|
/**
|
|
|
* 导出维保工单列表
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('gxt:order:export')")
|
|
|
+ @PreAuthorize("@ss.hasPermi('gxt:maintenance:order:export')")
|
|
|
@Log(title = "维保工单", businessType = BusinessType.EXPORT)
|
|
|
@PostMapping("/export")
|
|
|
public void export(HttpServletResponse response, GxtWorkOrder gxtWorkOrder)
|
|
|
@@ -67,7 +67,7 @@ public class GxtWorkOrderController extends BaseController
|
|
|
/**
|
|
|
* 导入维保工单数据
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('gxt:order:import')")
|
|
|
+ @PreAuthorize("@ss.hasPermi('gxt:maintenance:order:import')")
|
|
|
@Log(title = "维保工单", businessType = BusinessType.IMPORT)
|
|
|
@PostMapping("/importData")
|
|
|
public AjaxResult importData(MultipartFile file, boolean updateSupport) throws Exception
|
|
|
@@ -92,7 +92,7 @@ public class GxtWorkOrderController extends BaseController
|
|
|
/**
|
|
|
* 获取维保工单详细信息
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('gxt:order:query')")
|
|
|
+ @PreAuthorize("@ss.hasPermi('gxt:maintenance:order:query')")
|
|
|
@GetMapping(value = "/{id}")
|
|
|
public AjaxResult getInfo(@PathVariable("id") Long id)
|
|
|
{
|
|
|
@@ -102,7 +102,7 @@ public class GxtWorkOrderController extends BaseController
|
|
|
/**
|
|
|
* 新增维保工单
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('gxt:order:add')")
|
|
|
+ @PreAuthorize("@ss.hasPermi('gxt:maintenance:order:add')")
|
|
|
@Log(title = "维保工单", businessType = BusinessType.INSERT)
|
|
|
@PostMapping
|
|
|
public AjaxResult add(@RequestBody GxtWorkOrder gxtWorkOrder)
|
|
|
@@ -113,7 +113,7 @@ public class GxtWorkOrderController extends BaseController
|
|
|
/**
|
|
|
* 修改维保工单
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('gxt:order:edit')")
|
|
|
+ @PreAuthorize("@ss.hasPermi('gxt:maintenance:order:edit')")
|
|
|
@Log(title = "维保工单", businessType = BusinessType.UPDATE)
|
|
|
@PutMapping
|
|
|
public AjaxResult edit(@RequestBody GxtWorkOrder gxtWorkOrder)
|
|
|
@@ -124,7 +124,7 @@ public class GxtWorkOrderController extends BaseController
|
|
|
/**
|
|
|
* 删除维保工单
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('gxt:order:remove')")
|
|
|
+ @PreAuthorize("@ss.hasPermi('gxt:maintenance:order:remove')")
|
|
|
@Log(title = "维保工单", businessType = BusinessType.DELETE)
|
|
|
@DeleteMapping("/{ids}")
|
|
|
public AjaxResult remove(@PathVariable Long[] ids)
|
|
|
@@ -135,7 +135,7 @@ public class GxtWorkOrderController extends BaseController
|
|
|
/**
|
|
|
* 派单给班组组长
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('gxt:order:assign')")
|
|
|
+ @PreAuthorize("@ss.hasPermi('gxt:maintenance:order:assign')")
|
|
|
@Log(title = "派单给班组组长", businessType = BusinessType.UPDATE)
|
|
|
@PutMapping("/assignToTeamLeader/{id}")
|
|
|
public AjaxResult assignToTeamLeader(
|
|
|
@@ -149,7 +149,7 @@ public class GxtWorkOrderController extends BaseController
|
|
|
/**
|
|
|
* 班组组长接单
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('gxt:order:accept')")
|
|
|
+ @PreAuthorize("@ss.hasPermi('gxt:maintenance:order:accept')")
|
|
|
@Log(title = "班组组长接单", businessType = BusinessType.UPDATE)
|
|
|
@PutMapping("/acceptByTeamLeader/{id}")
|
|
|
public AjaxResult acceptByTeamLeader(@PathVariable("id") Long id)
|
|
|
@@ -160,7 +160,7 @@ public class GxtWorkOrderController extends BaseController
|
|
|
/**
|
|
|
* 班组组长派单给工作组成员
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('gxt:order:assign')")
|
|
|
+ @PreAuthorize("@ss.hasPermi('gxt:maintenance:order:assign')")
|
|
|
@Log(title = "派单给工作组成员", businessType = BusinessType.UPDATE)
|
|
|
@PutMapping("/assignToWorkGroupMember/{id}")
|
|
|
public AjaxResult assignToWorkGroupMember(
|
|
|
@@ -174,7 +174,7 @@ public class GxtWorkOrderController extends BaseController
|
|
|
/**
|
|
|
* 工作组成员接单
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('gxt:order:accept')")
|
|
|
+ @PreAuthorize("@ss.hasPermi('gxt:maintenance:order:accept')")
|
|
|
@Log(title = "工作组成员接单", businessType = BusinessType.UPDATE)
|
|
|
@PutMapping("/acceptByWorkGroupMember/{id}")
|
|
|
public AjaxResult acceptByWorkGroupMember(@PathVariable("id") Long id)
|
|
|
@@ -198,7 +198,7 @@ public class GxtWorkOrderController extends BaseController
|
|
|
/**
|
|
|
* 重启工单
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('gxt:order:restart')")
|
|
|
+ @PreAuthorize("@ss.hasPermi('gxt:maintenance:order:restart')")
|
|
|
@Log(title = "重启工单", businessType = BusinessType.UPDATE)
|
|
|
@PutMapping("/restart/{id}")
|
|
|
public AjaxResult restart(@PathVariable("id") Long id)
|
|
|
@@ -209,7 +209,7 @@ public class GxtWorkOrderController extends BaseController
|
|
|
/**
|
|
|
* 完成工单
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('gxt:order:complete')")
|
|
|
+ @PreAuthorize("@ss.hasPermi('gxt:maintenance:order:complete')")
|
|
|
@Log(title = "完成工单", businessType = BusinessType.UPDATE)
|
|
|
@PostMapping("/complete/{id}")
|
|
|
public AjaxResult complete(@PathVariable("id") Long id, @RequestBody GxtWorkOrder gxtWorkOrder)
|
|
|
@@ -221,7 +221,7 @@ public class GxtWorkOrderController extends BaseController
|
|
|
/**
|
|
|
* 查询工单流转记录
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('gxt:order:query')")
|
|
|
+ @PreAuthorize("@ss.hasPermi('gxt:maintenance:order:query')")
|
|
|
@GetMapping("/flow/{orderId}")
|
|
|
public AjaxResult getFlowList(@PathVariable("orderId") Long orderId)
|
|
|
{
|
|
|
@@ -232,7 +232,7 @@ public class GxtWorkOrderController extends BaseController
|
|
|
/**
|
|
|
* 接单(支持一次性选择处理人员和检修人员)
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('gxt:order:accept')")
|
|
|
+ @PreAuthorize("@ss.hasPermi('gxt:maintenance:order:accept')")
|
|
|
@Log(title = "接单", businessType = BusinessType.UPDATE)
|
|
|
@PostMapping("/accept/{id}")
|
|
|
public AjaxResult accept(@PathVariable("id") Long id, @RequestBody GxtWorkOrder gxtWorkOrder)
|
|
|
@@ -244,7 +244,7 @@ public class GxtWorkOrderController extends BaseController
|
|
|
/**
|
|
|
* 开始处理工单
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('gxt:order:start')")
|
|
|
+ @PreAuthorize("@ss.hasPermi('gxt:maintenance:order:start')")
|
|
|
@Log(title = "开始处理", businessType = BusinessType.UPDATE)
|
|
|
@PostMapping("/start/{id}")
|
|
|
public AjaxResult start(@PathVariable("id") Long id, @RequestBody GxtWorkOrder gxtWorkOrder)
|
|
|
@@ -256,7 +256,7 @@ public class GxtWorkOrderController extends BaseController
|
|
|
/**
|
|
|
* 暂停工单
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('gxt:order:pause')")
|
|
|
+ @PreAuthorize("@ss.hasPermi('gxt:maintenance:order:pause')")
|
|
|
@Log(title = "暂停工单", businessType = BusinessType.UPDATE)
|
|
|
@PostMapping("/pause/{id}")
|
|
|
public AjaxResult pause(@PathVariable("id") Long id, @RequestBody GxtWorkOrder gxtWorkOrder)
|
|
|
@@ -268,7 +268,7 @@ public class GxtWorkOrderController extends BaseController
|
|
|
/**
|
|
|
* 继续处理工单
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('gxt:order:resume')")
|
|
|
+ @PreAuthorize("@ss.hasPermi('gxt:maintenance:order:resume')")
|
|
|
@Log(title = "继续处理", businessType = BusinessType.UPDATE)
|
|
|
@PostMapping("/resume/{id}")
|
|
|
public AjaxResult resume(@PathVariable("id") Long id, @RequestBody GxtWorkOrder gxtWorkOrder)
|
|
|
@@ -280,7 +280,7 @@ public class GxtWorkOrderController extends BaseController
|
|
|
/**
|
|
|
* 挂起工单申请
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('gxt:order:suspend')")
|
|
|
+ @PreAuthorize("@ss.hasPermi('gxt:maintenance:order:suspend')")
|
|
|
@Log(title = "申请挂起", businessType = BusinessType.UPDATE)
|
|
|
@PostMapping("/suspend/{id}")
|
|
|
public AjaxResult suspend(@PathVariable("id") Long id, @RequestBody GxtWorkOrder gxtWorkOrder)
|
|
|
@@ -292,7 +292,7 @@ public class GxtWorkOrderController extends BaseController
|
|
|
/**
|
|
|
* 审批挂起申请
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('gxt:order:approve')")
|
|
|
+ @PreAuthorize("@ss.hasPermi('gxt:maintenance:order:approve')")
|
|
|
@Log(title = "审批挂起", businessType = BusinessType.UPDATE)
|
|
|
@PostMapping("/approve/{id}")
|
|
|
public AjaxResult approve(@PathVariable("id") Long id, @RequestBody GxtWorkOrder gxtWorkOrder)
|
|
|
@@ -304,7 +304,7 @@ public class GxtWorkOrderController extends BaseController
|
|
|
/**
|
|
|
* 上传工单附件
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('gxt:order:complete')")
|
|
|
+ @PreAuthorize("@ss.hasPermi('gxt:maintenance:order:complete')")
|
|
|
@Log(title = "上传附件", businessType = BusinessType.UPDATE)
|
|
|
@PostMapping("/uploadAttachments")
|
|
|
public AjaxResult uploadAttachments(
|