|
@@ -35,7 +35,6 @@ public class DiagnosisController extends BaseController {
|
|
|
private IDiagnosisService dgService;
|
|
|
|
|
|
@ApiOperation(value = "获取诊断列表")
|
|
|
- @PreAuthorize("@ss.hasPermi('work:diagnosis:list')")
|
|
|
@GetMapping("/list")
|
|
|
public TableDataInfo list(Diagnosis diagnosis){
|
|
|
startPage();
|
|
@@ -44,14 +43,12 @@ public class DiagnosisController extends BaseController {
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "根据id查询")
|
|
|
- @PreAuthorize("@ss.hasPermi('work:diagnosis:query')")
|
|
|
@GetMapping(value = "/detail/{id}")
|
|
|
public AjaxResult detail(@PathVariable("id") Long id){
|
|
|
return AjaxResult.success(dgService.getById(id));
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "添加诊断信息")
|
|
|
- @PreAuthorize("@ss.hasPermi('work:diagnosis:add')")
|
|
|
@Log(title = "诊断", businessType = BusinessType.INSERT)
|
|
|
@PostMapping("/add")
|
|
|
public AjaxResult add(@RequestBody Diagnosis dg){
|
|
@@ -59,7 +56,6 @@ public class DiagnosisController extends BaseController {
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "修改诊断信息")
|
|
|
- @PreAuthorize("@ss.hasPermi('work:diagnosis:edit')")
|
|
|
@Log(title = "诊断", businessType = BusinessType.UPDATE)
|
|
|
@PostMapping("/edit")
|
|
|
public AjaxResult edit(@RequestBody Diagnosis dg){
|
|
@@ -67,7 +63,6 @@ public class DiagnosisController extends BaseController {
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "删除诊断信息")
|
|
|
- @PreAuthorize("@ss.hasPermi('work:diagnosis:remove')")
|
|
|
@Log(title = "诊断", businessType = BusinessType.DELETE)
|
|
|
@GetMapping("/remove/{ids}")
|
|
|
public AjaxResult remove(@PathVariable Long[] ids){
|