Compare commits

...

2 Commits

@ -21,6 +21,7 @@ import com.jfinal.plugin.activerecord.Record;
import com.jfinal.upload.UploadFile; import com.jfinal.upload.UploadFile;
import java.io.File; import java.io.File;
import java.net.URISyntaxException;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;
import java.util.UUID; import java.util.UUID;
@ -184,9 +185,9 @@ public class YpController extends Controller {
* excel * excel
*/ */
@Before(GET.class) @Before(GET.class)
public void exportExcel() { public void exportExcel() throws URISyntaxException {
//模板文件 //模板文件
String excelPath = PathKit.getWebRootPath() + PropKit.get("excelExportTemplatePathSuffix").replace("\\", "/"); String excelPath = CommonUtil.getClassPath()+ PropKit.get("excelExportTemplatePathSuffix").replace("\\", "/");
String filePath = excelPath + "103.json"; String filePath = excelPath + "103.json";
//转成 json对象 //转成 json对象
JSONObject jo = FileUtil.readJsonFile(filePath); JSONObject jo = FileUtil.readJsonFile(filePath);

Loading…
Cancel
Save