| 文件名从 fzzy-igdss-web/src/main/java/com/fzzy/sys/controller/patrol/PatrolController.java 修改 |
| | |
| | | package com.fzzy.sys.controller.patrol; |
| | | package com.fzzy.sys.controller.security.patrol; |
| | | |
| | | import com.fzzy.igds.domain.Patrol; |
| | | import com.fzzy.igds.utils.ContextUtil; |
| | | import com.fzzy.sys.manager.patrol.PatrolManager; |
| | | import com.fzzy.sys.manager.security.patrol.PatrolManager; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | |
| | | import java.util.List; |
| | | |
| | | @Controller |
| | | @RequestMapping("/patrol") |
| | | @RequestMapping("/security/patrol") |
| | | public class PatrolController extends BaseController { |
| | | |
| | | private static final String prefix = "patrol"; |
| | | private static final String prefix = "security/patrol"; |
| | | |
| | | @Resource |
| | | private PatrolManager patrolManager; |
| | |
| | | * @author sgj |
| | | * @date 2025/12/06 |
| | | */ |
| | | @RequiresPermissions("web:patrol:view") |
| | | @RequiresPermissions("web:security:patrol:view") |
| | | @GetMapping() |
| | | public String patrol() { |
| | | return prefix + "/patrol"; |
| | |
| | | /** |
| | | * 鏌ヨ鐢靛瓙宸℃洿鍒楄〃 |
| | | */ |
| | | @RequiresPermissions("web:patrol:list") |
| | | @RequiresPermissions("web:security:patrol:list") |
| | | @PostMapping("/list") |
| | | @ResponseBody |
| | | public TableDataInfo list(Patrol param) { |
| | |
| | | * 瀵煎嚭鐢靛瓙宸℃洿鍒楄〃 |
| | | */ |
| | | @Log(title = "鐢靛瓙宸℃洿绠$悊", businessType = BusinessType.EXPORT) |
| | | @RequiresPermissions("web:patrol:export") |
| | | @RequiresPermissions("web:security:patrol:export") |
| | | @PostMapping("/export") |
| | | @ResponseBody |
| | | public AjaxResult export(Patrol param) { |
| | |
| | | /** |
| | | * 鏂板鐢靛瓙宸℃洿鏁版嵁 |
| | | */ |
| | | @RequiresPermissions("web:patrol:add") |
| | | @RequiresPermissions("web:security:patrol:add") |
| | | @Log(title = "鐢靛瓙宸℃洿绠$悊", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | @ResponseBody |
| | |
| | | /** |
| | | * 淇敼鐢靛瓙宸℃洿椤甸潰 |
| | | */ |
| | | @RequiresPermissions("web:patrol:edit") |
| | | @RequiresPermissions("web:security:patrol:edit") |
| | | @GetMapping("/edit/{id}") |
| | | public String edit(@PathVariable("id") String id, ModelMap mmap) { |
| | | String companyId = ShiroUtils.getLoginUserCompanyId(); |
| | |
| | | /** |
| | | * 淇敼鐢靛瓙宸℃洿鏁版嵁 |
| | | */ |
| | | @RequiresPermissions("web:patrol:edit") |
| | | @RequiresPermissions("web:security:patrol:edit") |
| | | @Log(title = "鐢靛瓙宸℃洿绠$悊", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | @ResponseBody |
| | |
| | | /** |
| | | * 鍒犻櫎鐢靛瓙宸℃洿鏁版嵁 |
| | | */ |
| | | @RequiresPermissions("web:patrol:remove") |
| | | @RequiresPermissions("web:security:patrol:remove") |
| | | @Log(title = "鐢靛瓙宸℃洿绠$悊", businessType = BusinessType.DELETE) |
| | | @PostMapping("/remove") |
| | | @ResponseBody |