|
@@ -15,21 +15,20 @@ import org.springframework.web.bind.annotation.*;
|
|
|
import java.util.List;
|
|
|
|
|
|
/**
|
|
|
- * 【请填写功能名称】Controller
|
|
|
+ * 危害工作许可证Controller
|
|
|
*
|
|
|
* @author ruoyi
|
|
|
* @date 2021-10-25
|
|
|
*/
|
|
|
@RestController
|
|
|
-@RequestMapping("/his/permit")
|
|
|
+@RequestMapping("/ticket/hazardworks")
|
|
|
public class THazardWorkPermitController extends BaseController {
|
|
|
@Autowired
|
|
|
private ITHazardWorkPermitService tHazardWorkPermitService;
|
|
|
|
|
|
/**
|
|
|
- * 查询【请填写功能名称】列表
|
|
|
+ * 查询危害工作许可证列表
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('his:permit:list')")
|
|
|
@GetMapping("/list")
|
|
|
public TableDataInfo list(THazardWorkPermit tHazardWorkPermit) {
|
|
|
startPage();
|
|
@@ -38,10 +37,9 @@ public class THazardWorkPermitController extends BaseController {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 导出【请填写功能名称】列表
|
|
|
+ * 导出危害工作许可证列表
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('his:permit:export')")
|
|
|
- @Log(title = "【请填写功能名称】", businessType = BusinessType.EXPORT)
|
|
|
+ @Log(title = "危害工作许可证", businessType = BusinessType.EXPORT)
|
|
|
@GetMapping("/export")
|
|
|
public AjaxResult export(THazardWorkPermit tHazardWorkPermit) {
|
|
|
List<THazardWorkPermit> list = tHazardWorkPermitService.selectTHazardWorkPermitList(tHazardWorkPermit);
|
|
@@ -50,39 +48,35 @@ public class THazardWorkPermitController extends BaseController {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 获取【请填写功能名称】详细信息
|
|
|
+ * 获取危害工作许可证详细信息
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('his:permit:query')")
|
|
|
@GetMapping(value = "/{aId}")
|
|
|
public AjaxResult getInfo(@PathVariable("aId") Long aId) {
|
|
|
return AjaxResult.success(tHazardWorkPermitService.selectTHazardWorkPermitById(aId));
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 新增【请填写功能名称】
|
|
|
+ * 新增危害工作许可证
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('his:permit:add')")
|
|
|
- @Log(title = "【请填写功能名称】", businessType = BusinessType.INSERT)
|
|
|
+ @Log(title = "危害工作许可证", businessType = BusinessType.INSERT)
|
|
|
@PostMapping
|
|
|
public AjaxResult add(@RequestBody THazardWorkPermit tHazardWorkPermit) {
|
|
|
return toAjax(tHazardWorkPermitService.insertTHazardWorkPermit(tHazardWorkPermit));
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 修改【请填写功能名称】
|
|
|
+ * 修改危害工作许可证
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('his:permit:edit')")
|
|
|
- @Log(title = "【请填写功能名称】", businessType = BusinessType.UPDATE)
|
|
|
+ @Log(title = "危害工作许可证", businessType = BusinessType.UPDATE)
|
|
|
@PutMapping
|
|
|
public AjaxResult edit(@RequestBody THazardWorkPermit tHazardWorkPermit) {
|
|
|
return toAjax(tHazardWorkPermitService.updateTHazardWorkPermit(tHazardWorkPermit));
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 删除【请填写功能名称】
|
|
|
+ * 删除危害工作许可证
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('his:permit:remove')")
|
|
|
- @Log(title = "【请填写功能名称】", businessType = BusinessType.DELETE)
|
|
|
+ @Log(title = "危害工作许可证", businessType = BusinessType.DELETE)
|
|
|
@DeleteMapping("/{aIds}")
|
|
|
public AjaxResult remove(@PathVariable Long[] aIds) {
|
|
|
return toAjax(tHazardWorkPermitService.deleteTHazardWorkPermitByIds(aIds));
|