updates
This commit is contained in:
parent
2ca26f4c5d
commit
4eaa5105ac
|
|
@ -216,6 +216,19 @@ public class YxSchoolController extends JeecgController<YxSchool, IYxSchoolServi
|
||||||
selectionList = Arrays.asList(selections.split(","));
|
selectionList = Arrays.asList(selections.split(","));
|
||||||
}
|
}
|
||||||
List<SchoolExportDTO> exportList = yxSchoolService.exportList(selectionList);
|
List<SchoolExportDTO> exportList = yxSchoolService.exportList(selectionList);
|
||||||
|
for (SchoolExportDTO schoolExportDTO : exportList) {
|
||||||
|
schoolExportDTO.setIs985("1".equals(schoolExportDTO.getIs985())?"是":"否");
|
||||||
|
schoolExportDTO.setIs211("1".equals(schoolExportDTO.getIs211())?"是":"否");
|
||||||
|
schoolExportDTO.setIsStrengthen("1".equals(schoolExportDTO.getIsStrengthen())?"是":"否");
|
||||||
|
schoolExportDTO.setYldx("1".equals(schoolExportDTO.getYldx())?"是":"否");
|
||||||
|
schoolExportDTO.setGzsz("1".equals(schoolExportDTO.getGzsz())?"是":"否");
|
||||||
|
schoolExportDTO.setGjtszy("1".equals(schoolExportDTO.getGjtszy())?"是":"否");
|
||||||
|
schoolExportDTO.setStszy("1".equals(schoolExportDTO.getStszy())?"是":"否");
|
||||||
|
schoolExportDTO.setGzd("1".equals(schoolExportDTO.getGzd())?"是":"否");
|
||||||
|
schoolExportDTO.setSjyl("1".equals(schoolExportDTO.getSjyl())?"是":"否");
|
||||||
|
schoolExportDTO.setSfsyl("1".equals(schoolExportDTO.getSfsyl())?"是":"否");
|
||||||
|
schoolExportDTO.setIsYs("1".equals(schoolExportDTO.getIsYs())?"是":"否");
|
||||||
|
}
|
||||||
ModelAndView mv = new ModelAndView(new JeecgEntityExcelView());
|
ModelAndView mv = new ModelAndView(new JeecgEntityExcelView());
|
||||||
mv.addObject(NormalExcelConstants.FILE_NAME, title);
|
mv.addObject(NormalExcelConstants.FILE_NAME, title);
|
||||||
mv.addObject(NormalExcelConstants.CLASS, SchoolExportDTO.class);
|
mv.addObject(NormalExcelConstants.CLASS, SchoolExportDTO.class);
|
||||||
|
|
@ -245,6 +258,198 @@ public class YxSchoolController extends JeecgController<YxSchool, IYxSchoolServi
|
||||||
params.setHeadRows(1);
|
params.setHeadRows(1);
|
||||||
params.setNeedSave(true);
|
params.setNeedSave(true);
|
||||||
try {
|
try {
|
||||||
|
List<SchoolExportDTO> list = ExcelImportUtil.importExcel(file.getInputStream(), SchoolExportDTO.class, params);
|
||||||
|
Map<String, YxSchool> schoolMap = new HashMap<>();
|
||||||
|
List<YxSchool> oldSchoolList = null;
|
||||||
|
// 查询之前的院校信息
|
||||||
|
if(list.size() <= 20){
|
||||||
|
LambdaQueryWrapper<YxSchool> yxSchoolLambdaQueryWrapper = new LambdaQueryWrapper<>();
|
||||||
|
yxSchoolLambdaQueryWrapper.in(YxSchool::getSchoolName, list.stream().map(YxSchool::getSchoolName).collect(Collectors.toList()));
|
||||||
|
oldSchoolList = yxSchoolService.list(yxSchoolLambdaQueryWrapper);
|
||||||
|
}else{
|
||||||
|
oldSchoolList = yxSchoolService.list();
|
||||||
|
}
|
||||||
|
for (YxSchool yxSchool : oldSchoolList) {
|
||||||
|
schoolMap.put(yxSchool.getSchoolName(), yxSchool);
|
||||||
|
}
|
||||||
|
|
||||||
|
// 检查数据
|
||||||
|
for (SchoolExportDTO schoolExportDTO : list) {
|
||||||
|
AssertUtils.notEmpty(schoolExportDTO.getSchoolName(), "请输入[主学校名称]!");
|
||||||
|
AssertUtils.notEmpty(schoolExportDTO.getSchoolCode(), "请输入[学校代码]!");
|
||||||
|
AssertUtils.notEmpty(schoolExportDTO.getChildSchoolName(), "请输入[子学校名称]!");
|
||||||
|
// AssertUtils.notEmpty(schoolExportDTO.getSchoolType(), "请输入[办学类型]!");
|
||||||
|
// AssertUtils.notEmpty(schoolExportDTO.getSchoolNature(), "请输入[办学性质]!");
|
||||||
|
}
|
||||||
|
YxSchool yxSchool = null;
|
||||||
|
YxSchoolChild yxSchoolChild = null;
|
||||||
|
// 判断 防止二次添加
|
||||||
|
List<String> schoolNameList = new ArrayList<>();
|
||||||
|
List<String> schoolCodeList = new ArrayList<>();
|
||||||
|
// 覆盖之前的院校信息/新增
|
||||||
|
for (SchoolExportDTO schoolExportDTO : list) {
|
||||||
|
yxSchool = schoolMap.get(schoolExportDTO.getSchoolName());
|
||||||
|
if(yxSchool == null){
|
||||||
|
yxSchool = new YxSchool();
|
||||||
|
yxSchool.setCreateTime(new Date());
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!schoolNameList.contains(schoolExportDTO.getSchoolName())) {
|
||||||
|
//是否 字段 处理
|
||||||
|
schoolExportDTO.setIs985("是".equals(schoolExportDTO.getIs985())?"1":"0");
|
||||||
|
schoolExportDTO.setIs211("是".equals(schoolExportDTO.getIs211())?"1":"0");
|
||||||
|
schoolExportDTO.setIsStrengthen("是".equals(schoolExportDTO.getIsStrengthen())?"1":"0");
|
||||||
|
schoolExportDTO.setYldx("是".equals(schoolExportDTO.getYldx())?"1":"0");
|
||||||
|
schoolExportDTO.setGzsz("是".equals(schoolExportDTO.getGzsz())?"1":"0");
|
||||||
|
schoolExportDTO.setGjtszy("是".equals(schoolExportDTO.getGjtszy())?"1":"0");
|
||||||
|
schoolExportDTO.setStszy("是".equals(schoolExportDTO.getStszy())?"1":"0");
|
||||||
|
schoolExportDTO.setGzd("是".equals(schoolExportDTO.getGzd())?"1":"0");
|
||||||
|
schoolExportDTO.setSjyl("是".equals(schoolExportDTO.getSjyl())?"1":"0");
|
||||||
|
schoolExportDTO.setSfsyl("是".equals(schoolExportDTO.getSfsyl())?"1":"0");
|
||||||
|
schoolExportDTO.setIsYs("是".equals(schoolExportDTO.getIsYs())?"1":"0");
|
||||||
|
org.apache.commons.beanutils.BeanUtils.copyProperties(yxSchool, schoolExportDTO);
|
||||||
|
//BeanUtils.copyProperties(schoolExportDTO, yxSchool);
|
||||||
|
if(schoolMap.containsKey(schoolExportDTO.getSchoolName())){
|
||||||
|
yxSchool.setId(schoolMap.get(schoolExportDTO.getSchoolName()).getId());
|
||||||
|
}
|
||||||
|
yxSchool.setUpdateTime(new Date());
|
||||||
|
if(StringUtils.isNotBlank(yxSchool.getId())){
|
||||||
|
yxSchoolService.updateById(yxSchool);
|
||||||
|
}else{
|
||||||
|
yxSchoolService.save(yxSchool);
|
||||||
|
}
|
||||||
|
schoolNameList.add(schoolExportDTO.getSchoolName());
|
||||||
|
}
|
||||||
|
if (schoolCodeList.contains(schoolExportDTO.getSchoolCode())) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
yxSchoolChild = yxSchoolChildService.getOne(
|
||||||
|
new LambdaQueryWrapper<YxSchoolChild>().eq(YxSchoolChild::getSchoolId, yxSchool.getId())
|
||||||
|
.eq(YxSchoolChild::getSchoolCode, schoolExportDTO.getSchoolCode())
|
||||||
|
);
|
||||||
|
if(yxSchoolChild == null){
|
||||||
|
yxSchoolChild = new YxSchoolChild();
|
||||||
|
yxSchoolChild.setCreateTime(new Date());
|
||||||
|
}
|
||||||
|
yxSchoolChild.setSchoolId(yxSchool.getId());
|
||||||
|
yxSchoolChild.setSchoolCode(schoolExportDTO.getSchoolCode());
|
||||||
|
yxSchoolChild.setSchoolName(schoolExportDTO.getSchoolName());
|
||||||
|
yxSchoolChild.setSchoolChildName(schoolExportDTO.getChildSchoolName());
|
||||||
|
yxSchoolChild.setUpdateTime(new Date());
|
||||||
|
if (StringUtils.isNotBlank(yxSchoolChild.getId())) {
|
||||||
|
yxSchoolChildService.updateById(yxSchoolChild);
|
||||||
|
}else{
|
||||||
|
yxSchoolChildService.save(yxSchoolChild);
|
||||||
|
}
|
||||||
|
schoolCodeList.add(schoolExportDTO.getSchoolCode());
|
||||||
|
}
|
||||||
|
// List<YxSchool> schoolList = yxSchoolService.list(new LambdaQueryWrapper<YxSchool>().select(YxSchool::getId, YxSchool::getSchoolName));
|
||||||
|
// Map<String, String> schoolNameMap = schoolList.stream().collect(Collectors.toMap(YxSchool::getSchoolName, YxSchool::getId));
|
||||||
|
// List<SchoolExportDTO> list = ExcelImportUtil.importExcel(file.getInputStream(), SchoolExportDTO.class, params);
|
||||||
|
// long start = System.currentTimeMillis();
|
||||||
|
// for (SchoolExportDTO schoolExportDTO : list) {
|
||||||
|
// schoolNameMap.get(schoolExportDTO.getMasterSchoolName());
|
||||||
|
// }
|
||||||
|
// service.saveBatch(list);
|
||||||
|
// log.info("消耗时间" + (System.currentTimeMillis() - start) + "毫秒");
|
||||||
|
return Result.ok("文件导入成功!数据行数:" + list.size());
|
||||||
|
// return Result.ok("暂未开放");
|
||||||
|
} catch (Exception e) {
|
||||||
|
String msg = e.getMessage();
|
||||||
|
log.error(msg, e);
|
||||||
|
if (msg != null && msg.indexOf("Duplicate entry") >= 0) {
|
||||||
|
return Result.error("文件导入失败:有重复数据!");
|
||||||
|
} else {
|
||||||
|
return Result.error("文件导入失败:" + e.getMessage());
|
||||||
|
}
|
||||||
|
} finally {
|
||||||
|
try {
|
||||||
|
file.getInputStream().close();
|
||||||
|
} catch (IOException e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return Result.error("文件导入失败!");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导入掌上志愿-艺术 院校数据数据
|
||||||
|
*
|
||||||
|
* @param request
|
||||||
|
* @param response
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@RequestMapping(value = "/importZszySchoolExcel", method = RequestMethod.POST)
|
||||||
|
public Result<?> importZszySchoolExcel(HttpServletRequest request, HttpServletResponse response) {
|
||||||
|
MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest) request;
|
||||||
|
Map<String, MultipartFile> fileMap = multipartRequest.getFileMap();
|
||||||
|
for (Map.Entry<String, MultipartFile> entity : fileMap.entrySet()) {
|
||||||
|
// 获取上传文件对象
|
||||||
|
MultipartFile file = entity.getValue();
|
||||||
|
ImportParams params = new ImportParams();
|
||||||
|
params.setTitleRows(0);
|
||||||
|
params.setHeadRows(0);
|
||||||
|
params.setNeedSave(true);
|
||||||
|
try {
|
||||||
|
List<ZszySchoolImportDTO> list = ExcelImportUtil.importExcel(file.getInputStream(), ZszySchoolImportDTO.class, params);
|
||||||
|
System.out.println(list.size());
|
||||||
|
List<YxSchool> schoolList = null;
|
||||||
|
YxSchool yxSchool = null;
|
||||||
|
for (ZszySchoolImportDTO zszySchoolImportDTO : list) {
|
||||||
|
LambdaQueryWrapper<YxSchool> objectLambdaQueryWrapper = new LambdaQueryWrapper<>();
|
||||||
|
objectLambdaQueryWrapper.eq(YxSchool::getSchoolName,zszySchoolImportDTO.getUnivName());
|
||||||
|
schoolList = yxSchoolService.list(objectLambdaQueryWrapper);
|
||||||
|
if (schoolList.size()>0) {
|
||||||
|
yxSchool = schoolList.get(0);
|
||||||
|
}else{
|
||||||
|
yxSchool = new YxSchool();
|
||||||
|
}
|
||||||
|
yxSchool.setSchoolName(zszySchoolImportDTO.getUnivName());
|
||||||
|
yxSchool.setSchoolWebsiteAddress(zszySchoolImportDTO.getUrl());
|
||||||
|
yxSchool.setSchoolPhone(zszySchoolImportDTO.getContact());
|
||||||
|
yxSchool.setSchoolIcon(zszySchoolImportDTO.getLogo());
|
||||||
|
yxSchool.setSchoolOpenDate(zszySchoolImportDTO.getEstablishYear());
|
||||||
|
yxSchool.setProvince(zszySchoolImportDTO.getProvName());
|
||||||
|
yxSchool.setCity(zszySchoolImportDTO.getCityName());
|
||||||
|
yxSchool.setStreet(zszySchoolImportDTO.getUnivAddress());
|
||||||
|
yxSchool.setAffiliation(zszySchoolImportDTO.getCompetentDepart());
|
||||||
|
if ("1".equals(zszySchoolImportDTO.getIsPublic())) {
|
||||||
|
yxSchool.setSchoolNature("公办");
|
||||||
|
}else{
|
||||||
|
yxSchool.setSchoolNature("民办");
|
||||||
|
}
|
||||||
|
yxSchool.setInstitutionType(zszySchoolImportDTO.getUnivTypeName());
|
||||||
|
yxSchool.setStudentNum(null);
|
||||||
|
yxSchool.setBaseInfo(zszySchoolImportDTO.getUnivDesc());
|
||||||
|
yxSchool.setIs211(zszySchoolImportDTO.getIs211());
|
||||||
|
yxSchool.setIs985(zszySchoolImportDTO.getIs985());
|
||||||
|
if ("是".equals(zszySchoolImportDTO.getIsProvincialKey())) {
|
||||||
|
yxSchool.setGzsz("省重点");
|
||||||
|
}
|
||||||
|
if (StringUtils.isNotBlank(zszySchoolImportDTO.getMaleProportion())) {
|
||||||
|
yxSchool.setMaleRatio(Double.valueOf(zszySchoolImportDTO.getMaleProportion()));
|
||||||
|
yxSchool.setFemaleRatio(100 - yxSchool.getMaleRatio());
|
||||||
|
}
|
||||||
|
if("是".equals(zszySchoolImportDTO.getIsFirstClass()) &&
|
||||||
|
"是".equals(zszySchoolImportDTO.getIsFirstLevel())){
|
||||||
|
yxSchool.setSfsyl("1");
|
||||||
|
}
|
||||||
|
yxSchoolService.saveOrUpdate(yxSchool);
|
||||||
|
|
||||||
|
YxSchoolChild yxSchoolChild = yxSchoolChildService.getOne(new LambdaQueryWrapper<YxSchoolChild>().eq(YxSchoolChild::getSchoolId, yxSchool.getId()).eq(YxSchoolChild::getSchoolCode, zszySchoolImportDTO.getUnivCode()));
|
||||||
|
if(yxSchoolChild == null){
|
||||||
|
yxSchoolChild = new YxSchoolChild();
|
||||||
|
yxSchoolChild.setCreateTime(new Date());
|
||||||
|
}
|
||||||
|
yxSchoolChild.setUpdateTime(new Date());
|
||||||
|
yxSchoolChild.setSchoolName(zszySchoolImportDTO.getUnivName());
|
||||||
|
yxSchoolChild.setSchoolChildName(zszySchoolImportDTO.getUnivName());
|
||||||
|
yxSchoolChild.setSchoolId(yxSchool.getId());
|
||||||
|
yxSchoolChild.setSchoolCode(zszySchoolImportDTO.getUnivCode());
|
||||||
|
yxSchoolChildService.saveOrUpdate(yxSchoolChild);
|
||||||
|
}
|
||||||
// List<YxSchool> schoolList = yxSchoolService.list(new LambdaQueryWrapper<YxSchool>().select(YxSchool::getId, YxSchool::getSchoolName));
|
// List<YxSchool> schoolList = yxSchoolService.list(new LambdaQueryWrapper<YxSchool>().select(YxSchool::getId, YxSchool::getSchoolName));
|
||||||
// Map<String, String> schoolNameMap = schoolList.stream().collect(Collectors.toMap(YxSchool::getSchoolName, YxSchool::getId));
|
// Map<String, String> schoolNameMap = schoolList.stream().collect(Collectors.toMap(YxSchool::getSchoolName, YxSchool::getId));
|
||||||
// List<SchoolExportDTO> list = ExcelImportUtil.importExcel(file.getInputStream(), SchoolExportDTO.class, params);
|
// List<SchoolExportDTO> list = ExcelImportUtil.importExcel(file.getInputStream(), SchoolExportDTO.class, params);
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@ import io.swagger.annotations.ApiModelProperty;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import lombok.EqualsAndHashCode;
|
import lombok.EqualsAndHashCode;
|
||||||
import lombok.experimental.Accessors;
|
import lombok.experimental.Accessors;
|
||||||
|
import org.jeecg.modules.yx.entity.YxSchool;
|
||||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
|
@ -16,25 +17,17 @@ import java.io.Serializable;
|
||||||
@Data
|
@Data
|
||||||
@Accessors(chain = true)
|
@Accessors(chain = true)
|
||||||
@EqualsAndHashCode(callSuper = false)
|
@EqualsAndHashCode(callSuper = false)
|
||||||
public class SchoolExportDTO implements Serializable {
|
public class SchoolExportDTO extends YxSchool implements Serializable{
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/**
|
|
||||||
* 学校名称
|
|
||||||
*/
|
|
||||||
@Excel(name = "主学校名称", width = 15)
|
|
||||||
@ApiModelProperty(value = "主学校名称")
|
|
||||||
private java.lang.String masterSchoolName;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 院校代码
|
* 院校代码
|
||||||
*/
|
*/
|
||||||
@Excel(name = "院校代码", width = 15)
|
@Excel(name = "院校代码", width = 15, orderNum = "2")
|
||||||
private String schoolCode;
|
private String schoolCode;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 院校名称
|
* 院校名称
|
||||||
*/
|
*/
|
||||||
@Excel(name = "院校名称", width = 15)
|
@Excel(name = "子级院校名称", width = 15, orderNum = "3")
|
||||||
private String schoolName;
|
private String childSchoolName;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,211 @@
|
||||||
|
package org.jeecg.modules.yx.dto;
|
||||||
|
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author ZhouWenTao
|
||||||
|
* @create 2025-06-24 12:59
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class ZszySchoolImportDTO {
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
|
||||||
|
@Excel(name = "学校代码", width = 15)
|
||||||
|
@ApiModelProperty(value = "学校名称")
|
||||||
|
private java.lang.String univCode;
|
||||||
|
|
||||||
|
@Excel(name = "学校名称", width = 15)
|
||||||
|
@ApiModelProperty(value = "学校名称")
|
||||||
|
private String univName;
|
||||||
|
|
||||||
|
@Excel(name = "查询状态", width = 15)
|
||||||
|
@ApiModelProperty(value = "查询状态")
|
||||||
|
private String queryStatus;
|
||||||
|
|
||||||
|
@Excel(name = "出国比例", width = 15)
|
||||||
|
@ApiModelProperty(value = "出国比例")
|
||||||
|
private String abroadProportion;
|
||||||
|
|
||||||
|
@Excel(name = "背景", width = 15)
|
||||||
|
@ApiModelProperty(value = "背景")
|
||||||
|
private String backGround;
|
||||||
|
|
||||||
|
@Excel(name = "城市代码", width = 15)
|
||||||
|
@ApiModelProperty(value = "城市代码")
|
||||||
|
private String city;
|
||||||
|
|
||||||
|
@Excel(name = "城市名称", width = 15)
|
||||||
|
@ApiModelProperty(value = "城市名称")
|
||||||
|
private String cityName;
|
||||||
|
|
||||||
|
@Excel(name = "主管部门", width = 15)
|
||||||
|
@ApiModelProperty(value = "主管部门")
|
||||||
|
private String competentDepart;
|
||||||
|
|
||||||
|
@Excel(name = "联系方式", width = 15)
|
||||||
|
@ApiModelProperty(value = "联系方式")
|
||||||
|
private String contact;
|
||||||
|
|
||||||
|
@Excel(name = "部门类型", width = 15)
|
||||||
|
@ApiModelProperty(value = "部门类型")
|
||||||
|
private String departType;
|
||||||
|
|
||||||
|
@Excel(name = "博士点情况", width = 15)
|
||||||
|
@ApiModelProperty(value = "博士点情况")
|
||||||
|
private String doctor;
|
||||||
|
|
||||||
|
@Excel(name = "宿舍情况", width = 15)
|
||||||
|
@ApiModelProperty(value = "宿舍情况")
|
||||||
|
private String dormitorySituation;
|
||||||
|
|
||||||
|
@Excel(name = "建校年份", width = 15)
|
||||||
|
@ApiModelProperty(value = "建校年份")
|
||||||
|
private String establishYear;
|
||||||
|
|
||||||
|
@Excel(name = "考试信息", width = 15)
|
||||||
|
@ApiModelProperty(value = "考试信息")
|
||||||
|
private String examInfo;
|
||||||
|
|
||||||
|
@Excel(name = "考试科目", width = 15)
|
||||||
|
@ApiModelProperty(value = "考试科目")
|
||||||
|
private String examSubject;
|
||||||
|
|
||||||
|
@Excel(name = "收藏标志", width = 15)
|
||||||
|
@ApiModelProperty(value = "收藏标志")
|
||||||
|
private String favFlag;
|
||||||
|
|
||||||
|
@Excel(name = "首字母", width = 15)
|
||||||
|
@ApiModelProperty(value = "首字母")
|
||||||
|
private String firstChar;
|
||||||
|
|
||||||
|
@Excel(name = "是否有专科", width = 15)
|
||||||
|
@ApiModelProperty(value = "是否有专科")
|
||||||
|
private String hasJunior;
|
||||||
|
|
||||||
|
@Excel(name = "是否有本科", width = 15)
|
||||||
|
@ApiModelProperty(value = "是否有本科")
|
||||||
|
private String hasRegular;
|
||||||
|
|
||||||
|
@Excel(name = "历史沿革", width = 15)
|
||||||
|
@ApiModelProperty(value = "历史沿革")
|
||||||
|
private String history;
|
||||||
|
|
||||||
|
@Excel(name = "是否211", width = 15)
|
||||||
|
@ApiModelProperty(value = "是否211")
|
||||||
|
private String is211;
|
||||||
|
|
||||||
|
@Excel(name = "是否985", width = 15)
|
||||||
|
@ApiModelProperty(value = "是否985")
|
||||||
|
private String is985;
|
||||||
|
|
||||||
|
@Excel(name = "是否八校联盟", width = 15)
|
||||||
|
@ApiModelProperty(value = "是否八校联盟")
|
||||||
|
private String isEightArts;
|
||||||
|
|
||||||
|
@Excel(name = "是否18所参考高校", width = 15)
|
||||||
|
@ApiModelProperty(value = "是否18所参考高校")
|
||||||
|
private String isEighteenReference;
|
||||||
|
|
||||||
|
@Excel(name = "是否考试", width = 15)
|
||||||
|
@ApiModelProperty(value = "是否考试")
|
||||||
|
private String isExam;
|
||||||
|
|
||||||
|
@Excel(name = "是否一流学科", width = 15)
|
||||||
|
@ApiModelProperty(value = "是否一流学科")
|
||||||
|
private String isFirstClass;
|
||||||
|
|
||||||
|
@Excel(name = "是否一级学科", width = 15)
|
||||||
|
@ApiModelProperty(value = "是否一级学科")
|
||||||
|
private String isFirstLevel;
|
||||||
|
|
||||||
|
@Excel(name = "是否省部共建", width = 15)
|
||||||
|
@ApiModelProperty(value = "是否省部共建")
|
||||||
|
private String isProvincialCooperate;
|
||||||
|
|
||||||
|
@Excel(name = "是否省属重点", width = 15)
|
||||||
|
@ApiModelProperty(value = "是否省属重点")
|
||||||
|
private String isProvincialKey;
|
||||||
|
|
||||||
|
@Excel(name = "是否公办", width = 15)
|
||||||
|
@ApiModelProperty(value = "是否公办")
|
||||||
|
private String isPublic;
|
||||||
|
|
||||||
|
@Excel(name = "是否30所独立院校", width = 15)
|
||||||
|
@ApiModelProperty(value = "是否30所独立院校")
|
||||||
|
private String isThirtyIndependent;
|
||||||
|
|
||||||
|
@Excel(name = "校徽", width = 15)
|
||||||
|
@ApiModelProperty(value = "校徽")
|
||||||
|
private String logo;
|
||||||
|
|
||||||
|
@Excel(name = "男生比例", width = 15)
|
||||||
|
@ApiModelProperty(value = "男生比例")
|
||||||
|
private String maleProportion;
|
||||||
|
|
||||||
|
@Excel(name = "硕士点情况", width = 15)
|
||||||
|
@ApiModelProperty(value = "硕士点情况")
|
||||||
|
private String master;
|
||||||
|
|
||||||
|
@Excel(name = "照片JSON", width = 15)
|
||||||
|
@ApiModelProperty(value = "照片JSON")
|
||||||
|
private String photoJson;
|
||||||
|
|
||||||
|
@Excel(name = "研究生情况", width = 15)
|
||||||
|
@ApiModelProperty(value = "研究生情况")
|
||||||
|
private String postgraduate;
|
||||||
|
|
||||||
|
@Excel(name = "省份代码", width = 15)
|
||||||
|
@ApiModelProperty(value = "省份代码")
|
||||||
|
private String provId;
|
||||||
|
|
||||||
|
@Excel(name = "省份名称", width = 15)
|
||||||
|
@ApiModelProperty(value = "省份名称")
|
||||||
|
private String provName;
|
||||||
|
|
||||||
|
@Excel(name = "奖学金情况", width = 15)
|
||||||
|
@ApiModelProperty(value = "奖学金情况")
|
||||||
|
private String scholarship;
|
||||||
|
|
||||||
|
@Excel(name = "学校地址", width = 15)
|
||||||
|
@ApiModelProperty(value = "学校地址")
|
||||||
|
private String univAddress;
|
||||||
|
|
||||||
|
@Excel(name = "学校描述", width = 15)
|
||||||
|
@ApiModelProperty(value = "学校描述")
|
||||||
|
private String univDesc;
|
||||||
|
|
||||||
|
@Excel(name = "学校ID", width = 15)
|
||||||
|
@ApiModelProperty(value = "学校ID")
|
||||||
|
private String univId;
|
||||||
|
|
||||||
|
@Excel(name = "学校状态", width = 15)
|
||||||
|
@ApiModelProperty(value = "学校状态")
|
||||||
|
private String univStatus;
|
||||||
|
|
||||||
|
@Excel(name = "学校类型代码", width = 15)
|
||||||
|
@ApiModelProperty(value = "学校类型代码")
|
||||||
|
private String univType;
|
||||||
|
|
||||||
|
@Excel(name = "学校类型名称", width = 15)
|
||||||
|
@ApiModelProperty(value = "学校类型名称")
|
||||||
|
private String univTypeName;
|
||||||
|
|
||||||
|
@Excel(name = "更新人ID", width = 15)
|
||||||
|
@ApiModelProperty(value = "更新人ID")
|
||||||
|
private String updatedBy;
|
||||||
|
|
||||||
|
@Excel(name = "更新人名称", width = 15)
|
||||||
|
@ApiModelProperty(value = "更新人名称")
|
||||||
|
private String updatedName;
|
||||||
|
|
||||||
|
@Excel(name = "更新时间", width = 15)
|
||||||
|
@ApiModelProperty(value = "更新时间")
|
||||||
|
private String updatedTime;
|
||||||
|
|
||||||
|
@Excel(name = "网址", width = 15)
|
||||||
|
@ApiModelProperty(value = "网址")
|
||||||
|
private String url;
|
||||||
|
}
|
||||||
|
|
@ -38,105 +38,103 @@ public class YxSchool implements Serializable {
|
||||||
/**
|
/**
|
||||||
* 学校名称
|
* 学校名称
|
||||||
*/
|
*/
|
||||||
@Excel(name = "学校名称", width = 15)
|
@Excel(name = "主学校名称", width = 15, orderNum = "1")
|
||||||
@ApiModelProperty(value = "学校名称")
|
@ApiModelProperty(value = "主学校名称")
|
||||||
private java.lang.String schoolName;
|
private java.lang.String schoolName;
|
||||||
/**
|
/**
|
||||||
* 官方网址
|
* 官方网址
|
||||||
*/
|
*/
|
||||||
@Excel(name = "官方网址", width = 15)
|
@Excel(name = "官方网址",orderNum = "20", width = 15)
|
||||||
@ApiModelProperty(value = "官方网址")
|
@ApiModelProperty(value = "官方网址")
|
||||||
private java.lang.String schoolWebsiteAddress;
|
private java.lang.String schoolWebsiteAddress;
|
||||||
/**
|
/**
|
||||||
* 学校电话
|
* 学校电话
|
||||||
*/
|
*/
|
||||||
@Excel(name = "学校电话", width = 15)
|
@Excel(name = "学校电话",orderNum = "20", width = 15)
|
||||||
@ApiModelProperty(value = "学校电话")
|
@ApiModelProperty(value = "学校电话")
|
||||||
private java.lang.String schoolPhone;
|
private java.lang.String schoolPhone;
|
||||||
/**
|
/**
|
||||||
* 电子邮箱
|
* 电子邮箱
|
||||||
*/
|
*/
|
||||||
@Excel(name = "电子邮箱", width = 15)
|
@Excel(name = "电子邮箱",orderNum = "20", width = 15)
|
||||||
@ApiModelProperty(value = "电子邮箱")
|
@ApiModelProperty(value = "电子邮箱")
|
||||||
private java.lang.String schoolEmail;
|
private java.lang.String schoolEmail;
|
||||||
/**
|
/**
|
||||||
* 学校图标
|
* 学校图标
|
||||||
*/
|
*/
|
||||||
@Excel(name = "学校图标", width = 15)
|
@Excel(name = "学校图标",orderNum = "20", width = 15)
|
||||||
@ApiModelProperty(value = "学校图标")
|
@ApiModelProperty(value = "学校图标")
|
||||||
private java.lang.String schoolIcon;
|
private java.lang.String schoolIcon;
|
||||||
/**
|
/**
|
||||||
* 办学日期
|
* 办学日期
|
||||||
*/
|
*/
|
||||||
@Excel(name = "办学日期", width = 15)
|
@Excel(name = "办学日期",orderNum = "20", width = 15)
|
||||||
/*@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
|
|
||||||
@DateTimeFormat(pattern = "yyyy-MM-dd")*/
|
|
||||||
@ApiModelProperty(value = "办学日期")
|
@ApiModelProperty(value = "办学日期")
|
||||||
private String schoolOpenDate;
|
private String schoolOpenDate;
|
||||||
/**
|
/**
|
||||||
* 省
|
* 省
|
||||||
*/
|
*/
|
||||||
@Excel(name = "省份", width = 15)
|
@Excel(name = "省份",orderNum = "20", width = 15)
|
||||||
@ApiModelProperty(value = "省份")
|
@ApiModelProperty(value = "省份")
|
||||||
private java.lang.String province;
|
private java.lang.String province;
|
||||||
/**
|
/**
|
||||||
* 市
|
* 市
|
||||||
*/
|
*/
|
||||||
@Excel(name = "城市", width = 15)
|
@Excel(name = "城市",orderNum = "20", width = 15)
|
||||||
@ApiModelProperty(value = "城市")
|
@ApiModelProperty(value = "城市")
|
||||||
private java.lang.String city;
|
private java.lang.String city;
|
||||||
/**
|
/**
|
||||||
* 区
|
* 区
|
||||||
*/
|
*/
|
||||||
@Excel(name = "区域", width = 15)
|
// @Excel(name = "区域",orderNum = "20", width = 15)
|
||||||
@ApiModelProperty(value = "区域")
|
@ApiModelProperty(value = "区域")
|
||||||
private java.lang.String area;
|
private java.lang.String area;
|
||||||
/**
|
/**
|
||||||
* 详细地址
|
* 详细地址
|
||||||
*/
|
*/
|
||||||
@Excel(name = "详细地址", width = 15)
|
@Excel(name = "详细地址",orderNum = "20", width = 15)
|
||||||
@ApiModelProperty(value = "详细地址")
|
@ApiModelProperty(value = "详细地址")
|
||||||
private java.lang.String street;
|
private java.lang.String street;
|
||||||
/**
|
/**
|
||||||
* 隶属于
|
* 隶属于
|
||||||
*/
|
*/
|
||||||
@Excel(name = "隶属于", width = 15)
|
@Excel(name = "隶属于",orderNum = "20", width = 15)
|
||||||
@ApiModelProperty(value = "隶属于")
|
@ApiModelProperty(value = "隶属于")
|
||||||
private java.lang.String affiliation;
|
private java.lang.String affiliation;
|
||||||
/**
|
/**
|
||||||
* 办学性质
|
* 办学性质
|
||||||
*/
|
*/
|
||||||
@Excel(name = "办学性质", width = 15)
|
@Excel(name = "办学性质",orderNum = "20", width = 15)
|
||||||
@ApiModelProperty(value = "办学性质")
|
@ApiModelProperty(value = "办学性质")
|
||||||
private java.lang.String schoolNature;
|
private java.lang.String schoolNature;
|
||||||
/**
|
/**
|
||||||
* 办学类型
|
* 办学类型
|
||||||
*/
|
*/
|
||||||
@Excel(name = "办学类型", width = 15)
|
@Excel(name = "办学类型",orderNum = "20", width = 15)
|
||||||
@ApiModelProperty(value = "办学类型")
|
@ApiModelProperty(value = "办学类型")
|
||||||
private java.lang.String schoolType;
|
private java.lang.String schoolType;
|
||||||
/**
|
/**
|
||||||
* 院校类型
|
* 院校类型
|
||||||
*/
|
*/
|
||||||
@Excel(name = "院校类型", width = 15)
|
@Excel(name = "院校类型",orderNum = "20", width = 15)
|
||||||
@ApiModelProperty(value = "院校类型")
|
@ApiModelProperty(value = "院校类型")
|
||||||
private java.lang.String institutionType;
|
private java.lang.String institutionType;
|
||||||
/**
|
/**
|
||||||
* 学生人数
|
* 学生人数
|
||||||
*/
|
*/
|
||||||
@Excel(name = "学生人数", width = 15)
|
@Excel(name = "学生人数",orderNum = "20", width = 15)
|
||||||
@ApiModelProperty(value = "学生人数")
|
@ApiModelProperty(value = "学生人数")
|
||||||
private java.lang.String studentNum;
|
private java.lang.String studentNum;
|
||||||
/**
|
/**
|
||||||
* 基本信息
|
* 基本信息
|
||||||
*/
|
*/
|
||||||
@Excel(name = "基本信息", width = 15)
|
@Excel(name = "基本信息",orderNum = "20", width = 15)
|
||||||
@ApiModelProperty(value = "基本信息")
|
@ApiModelProperty(value = "基本信息")
|
||||||
private java.lang.String baseInfo;
|
private java.lang.String baseInfo;
|
||||||
/**
|
/**
|
||||||
* 删除标识
|
* 删除标识
|
||||||
*/
|
*/
|
||||||
@Excel(name = "删除标识", width = 15)
|
// @Excel(name = "删除标识",orderNum = "20", width = 15)
|
||||||
@ApiModelProperty(value = "删除标识")
|
@ApiModelProperty(value = "删除标识")
|
||||||
@TableLogic
|
@TableLogic
|
||||||
private java.lang.Integer delFlag;
|
private java.lang.Integer delFlag;
|
||||||
|
|
@ -172,105 +170,105 @@ public class YxSchool implements Serializable {
|
||||||
/**
|
/**
|
||||||
* 标签
|
* 标签
|
||||||
*/
|
*/
|
||||||
@Excel(name = "标签", width = 15)
|
@Excel(name = "标签",orderNum = "20", width = 15)
|
||||||
@ApiModelProperty(value = "标签")
|
@ApiModelProperty(value = "标签")
|
||||||
private java.lang.String tags;
|
private java.lang.String tags;
|
||||||
/**
|
/**
|
||||||
* 学校批次
|
* 学校批次
|
||||||
*/
|
*/
|
||||||
@Excel(name = "学校批次", width = 15)
|
@Excel(name = "学校批次",orderNum = "20", width = 15)
|
||||||
@ApiModelProperty(value = "学校批次")
|
@ApiModelProperty(value = "学校批次")
|
||||||
private java.lang.String schoolBatch;
|
private java.lang.String schoolBatch;
|
||||||
/**
|
/**
|
||||||
* 985工程
|
* 985工程
|
||||||
*/
|
*/
|
||||||
@Excel(name = "985工程", width = 15)
|
@Excel(name = "985工程",orderNum = "20", width = 15)
|
||||||
@ApiModelProperty(value = "985工程")
|
@ApiModelProperty(value = "985工程")
|
||||||
private java.lang.Integer is985;
|
private java.lang.String is985;
|
||||||
/**
|
/**
|
||||||
* 211工程
|
* 211工程
|
||||||
*/
|
*/
|
||||||
@Excel(name = "211工程", width = 15)
|
@Excel(name = "211工程",orderNum = "20", width = 15)
|
||||||
@ApiModelProperty(value = "211工程")
|
@ApiModelProperty(value = "211工程")
|
||||||
private java.lang.Integer is211;
|
private java.lang.String is211;
|
||||||
/**
|
/**
|
||||||
* 强基计划
|
* 强基计划
|
||||||
*/
|
*/
|
||||||
@Excel(name = "强基计划", width = 15)
|
@Excel(name = "强基计划",orderNum = "20", width = 15)
|
||||||
@ApiModelProperty(value = "强基计划")
|
@ApiModelProperty(value = "强基计划")
|
||||||
private java.lang.Integer isStrengthen;
|
private java.lang.String isStrengthen;
|
||||||
/**
|
/**
|
||||||
* 占地面积(亩)
|
* 占地面积(亩)
|
||||||
*/
|
*/
|
||||||
@Excel(name = "占地面积(亩)", width = 15)
|
@Excel(name = "占地面积(亩)",orderNum = "20", width = 15)
|
||||||
@ApiModelProperty(value = "占地面积(亩)")
|
@ApiModelProperty(value = "占地面积(亩)")
|
||||||
private java.lang.Double are;
|
private java.lang.Double are;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 一流大学
|
* 一流大学
|
||||||
*/
|
*/
|
||||||
@Excel(name = "一流大学", width = 15)
|
@Excel(name = "一流大学",orderNum = "20", width = 15)
|
||||||
@ApiModelProperty(value = "一流大学")
|
@ApiModelProperty(value = "一流大学")
|
||||||
private java.lang.String yldx;
|
private java.lang.String yldx;
|
||||||
/**
|
/**
|
||||||
* 省重/国重
|
* 省重/国重
|
||||||
*/
|
*/
|
||||||
@Excel(name = "国重/省重", width = 15)
|
@Excel(name = "国重/省重",orderNum = "20", width = 15)
|
||||||
@ApiModelProperty(value = "国重/省重")
|
@ApiModelProperty(value = "国重/省重")
|
||||||
private java.lang.String gzsz;
|
private java.lang.String gzsz;
|
||||||
/**
|
/**
|
||||||
* 保研率
|
* 保研率
|
||||||
*/
|
*/
|
||||||
@Excel(name = "保研率", width = 15)
|
@Excel(name = "保研率",orderNum = "20", width = 15)
|
||||||
@ApiModelProperty(value = "保研率")
|
@ApiModelProperty(value = "保研率")
|
||||||
private java.lang.String byl;
|
private java.lang.String byl;
|
||||||
/**
|
/**
|
||||||
* 国家特色专业
|
* 国家特色专业
|
||||||
*/
|
*/
|
||||||
@Excel(name = "国家特色专业", width = 15)
|
@Excel(name = "国家特色专业",orderNum = "20", width = 15)
|
||||||
@ApiModelProperty(value = "国家特色专业")
|
@ApiModelProperty(value = "国家特色专业")
|
||||||
private java.lang.String gjtszy;
|
private java.lang.String gjtszy;
|
||||||
/**
|
/**
|
||||||
* 省特色专业
|
* 省特色专业
|
||||||
*/
|
*/
|
||||||
@Excel(name = "省特色专业", width = 15)
|
@Excel(name = "省特色专业",orderNum = "20", width = 15)
|
||||||
@ApiModelProperty(value = "省特色专业")
|
@ApiModelProperty(value = "省特色专业")
|
||||||
private java.lang.String stszy;
|
private java.lang.String stszy;
|
||||||
/**
|
/**
|
||||||
* 是否国重点
|
* 是否国重点
|
||||||
*/
|
*/
|
||||||
@Excel(name = "是否国重点", width = 15)
|
@Excel(name = "是否国重点",orderNum = "20", width = 15)
|
||||||
@ApiModelProperty(value = "是否国重点")
|
@ApiModelProperty(value = "是否国重点")
|
||||||
private java.lang.String gzd;
|
private java.lang.String gzd;
|
||||||
/**
|
/**
|
||||||
* 世界一流
|
* 世界一流
|
||||||
*/
|
*/
|
||||||
@Excel(name = "世界一流", width = 15)
|
@Excel(name = "世界一流",orderNum = "20", width = 15)
|
||||||
@ApiModelProperty(value = "世界一流")
|
@ApiModelProperty(value = "世界一流")
|
||||||
private java.lang.String sjyl;
|
private java.lang.String sjyl;
|
||||||
/**
|
/**
|
||||||
* 是否双一流
|
* 是否双一流
|
||||||
*/
|
*/
|
||||||
@Excel(name = "是否双一流", width = 15)
|
@Excel(name = "是否双一流",orderNum = "20", width = 15)
|
||||||
@ApiModelProperty(value = "是否双一流")
|
@ApiModelProperty(value = "是否双一流")
|
||||||
private java.lang.String sfsyl;
|
private java.lang.String sfsyl;
|
||||||
/**
|
/**
|
||||||
* 男生占比
|
* 男生占比
|
||||||
*/
|
*/
|
||||||
@Excel(name = "男生占比", width = 15)
|
@Excel(name = "男生占比",orderNum = "20", width = 15)
|
||||||
@ApiModelProperty(value = "男生占比")
|
@ApiModelProperty(value = "男生占比")
|
||||||
private java.lang.Double maleRatio;
|
private java.lang.Double maleRatio;
|
||||||
/**
|
/**
|
||||||
* 女生占比
|
* 女生占比
|
||||||
*/
|
*/
|
||||||
@Excel(name = "女生占比", width = 15)
|
@Excel(name = "女生占比",orderNum = "20", width = 15)
|
||||||
@ApiModelProperty(value = "女生占比")
|
@ApiModelProperty(value = "女生占比")
|
||||||
private java.lang.Double femaleRatio;
|
private java.lang.Double femaleRatio;
|
||||||
/**
|
/**
|
||||||
* 是否是艺术
|
* 是否是艺术
|
||||||
*/
|
*/
|
||||||
@Excel(name = "是否是艺术", width = 15)
|
@Excel(name = "是否是艺术",orderNum = "20", width = 15)
|
||||||
@ApiModelProperty(value = "是否是艺术")
|
@ApiModelProperty(value = "是否是艺术")
|
||||||
private java.lang.Integer isYs;
|
private java.lang.String isYs;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -470,30 +470,42 @@
|
||||||
ORDER BY FIELD(sc.school_code,<foreach collection="schoolCodeList" index="index" item="b" open="" separator="," close="">#{b}</foreach>)
|
ORDER BY FIELD(sc.school_code,<foreach collection="schoolCodeList" index="index" item="b" open="" separator="," close="">#{b}</foreach>)
|
||||||
</select>
|
</select>
|
||||||
<select id="queryPageList" resultType="org.jeecg.modules.yx.entity.YxSchool">
|
<select id="queryPageList" resultType="org.jeecg.modules.yx.entity.YxSchool">
|
||||||
SELECT s.* FROM yx_school s
|
SELECT s.*
|
||||||
LEFT JOIN yx_school_child sc ON sc.school_id = s.id
|
FROM yx_school s
|
||||||
<where>
|
<where>
|
||||||
<if test="qvo.schoolCode!=null and qvo.schoolCode!=''">
|
<if test="qvo.schoolCode!=null and qvo.schoolCode!=''">
|
||||||
|
AND EXISTS (
|
||||||
|
SELECT 1 FROM yx_school_child sc
|
||||||
|
WHERE sc.school_id = s.id
|
||||||
AND sc.school_code like concat('%',#{qvo.schoolCode},'%')
|
AND sc.school_code like concat('%',#{qvo.schoolCode},'%')
|
||||||
|
)
|
||||||
</if>
|
</if>
|
||||||
<if test="qvo.schoolName!=null and qvo.schoolName!=''">
|
<if test="qvo.schoolName!=null and qvo.schoolName!=''">
|
||||||
AND (sc.school_name like concat('%',#{qvo.schoolName},'%') or s.school_name like concat('%',#{qvo.schoolName},'%'))
|
AND (
|
||||||
|
EXISTS (
|
||||||
|
SELECT 1 FROM yx_school_child sc
|
||||||
|
WHERE sc.school_id = s.id
|
||||||
|
AND sc.school_name like concat('%',#{qvo.schoolName},'%')
|
||||||
|
)
|
||||||
|
OR s.school_name like concat('%',#{qvo.schoolName},'%')
|
||||||
|
)
|
||||||
</if>
|
</if>
|
||||||
</where>
|
</where>
|
||||||
ORDER BY s.create_time,s.update_time DESC
|
ORDER BY s.create_time, s.update_time DESC
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="exportList" resultType="org.jeecg.modules.yx.dto.SchoolExportDTO">
|
<select id="exportList" resultType="org.jeecg.modules.yx.dto.SchoolExportDTO">
|
||||||
SELECT s.id,
|
SELECT sc.school_code,
|
||||||
s.school_name as master_school_name,
|
sc.school_name as child_school_name,
|
||||||
sc.school_code,sc.school_name
|
s.*
|
||||||
FROM yx_school s
|
FROM yx_school s
|
||||||
LEFT JOIN yx_school_child sc ON sc.school_id = s.id
|
INNER JOIN yx_school_child sc ON sc.school_id = s.id
|
||||||
<where>
|
<where>
|
||||||
<if test="schoolIdList!=null and schoolIdList.size>0">
|
<if test="schoolIdList!=null and schoolIdList.size>0">
|
||||||
AND sc.school_id in
|
AND sc.school_id in
|
||||||
<foreach collection="schoolIdList" index="index" item="b" open="(" separator="," close=")">#{b}</foreach>
|
<foreach collection="schoolIdList" index="index" item="b" open="(" separator="," close=")">#{b}</foreach>
|
||||||
</if>
|
</if>
|
||||||
|
|
||||||
</where>
|
</where>
|
||||||
|
order by s.id desc
|
||||||
</select>
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|
|
||||||
|
|
@ -462,10 +462,10 @@ public class YxCalculationMajorServiceImpl extends ServiceImpl<YxCalculationMajo
|
||||||
}
|
}
|
||||||
|
|
||||||
//判断 是否是 985,211
|
//判断 是否是 985,211
|
||||||
if (1 == school.getIs211()) {
|
if ("1".equals(school.getIs211())) {
|
||||||
tagsList.add("211");
|
tagsList.add("211");
|
||||||
}
|
}
|
||||||
if (1 == school.getIs985()) {
|
if ("1".equals(school.getIs985())) {
|
||||||
tagsList.add("985");
|
tagsList.add("985");
|
||||||
}
|
}
|
||||||
if ("双一流".equals(school.getSfsyl())) {
|
if ("双一流".equals(school.getSfsyl())) {
|
||||||
|
|
|
||||||
|
|
@ -375,10 +375,10 @@ public class YxSchoolMajorServiceImpl extends ServiceImpl<YxSchoolMajorMapper, Y
|
||||||
}
|
}
|
||||||
|
|
||||||
//判断 是否是 985,211
|
//判断 是否是 985,211
|
||||||
if (1 == school.getIs211()) {
|
if ("1".equals(school.getIs211())) {
|
||||||
tagsList.add("211");
|
tagsList.add("211");
|
||||||
}
|
}
|
||||||
if (1 == school.getIs985()) {
|
if ("1".equals(school.getIs985())) {
|
||||||
tagsList.add("985");
|
tagsList.add("985");
|
||||||
}
|
}
|
||||||
if ("双一流".equals(school.getSfsyl())) {
|
if ("双一流".equals(school.getSfsyl())) {
|
||||||
|
|
@ -746,10 +746,10 @@ public class YxSchoolMajorServiceImpl extends ServiceImpl<YxSchoolMajorMapper, Y
|
||||||
}
|
}
|
||||||
|
|
||||||
//判断 是否是 985,211
|
//判断 是否是 985,211
|
||||||
if (1 == school.getIs211()) {
|
if ("1".equals(school.getIs211())) {
|
||||||
tagsList.add("211");
|
tagsList.add("211");
|
||||||
}
|
}
|
||||||
if (1 == school.getIs985()) {
|
if ("1".equals(school.getIs985())) {
|
||||||
tagsList.add("985");
|
tagsList.add("985");
|
||||||
}
|
}
|
||||||
if ("双一流".equals(school.getSfsyl())) {
|
if ("双一流".equals(school.getSfsyl())) {
|
||||||
|
|
@ -1321,10 +1321,10 @@ public class YxSchoolMajorServiceImpl extends ServiceImpl<YxSchoolMajorMapper, Y
|
||||||
}
|
}
|
||||||
|
|
||||||
//判断 是否是 985,211
|
//判断 是否是 985,211
|
||||||
if (1 == school.getIs211()) {
|
if ("1".equals(school.getIs211())) {
|
||||||
tagsList.add("211");
|
tagsList.add("211");
|
||||||
}
|
}
|
||||||
if (1 == school.getIs985()) {
|
if ("1".equals(school.getIs985())) {
|
||||||
tagsList.add("985");
|
tagsList.add("985");
|
||||||
}
|
}
|
||||||
if ("双一流".equals(school.getSfsyl())) {
|
if ("双一流".equals(school.getSfsyl())) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue