申报管理

This commit is contained in:
SjS 2025-03-26 18:15:56 +08:00
parent 1b57e83dee
commit e50703034d
3 changed files with 27 additions and 5 deletions

View File

@ -55,8 +55,8 @@ public class FaultServiceImpl implements FaultService
@Override
public int insertFault(Fault fault)
{
fault.setCreateTime(DateUtils.getNowDate());
return faultMapper.insertFault(fault);
fault.setCreateTime(DateUtils.getNowDate());
return faultMapper.insertFault(fault);
}
/**

View File

@ -0,0 +1,22 @@
package com.ruoyi.web.app;
import com.ruoyi.bst.fault.service.FaultService;
import com.ruoyi.common.core.domain.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping("app/fault")
public class AppFaultController {
@Autowired
private FaultService faultService;
//TODO : 前台用户查询自己提交的申报信息
@GetMapping("/{id}")
public AjaxResult get(@PathVariable Long id) {
}
}

View File

@ -67,7 +67,7 @@ public class FaultController extends BaseController
}
/**
* 新增故障
* 新增故障信息
*/
@PreAuthorize("@ss.hasPermi('bst:fault:add')")
@Log(title = "故障", businessType = BusinessType.INSERT)
@ -78,7 +78,7 @@ public class FaultController extends BaseController
}
/**
* 修改故障
* 修改故障信息
*/
@PreAuthorize("@ss.hasPermi('bst:fault:edit')")
@Log(title = "故障", businessType = BusinessType.UPDATE)
@ -89,7 +89,7 @@ public class FaultController extends BaseController
}
/**
* 删除故障
* 删除故障信息
*/
@PreAuthorize("@ss.hasPermi('bst:fault:remove')")
@Log(title = "故障", businessType = BusinessType.DELETE)