|
|
|
@ -21,6 +21,7 @@ import com.jfinal.plugin.activerecord.Record;
|
|
|
|
|
import com.jfinal.upload.UploadFile;
|
|
|
|
|
|
|
|
|
|
import java.io.File;
|
|
|
|
|
import java.net.URISyntaxException;
|
|
|
|
|
import java.util.HashMap;
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
import java.util.UUID;
|
|
|
|
@ -184,9 +185,9 @@ public class YpController extends Controller {
|
|
|
|
|
* 功能:导出excel
|
|
|
|
|
*/
|
|
|
|
|
@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";
|
|
|
|
|
//转成 json对象
|
|
|
|
|
JSONObject jo = FileUtil.readJsonFile(filePath);
|
|
|
|
|