Browse Source

设备导入的模板下载——url地址

LLL 1 year ago
parent
commit
b6c9bcd41f

+ 13 - 1
itdmServer/module-iTDM/src/main/java/org/jeecg/modules/itdmDevice/controller/ItdmDeviceController.java

@@ -15,6 +15,7 @@ import org.jeecg.modules.itdmDevice.convert.ItdmDeviceConvert1;
 import org.jeecg.modules.itdmDevice.entity.ItdmDevice;
 import org.jeecg.modules.itdmDevice.service.IItdmDeviceService;
 import org.jeecg.modules.itdmDevice.vo.ItdmDeviceXLListVO;
+import org.jeecg.modules.qita.GlobalVariables;
 import org.jeecgframework.poi.excel.ExcelImportUtil;
 import org.jeecgframework.poi.excel.entity.ImportParams;
 import org.springframework.beans.factory.annotation.Autowired;
@@ -25,7 +26,8 @@ import org.springframework.web.servlet.ModelAndView;
 
 import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.HttpServletResponse;
-import java.io.IOException;
+import java.io.*;
+import java.net.URLEncoder;
 import java.util.*;
 import java.util.stream.Collectors;
 
@@ -45,6 +47,16 @@ public class ItdmDeviceController extends JeecgController<ItdmDevice, IItdmDevic
 
 
 	/**
+	 * 设备管理-导入的模板下载
+	 * */
+	@ApiOperation(value="设备管理——导入的模板下载", notes="设备管理——导入的模板下载")
+	@GetMapping("/downloadmuban")
+	public String downloadmuban()
+	{
+		return GlobalVariables.deviceMubanUrl;
+	}
+
+	/**
 	 * 设备管理-过期总数查询
 	 * */
 	@ApiOperation(value="设备管理-过期总数查询", notes="设备管理-过期总数查询")

+ 2 - 0
itdmServer/module-iTDM/src/main/java/org/jeecg/modules/qita/GlobalVariables.java

@@ -19,5 +19,7 @@ public class GlobalVariables {
     public static String js = "结束";
 
 
+    public static String deviceMubanUrl = "temp/设备表.xls";
+
 
 }