修改 监控页面链接

master
wangh 1 year ago
parent 6a0c8d8b8f
commit 6e8e91ab83

@ -37,7 +37,7 @@ public class ApiController {
@Autowired @Autowired
private IBaseCustomerService baseCustomerService;//客户 private IBaseCustomerService baseCustomerService;//客户
@ApiOperation(tags = {"首页"}, value = "获取客户展示") @ApiOperation(tags = {"首页","文档归档"}, value = "客户-列表")
@GetMapping("/home/queryCustomer") @GetMapping("/home/queryCustomer")
public AjaxResult queryCustomer() { public AjaxResult queryCustomer() {
return success(baseCustomerService.selectBaseCustomerList(null)); return success(baseCustomerService.selectBaseCustomerList(null));

@ -44,8 +44,7 @@ public class BaseCustomerController extends BaseController {
/** /**
* *
*/ */
// @RequiresPermissions("manage:base_customer:list") @RequiresPermissions("manage:base_customer:list")
@ApiOperation(tags = {"文档归档"}, value = "客户-列表")
@PostMapping("/list") @PostMapping("/list")
@ResponseBody @ResponseBody
public TableDataInfo list(BaseCustomer baseCustomer) { public TableDataInfo list(BaseCustomer baseCustomer) {

@ -24,37 +24,34 @@ import com.haiwei.common.core.page.TableDataInfo;
/** /**
* Controller * Controller
* *
* @author wangh * @author wangh
* @date 2023-09-28 * @date 2023-09-28
*/ */
@Controller @Controller
@RequestMapping("/manage/base_file") @RequestMapping("/manage/base_file")
public class BsaeFileController extends BaseController public class BsaeFileController extends BaseController {
{
private String prefix = "manage/base_file"; private String prefix = "manage/base_file";
@Autowired @Autowired
private IBsaeFileService bsaeFileService; private IBsaeFileService bsaeFileService;
@Autowired @Autowired
private IBaseCustomerService baseCustomerService; private IBaseCustomerService baseCustomerService;
@RequiresPermissions("manage:base_file:view") @RequiresPermissions("manage:base_file:view")
@GetMapping() @GetMapping()
public String base_file(ModelMap mmap) public String base_file(ModelMap mmap) {
{ mmap.put("customers", baseCustomerService.selectBaseCustomerList(null));
mmap.put("customers",baseCustomerService.selectBaseCustomerList(null));
return prefix + "/base_file"; return prefix + "/base_file";
} }
/** /**
* *
*/ */
// @RequiresPermissions("manage:base_file:list") @RequiresPermissions("manage:base_file:list")
@ApiOperation(tags = {"文档归档"}, value = "文件-查询")
@PostMapping("/list") @PostMapping("/list")
@ResponseBody @ResponseBody
public TableDataInfo list(BsaeFile bsaeFile) public TableDataInfo list(BsaeFile bsaeFile) {
{
startPage(); startPage();
List<BsaeFile> list = bsaeFileService.selectBsaeFileList(bsaeFile); List<BsaeFile> list = bsaeFileService.selectBsaeFileList(bsaeFile);
return getDataTable(list); return getDataTable(list);
@ -67,8 +64,7 @@ public class BsaeFileController extends BaseController
@Log(title = "文档归档", businessType = BusinessType.EXPORT) @Log(title = "文档归档", businessType = BusinessType.EXPORT)
@PostMapping("/export") @PostMapping("/export")
@ResponseBody @ResponseBody
public AjaxResult export(BsaeFile bsaeFile) public AjaxResult export(BsaeFile bsaeFile) {
{
List<BsaeFile> list = bsaeFileService.selectBsaeFileList(bsaeFile); List<BsaeFile> list = bsaeFileService.selectBsaeFileList(bsaeFile);
ExcelUtil<BsaeFile> util = new ExcelUtil<BsaeFile>(BsaeFile.class); ExcelUtil<BsaeFile> util = new ExcelUtil<BsaeFile>(BsaeFile.class);
return util.exportExcel(list, "base_file"); return util.exportExcel(list, "base_file");
@ -79,9 +75,8 @@ public class BsaeFileController extends BaseController
*/ */
@ApiOperation(tags = {"文档归档"}, value = "文件-添加") @ApiOperation(tags = {"文档归档"}, value = "文件-添加")
@GetMapping("/add") @GetMapping("/add")
public String add(ModelMap mmap) public String add(ModelMap mmap) {
{ mmap.put("customers", baseCustomerService.selectBaseCustomerList(null));
mmap.put("customers",baseCustomerService.selectBaseCustomerList(null));
return prefix + "/add"; return prefix + "/add";
} }
@ -92,8 +87,7 @@ public class BsaeFileController extends BaseController
@Log(title = "文档归档", businessType = BusinessType.INSERT) @Log(title = "文档归档", businessType = BusinessType.INSERT)
@PostMapping("/add") @PostMapping("/add")
@ResponseBody @ResponseBody
public AjaxResult addSave(BsaeFile bsaeFile) public AjaxResult addSave(BsaeFile bsaeFile) {
{
return toAjax(bsaeFileService.insertBsaeFile(bsaeFile)); return toAjax(bsaeFileService.insertBsaeFile(bsaeFile));
} }
@ -101,11 +95,10 @@ public class BsaeFileController extends BaseController
* *
*/ */
@GetMapping("/edit/{objid}") @GetMapping("/edit/{objid}")
public String edit(@PathVariable("objid") Long objid, ModelMap mmap) public String edit(@PathVariable("objid") Long objid, ModelMap mmap) {
{
BsaeFile bsaeFile = bsaeFileService.selectBsaeFileById(objid); BsaeFile bsaeFile = bsaeFileService.selectBsaeFileById(objid);
mmap.put("bsaeFile", bsaeFile); mmap.put("bsaeFile", bsaeFile);
mmap.put("customers",baseCustomerService.selectBaseCustomerList(null)); mmap.put("customers", baseCustomerService.selectBaseCustomerList(null));
return prefix + "/edit"; return prefix + "/edit";
} }
@ -116,8 +109,7 @@ public class BsaeFileController extends BaseController
@Log(title = "文档归档", businessType = BusinessType.UPDATE) @Log(title = "文档归档", businessType = BusinessType.UPDATE)
@PostMapping("/edit") @PostMapping("/edit")
@ResponseBody @ResponseBody
public AjaxResult editSave(BsaeFile bsaeFile) public AjaxResult editSave(BsaeFile bsaeFile) {
{
return toAjax(bsaeFileService.updateBsaeFile(bsaeFile)); return toAjax(bsaeFileService.updateBsaeFile(bsaeFile));
} }
@ -127,10 +119,19 @@ public class BsaeFileController extends BaseController
// @RequiresPermissions("manage:base_file:remove") // @RequiresPermissions("manage:base_file:remove")
@ApiOperation(tags = {"文档归档"}, value = "文件删除") @ApiOperation(tags = {"文档归档"}, value = "文件删除")
@Log(title = "文档归档", businessType = BusinessType.DELETE) @Log(title = "文档归档", businessType = BusinessType.DELETE)
@PostMapping( "/remove") @PostMapping("/remove")
@ResponseBody @ResponseBody
public AjaxResult remove(String ids) public AjaxResult remove(String ids) {
{
return toAjax(bsaeFileService.deleteBsaeFileByIds(ids)); return toAjax(bsaeFileService.deleteBsaeFileByIds(ids));
} }
@ApiOperation(tags = {"文档归档"}, value = "文件-列表")
@PostMapping("/fileList")
@ResponseBody
public AjaxResult list() {
List<BsaeFile> list = bsaeFileService.selectBsaeFileList(null);
return AjaxResult.success(list);
}
} }

Loading…
Cancel
Save