|
|
@ -1,13 +1,18 @@
|
|
|
|
package com.ibeetl.jlw.web;
|
|
|
|
package com.ibeetl.jlw.web;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import cn.jlw.Interceptor.SCoreUser;
|
|
|
|
import cn.jlw.validate.ValidateConfig;
|
|
|
|
import cn.jlw.validate.ValidateConfig;
|
|
|
|
import com.ibeetl.admin.core.annotation.Function;
|
|
|
|
import com.ibeetl.admin.core.annotation.Function;
|
|
|
|
|
|
|
|
import com.ibeetl.admin.core.entity.CoreUser;
|
|
|
|
import com.ibeetl.admin.core.file.FileService;
|
|
|
|
import com.ibeetl.admin.core.file.FileService;
|
|
|
|
|
|
|
|
import com.ibeetl.admin.core.util.PlatformException;
|
|
|
|
import com.ibeetl.admin.core.web.JsonResult;
|
|
|
|
import com.ibeetl.admin.core.web.JsonResult;
|
|
|
|
import com.ibeetl.jlw.entity.UniversitiesCollegesJurisdictionExperimentalSystem;
|
|
|
|
import com.ibeetl.jlw.entity.UniversitiesCollegesJurisdictionExperimentalSystem;
|
|
|
|
import com.ibeetl.jlw.service.UniversitiesCollegesJurisdictionCurriculumResourcesService;
|
|
|
|
import com.ibeetl.jlw.service.UniversitiesCollegesJurisdictionCurriculumResourcesService;
|
|
|
|
import com.ibeetl.jlw.service.UniversitiesCollegesJurisdictionExperimentalSystemService;
|
|
|
|
import com.ibeetl.jlw.service.UniversitiesCollegesJurisdictionExperimentalSystemService;
|
|
|
|
import com.ibeetl.jlw.web.query.UniversitiesCollegesJurisdictionExperimentalSystemQuery;
|
|
|
|
import com.ibeetl.jlw.web.query.UniversitiesCollegesJurisdictionExperimentalSystemQuery;
|
|
|
|
|
|
|
|
import com.ibeetl.jlw.web.query.UniversitiesCollegesQuery;
|
|
|
|
|
|
|
|
import lombok.SneakyThrows;
|
|
|
|
import org.apache.commons.logging.Log;
|
|
|
|
import org.apache.commons.logging.Log;
|
|
|
|
import org.apache.commons.logging.LogFactory;
|
|
|
|
import org.apache.commons.logging.LogFactory;
|
|
|
|
import org.beetl.sql.core.engine.PageQuery;
|
|
|
|
import org.beetl.sql.core.engine.PageQuery;
|
|
|
@ -20,6 +25,7 @@ import org.springframework.web.bind.annotation.PostMapping;
|
|
|
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
|
import org.springframework.web.servlet.ModelAndView;
|
|
|
|
import org.springframework.web.servlet.ModelAndView;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
@ -164,4 +170,30 @@ public class UniversitiesCollegesJurisdictionExperimentalSystemController{
|
|
|
|
return JsonResult.success();
|
|
|
|
return JsonResult.success();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@SneakyThrows
|
|
|
|
|
|
|
|
@PostMapping(MODEL + "/export.json")
|
|
|
|
|
|
|
|
@ResponseBody
|
|
|
|
|
|
|
|
public void export(UniversitiesCollegesQuery param, @SCoreUser CoreUser coreUser, HttpServletResponse resp) {
|
|
|
|
|
|
|
|
if(null == coreUser){
|
|
|
|
|
|
|
|
throw new PlatformException("请登录后再操作");
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
// /** 构建表头 */
|
|
|
|
|
|
|
|
// Map<String, String> header = new LinkedHashMap<>(11);
|
|
|
|
|
|
|
|
// header.put("universitiesCollegesName", "院校名称");
|
|
|
|
|
|
|
|
// header.put("universitiesCollegesProvince", "所属省份");
|
|
|
|
|
|
|
|
// header.put("universitiesCollegesCity", "所属城市");
|
|
|
|
|
|
|
|
// header.put("universitiesCollegesContacts", "院校联系人");
|
|
|
|
|
|
|
|
// header.put("universitiesCollegesContactsMobile", "联系人电话");
|
|
|
|
|
|
|
|
// header.put("universitiesCollegesContactsEmail", "联系人邮箱");
|
|
|
|
|
|
|
|
// header.put("addTime", "添加时间");
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// List<UniversitiesCollegesJurisdictionExperimentalSystem> datas = universitiesCollegesJurisdictionExperimentalSystemService.getValues(param);
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// List<Map<String, Object>> maps = BaseEntity2MapWithParallel(datas);
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// String filename = StrUtil.format("院校权限导出-{}.xlsx", DateUtil.formatDate(DateUtil.date()));
|
|
|
|
|
|
|
|
// write(resp, filename,"Sheet1", header.values(), convertData(header.keySet(), maps));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|