|
|
@@ -0,0 +1,37 @@
|
|
|
+package com.uas.platform.b2b.controller;
|
|
|
+
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.stereotype.Controller;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
+import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
+
|
|
|
+import com.uas.platform.b2b.dao.ReportConfigDao;
|
|
|
+import com.uas.platform.b2b.service.ReportConfigService;
|
|
|
+
|
|
|
+/**
|
|
|
+ * 报表请求
|
|
|
+ * @author suntg
|
|
|
+ * @date 2015年3月9日19:58:22
|
|
|
+ *
|
|
|
+ */
|
|
|
+@Controller
|
|
|
+@RequestMapping(value="/report")
|
|
|
+public class ReportController {
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private ReportConfigService configService;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 根据企业UU号和页面名称获取报表名称
|
|
|
+ *
|
|
|
+ * @param json
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @RequestMapping(value = "/getName", method = RequestMethod.GET)
|
|
|
+ @ResponseBody
|
|
|
+ public String getReportNameByEnuuAndPagename(Long enuu, String pagename) {
|
|
|
+ return configService.getReportNameByEnuuAndPageName(enuu, pagename);
|
|
|
+ }
|
|
|
+
|
|
|
+}
|