package com.ltkj.web.jmreport;
|
|
import org.omg.CORBA.Environment;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Value;
|
import org.springframework.security.access.prepost.PreAuthorize;
|
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RestController;
|
|
/**
|
* @Company: 西安路泰科技有限公司
|
* @Author: lige
|
* @Date: 2023/3/7 11:49
|
*/
|
@RestController
|
@RequestMapping("/report/jmreport")
|
public class JimuController {
|
@Value("${jimu.path}")
|
private String value;
|
|
@GetMapping("/index")
|
@PreAuthorize("@ss.hasPermi('report:jmreport:index')")
|
public String index(){
|
return value+"/jmreport/list";
|
}
|
|
// @GetMapping("/index")
|
// @PreAuthorize("@ss.hasPermi('report:jimu:index')")
|
// public int index(){
|
// return 1;
|
// }
|
|
@GetMapping("/view")
|
//@PreAuthorize("@ss.hasPermi('report:jimu:view')")
|
public String view(){
|
return value+"/jmreport/view";
|
}
|
|
@GetMapping("/exportPdf")
|
public String exportPdf(){
|
return value+"/jmreport/exportPdfStream";
|
}
|
|
|
// @GetMapping("/view")
|
// @PreAuthorize("@ss.hasPermi('report:jimu:view')")
|
// public int view(){
|
// return 1;
|
// }
|
}
|