提交 0a92bc86 authored 作者: zhouzhigang's avatar zhouzhigang

--no commit message

上级 10fbd819
package com.zrqx.core.vo.schoolsysuser.fg.basicteachingplan; package com.zrqx.core.vo.schoolsysuser.fg.basicteachingplan;
import com.zrqx.core.model.school.export.ExportModel;
import com.zrqx.core.util.excelutil.ExcelResources; import com.zrqx.core.util.excelutil.ExcelResources;
import com.zrqx.core.util.excelutil.ExcelSheetParams; import com.zrqx.core.util.excelutil.ExcelSheetParams;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
...@@ -9,7 +8,7 @@ import lombok.Data; ...@@ -9,7 +8,7 @@ import lombok.Data;
@Data @Data
@ExcelSheetParams(startRow = 2) @ExcelSheetParams(startRow = 2)
@ApiModel(value = "BasicPlanErrVo",description = "培养层次错误信息列表vo") @ApiModel(value = "BasicPlanErrVo",description = "培养层次错误信息列表vo")
public class BasicPlanErrVo extends ExportModel{ public class BasicPlanErrVo{
@ExcelResources(title="学级") @ExcelResources(title="学级")
private Integer academicLevel; private Integer academicLevel;
...@@ -23,5 +22,7 @@ public class BasicPlanErrVo extends ExportModel{ ...@@ -23,5 +22,7 @@ public class BasicPlanErrVo extends ExportModel{
private Integer educationalSystem; private Integer educationalSystem;
@ApiModelProperty("定向培养(非必填)") @ApiModelProperty("定向培养(非必填)")
private Integer train; private Integer train;
@ExcelResources(title="错误信息")
private String msg;
} }
package com.zrqx.core.vo.schoolsysuser.fg.major; package com.zrqx.core.vo.schoolsysuser.fg.major;
import com.zrqx.core.model.school.export.ExportModel;
import com.zrqx.core.util.excelutil.ExcelResources; import com.zrqx.core.util.excelutil.ExcelResources;
import com.zrqx.core.util.excelutil.ExcelSheetParams; import com.zrqx.core.util.excelutil.ExcelSheetParams;
import lombok.Data; import lombok.Data;
@Data @Data
@ExcelSheetParams(startRow = 2) @ExcelSheetParams(startRow = 2)
public class MajorErrVo extends ExportModel{ public class MajorErrVo{
@ExcelResources(title="部门名称") @ExcelResources(title="部门名称")
private String departmentName; private String departmentName;
...@@ -15,5 +14,7 @@ public class MajorErrVo extends ExportModel{ ...@@ -15,5 +14,7 @@ public class MajorErrVo extends ExportModel{
private String name; private String name;
@ExcelResources(title="专业代码") @ExcelResources(title="专业代码")
private String code; private String code;
@ExcelResources(title="错误信息")
private String msg;
} }
package com.zrqx.core.vo.schoolsysuser.fg.publiclesson; package com.zrqx.core.vo.schoolsysuser.fg.publiclesson;
import javax.validation.constraints.NotNull; import javax.validation.constraints.NotNull;
import com.zrqx.core.model.school.export.ExportModel;
import com.zrqx.core.util.excelutil.ExcelResources; import com.zrqx.core.util.excelutil.ExcelResources;
import com.zrqx.core.util.excelutil.ExcelSheetParams; import com.zrqx.core.util.excelutil.ExcelSheetParams;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
...@@ -11,7 +9,7 @@ import lombok.Data; ...@@ -11,7 +9,7 @@ import lombok.Data;
@Data @Data
@ExcelSheetParams(startRow = 2) @ExcelSheetParams(startRow = 2)
@ApiModel(value = "LessonErrVo",description = "课程错误信息列表vo") @ApiModel(value = "LessonErrVo",description = "课程错误信息列表vo")
public class LessonErrVo extends ExportModel{ public class LessonErrVo{
@NotNull @NotNull
@ExcelResources(title="课程设置") @ExcelResources(title="课程设置")
...@@ -38,5 +36,7 @@ public class LessonErrVo extends ExportModel{ ...@@ -38,5 +36,7 @@ public class LessonErrVo extends ExportModel{
@NotNull @NotNull
@ExcelResources(title="周课时数") @ExcelResources(title="周课时数")
private Integer weeklyHours; private Integer weeklyHours;
@ExcelResources(title="错误信息")
private String msg;
} }
...@@ -28,6 +28,7 @@ import com.zrqx.core.util.page.PageParam; ...@@ -28,6 +28,7 @@ import com.zrqx.core.util.page.PageParam;
import com.zrqx.core.util.response.CallBack; import com.zrqx.core.util.response.CallBack;
import com.zrqx.core.vo.member.fg.basicteachingplan.FgBasicTeachingPlanExcelVo; import com.zrqx.core.vo.member.fg.basicteachingplan.FgBasicTeachingPlanExcelVo;
import com.zrqx.core.vo.member.fg.basicteachingplan.FgBasicTeachingPlanVo; import com.zrqx.core.vo.member.fg.basicteachingplan.FgBasicTeachingPlanVo;
import com.zrqx.core.vo.schoolsysuser.fg.basicteachingplan.BasicPlanErrVo;
import com.zrqx.core.vo.schoolsysuser.fg.major.MajorErrVo; import com.zrqx.core.vo.schoolsysuser.fg.major.MajorErrVo;
import com.zrqx.school.sysuser.service.basicteachingplan.FgBasicTeachingPlanService; import com.zrqx.school.sysuser.service.basicteachingplan.FgBasicTeachingPlanService;
import com.zrqx.school.sysuser.service.export.ExportService; import com.zrqx.school.sysuser.service.export.ExportService;
...@@ -117,7 +118,7 @@ public class FgBasicTeachingPlanController { ...@@ -117,7 +118,7 @@ public class FgBasicTeachingPlanController {
@GetMapping(value = MemberRequestPath.ERROR) @GetMapping(value = MemberRequestPath.ERROR)
public String exportMajor(Integer id,HttpServletRequest request, HttpServletResponse response) throws Exception { public String exportMajor(Integer id,HttpServletRequest request, HttpServletResponse response) throws Exception {
List<?> list = exportService.exportErrInfo(id); List<?> list = exportService.exportErrInfo(id);
ExcelUtil.getInstance().exportExcel(list, MajorErrVo.class, "培养层次错误信息.xls", response, request); ExcelUtil.getInstance().exportExcel(list, BasicPlanErrVo.class, "培养层次错误信息.xls", response, request);
return null; return null;
} }
......
...@@ -32,6 +32,7 @@ import com.zrqx.core.vo.member.fg.major.FgMajorVo; ...@@ -32,6 +32,7 @@ import com.zrqx.core.vo.member.fg.major.FgMajorVo;
import com.zrqx.core.vo.member.fg.publiclesson.ExcelLessonVo; import com.zrqx.core.vo.member.fg.publiclesson.ExcelLessonVo;
import com.zrqx.core.vo.member.fg.publiclesson.FgPublicLessonVo; import com.zrqx.core.vo.member.fg.publiclesson.FgPublicLessonVo;
import com.zrqx.core.vo.schoolsysuser.fg.major.MajorErrVo; import com.zrqx.core.vo.schoolsysuser.fg.major.MajorErrVo;
import com.zrqx.core.vo.schoolsysuser.fg.publiclesson.LessonErrVo;
import com.zrqx.school.sysuser.service.export.ExportService; import com.zrqx.school.sysuser.service.export.ExportService;
import com.zrqx.school.sysuser.service.publiclesson.FgPublicLessonService; import com.zrqx.school.sysuser.service.publiclesson.FgPublicLessonService;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
...@@ -118,7 +119,7 @@ public class FgPublicLessonController { ...@@ -118,7 +119,7 @@ public class FgPublicLessonController {
@GetMapping(value = MemberRequestPath.ERROR) @GetMapping(value = MemberRequestPath.ERROR)
public String exportMajor(Integer id,HttpServletRequest request, HttpServletResponse response) throws Exception { public String exportMajor(Integer id,HttpServletRequest request, HttpServletResponse response) throws Exception {
List<?> list = exportService.exportErrInfo(id); List<?> list = exportService.exportErrInfo(id);
ExcelUtil.getInstance().exportExcel(list, MajorErrVo.class, "课程错误信息.xls", response, request); ExcelUtil.getInstance().exportExcel(list, LessonErrVo.class, "课程错误信息.xls", response, request);
return null; return null;
} }
......
...@@ -11,7 +11,6 @@ import org.slf4j.LoggerFactory; ...@@ -11,7 +11,6 @@ import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile; import org.springframework.web.multipart.MultipartFile;
import com.alibaba.fastjson.JSON;
import com.zrqx.core.commons.redis.FgRedisManage; import com.zrqx.core.commons.redis.FgRedisManage;
import com.zrqx.core.exception.BusinessValidateException; import com.zrqx.core.exception.BusinessValidateException;
import com.zrqx.core.form.member.bg.department.QueryTypeAndRelationIdForm; import com.zrqx.core.form.member.bg.department.QueryTypeAndRelationIdForm;
...@@ -36,7 +35,6 @@ import com.zrqx.school.sysuser.manage.dictionarydata.FgDictionaryDataManage; ...@@ -36,7 +35,6 @@ import com.zrqx.school.sysuser.manage.dictionarydata.FgDictionaryDataManage;
import com.zrqx.school.sysuser.manage.export.ExportManage; import com.zrqx.school.sysuser.manage.export.ExportManage;
import com.zrqx.school.sysuser.manage.major.FgMajorManage; import com.zrqx.school.sysuser.manage.major.FgMajorManage;
import com.zrqx.school.sysuser.mapper.basicteachingplan.FgBasicTeachingPlanMapper; import com.zrqx.school.sysuser.mapper.basicteachingplan.FgBasicTeachingPlanMapper;
import com.zrqx.school.sysuser.mapper.export.ExportMapper;
import com.zrqx.school.sysuser.mapper.major.FgProfessionalMapper; import com.zrqx.school.sysuser.mapper.major.FgProfessionalMapper;
import com.zrqx.school.sysuser.service.major.FgMajorService; import com.zrqx.school.sysuser.service.major.FgMajorService;
import com.zrqx.school.sysuser.service.major.FgProfessionalService; import com.zrqx.school.sysuser.service.major.FgProfessionalService;
...@@ -62,8 +60,6 @@ public class FgBasicTeachingPlanServiceImpl extends BaseModelServiceImpl<BasicTe ...@@ -62,8 +60,6 @@ public class FgBasicTeachingPlanServiceImpl extends BaseModelServiceImpl<BasicTe
@Autowired @Autowired
private FgProfessionalService fgProfessionalService; private FgProfessionalService fgProfessionalService;
@Autowired @Autowired
private ExportMapper exportMapper;
@Autowired
private FgDictionaryDataManage fgDictionaryDataManage; private FgDictionaryDataManage fgDictionaryDataManage;
@Autowired @Autowired
private ExportManage exportManage; private ExportManage exportManage;
...@@ -260,14 +256,8 @@ public class FgBasicTeachingPlanServiceImpl extends BaseModelServiceImpl<BasicTe ...@@ -260,14 +256,8 @@ public class FgBasicTeachingPlanServiceImpl extends BaseModelServiceImpl<BasicTe
entity.setType(redis.getMember().getType()); entity.setType(redis.getMember().getType());
super.insert(entity); super.insert(entity);
} }
//保存错误信息
Export entity = exportManage.save(list, "com.zrqx.core.vo.schoolsysuser.fg.basicteachingplan.BasicPlanErrVo"); Export entity = exportManage.save(list, "com.zrqx.core.vo.schoolsysuser.fg.basicteachingplan.BasicPlanErrVo");
/*Export entity = new Export();
if(list != null && list.size() > 0){
String value = JSON.toJSONString(list);
entity.setValue(value);
entity.setClazz("com.zrqx.core.vo.schoolsysuser.fg.basicteachingplan.BasicPlanErrVo");
exportMapper.insert(entity);
}*/
planVo.setList(list); planVo.setList(list);
planVo.setErrId(entity.getId()); planVo.setErrId(entity.getId());
return planVo; return planVo;
......
...@@ -10,8 +10,6 @@ import org.slf4j.LoggerFactory; ...@@ -10,8 +10,6 @@ import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile; import org.springframework.web.multipart.MultipartFile;
import com.alibaba.fastjson.JSON;
import com.zrqx.core.commons.redis.FgRedisManage; import com.zrqx.core.commons.redis.FgRedisManage;
import com.zrqx.core.exception.BusinessValidateException; import com.zrqx.core.exception.BusinessValidateException;
import com.zrqx.core.form.member.bg.department.QueryTypeAndRelationIdForm; import com.zrqx.core.form.member.bg.department.QueryTypeAndRelationIdForm;
...@@ -33,9 +31,9 @@ import com.zrqx.core.vo.schoolsysuser.fg.classmanagement.ClassmanagementErrVo; ...@@ -33,9 +31,9 @@ import com.zrqx.core.vo.schoolsysuser.fg.classmanagement.ClassmanagementErrVo;
import com.zrqx.core.vo.schoolsysuser.fg.classmanagement.ExportClassErrVo; import com.zrqx.core.vo.schoolsysuser.fg.classmanagement.ExportClassErrVo;
import com.zrqx.core.vo.schoolsysuser.fg.classmanagement.ImportClassVo; import com.zrqx.core.vo.schoolsysuser.fg.classmanagement.ImportClassVo;
import com.zrqx.school.sysuser.client.FgMemberClient; import com.zrqx.school.sysuser.client.FgMemberClient;
import com.zrqx.school.sysuser.manage.export.ExportManage;
import com.zrqx.school.sysuser.mapper.basicteachingplan.FgBasicTeachingPlanMapper; import com.zrqx.school.sysuser.mapper.basicteachingplan.FgBasicTeachingPlanMapper;
import com.zrqx.school.sysuser.mapper.classmanagement.FgClassManagementMapper; import com.zrqx.school.sysuser.mapper.classmanagement.FgClassManagementMapper;
import com.zrqx.school.sysuser.mapper.export.ExportMapper;
import com.zrqx.school.sysuser.service.major.FgMajorService; import com.zrqx.school.sysuser.service.major.FgMajorService;
@Service @Service
...@@ -52,7 +50,7 @@ public class FgClassManagementServiceImpl extends BaseModelServiceImpl<ClassMana ...@@ -52,7 +50,7 @@ public class FgClassManagementServiceImpl extends BaseModelServiceImpl<ClassMana
@Autowired @Autowired
private FgMajorService fgMajorService; private FgMajorService fgMajorService;
@Autowired @Autowired
private ExportMapper exportMapper; private ExportManage exportManage;
@Override @Override
public BaseMapper<ClassManagement> getMapper() { public BaseMapper<ClassManagement> getMapper() {
...@@ -217,13 +215,8 @@ public class FgClassManagementServiceImpl extends BaseModelServiceImpl<ClassMana ...@@ -217,13 +215,8 @@ public class FgClassManagementServiceImpl extends BaseModelServiceImpl<ClassMana
entity.setType(redis.getMember().getType()); entity.setType(redis.getMember().getType());
super.insert(entity); super.insert(entity);
} }
Export entity = new Export(); Export entity = exportManage.save(list, "com.zrqx.core.vo.schoolsysuser.fg.classmanagement.ClassmanagementErrVo");
if(list != null && list.size() > 0){
String value = JSON.toJSONString(list);
entity.setValue(value);
entity.setClazz("com.zrqx.core.vo.schoolsysuser.fg.classmanagement.ClassmanagementErrVo");
exportMapper.insert(entity);
}
classVo.setList(list); classVo.setList(list);
classVo.setErrId(entity.getId()); classVo.setErrId(entity.getId());
return classVo; return classVo;
......
...@@ -34,6 +34,7 @@ import com.zrqx.core.vo.schoolsysuser.fg.major.ExportMajorErrVo; ...@@ -34,6 +34,7 @@ import com.zrqx.core.vo.schoolsysuser.fg.major.ExportMajorErrVo;
import com.zrqx.core.vo.schoolsysuser.fg.major.ImportMajorExcelVo; import com.zrqx.core.vo.schoolsysuser.fg.major.ImportMajorExcelVo;
import com.zrqx.core.vo.schoolsysuser.fg.major.MajorErrVo; import com.zrqx.core.vo.schoolsysuser.fg.major.MajorErrVo;
import com.zrqx.school.sysuser.client.FgMemberClient; import com.zrqx.school.sysuser.client.FgMemberClient;
import com.zrqx.school.sysuser.manage.export.ExportManage;
import com.zrqx.school.sysuser.mapper.export.ExportMapper; import com.zrqx.school.sysuser.mapper.export.ExportMapper;
import com.zrqx.school.sysuser.mapper.major.FgMajorMapper; import com.zrqx.school.sysuser.mapper.major.FgMajorMapper;
...@@ -50,6 +51,8 @@ public class FgMajorServiceImpl extends BaseModelServiceImpl<Major,Integer> impl ...@@ -50,6 +51,8 @@ public class FgMajorServiceImpl extends BaseModelServiceImpl<Major,Integer> impl
private ExportMapper exportMapper; private ExportMapper exportMapper;
@Autowired @Autowired
private FgProfessionalService fgProfessionalService; private FgProfessionalService fgProfessionalService;
@Autowired
private ExportManage exportManage;
@Override @Override
...@@ -201,14 +204,14 @@ public class FgMajorServiceImpl extends BaseModelServiceImpl<Major,Integer> impl ...@@ -201,14 +204,14 @@ public class FgMajorServiceImpl extends BaseModelServiceImpl<Major,Integer> impl
form.setName(v.getDepartmentName()); form.setName(v.getDepartmentName());
CallBack<Integer> data = fgMemberClient.isExsit(form); CallBack<Integer> data = fgMemberClient.isExsit(form);
if(data == null){ if(data == null){
dptMsg = "导入的部门不存在"; dptMsg = "部门不存在";
} }
//验证导入的专业名称是否存在 //验证导入的专业名称是否存在
Major major = new Major(); Major major = new Major();
if(StringUtils.isNotEmpty(v.getName())){ if(StringUtils.isNotEmpty(v.getName())){
major = this.isExistName(v.getName()); major = this.isExistName(v.getName());
if(major != null){ if(major != null){
majorMsg = "导入的专业已存在"; majorMsg = "专业已存在";
} }
}else{ }else{
majorMsg = "请填写专业名称"; majorMsg = "请填写专业名称";
...@@ -220,7 +223,7 @@ public class FgMajorServiceImpl extends BaseModelServiceImpl<Major,Integer> impl ...@@ -220,7 +223,7 @@ public class FgMajorServiceImpl extends BaseModelServiceImpl<Major,Integer> impl
if(StringUtils.isNotEmpty(v.getCode())){ if(StringUtils.isNotEmpty(v.getCode())){
pro = fgProfessionalService.selectOne(professional); pro = fgProfessionalService.selectOne(professional);
if(pro == null){ if(pro == null){
proMsg = "导入的专业代码不存在"; proMsg = "专业代码不存在";
} }
}else{ }else{
proMsg = "请填写专业代码"; proMsg = "请填写专业代码";
...@@ -229,7 +232,7 @@ public class FgMajorServiceImpl extends BaseModelServiceImpl<Major,Integer> impl ...@@ -229,7 +232,7 @@ public class FgMajorServiceImpl extends BaseModelServiceImpl<Major,Integer> impl
vo.setMsg(dptMsg + majorMsg + proMsg); vo.setMsg(dptMsg + majorMsg + proMsg);
} }
String countMsg = (StringUtils.isEmpty(dptMsg) ? "" : dptMsg) + (StringUtils.isEmpty(majorMsg) ? "" : majorMsg) + (StringUtils.isEmpty(proMsg) ? "" : proMsg); String countMsg = (StringUtils.isEmpty(dptMsg) ? "" : dptMsg) + " " + (StringUtils.isEmpty(majorMsg) ? "" : majorMsg) + " " + (StringUtils.isEmpty(proMsg) ? "" : proMsg);
vo.setMsg(countMsg); vo.setMsg(countMsg);
if(data == null || major != null || pro == null){ if(data == null || major != null || pro == null){
...@@ -256,13 +259,7 @@ public class FgMajorServiceImpl extends BaseModelServiceImpl<Major,Integer> impl ...@@ -256,13 +259,7 @@ public class FgMajorServiceImpl extends BaseModelServiceImpl<Major,Integer> impl
entity.setType(redis.getMember().getType()); entity.setType(redis.getMember().getType());
super.insert(entity); super.insert(entity);
} }
Export entity = new Export(); Export entity = exportManage.save(list, "com.zrqx.core.vo.schoolsysuser.fg.major.MajorErrVo");
if(list != null && list.size() > 0){
String value = JSON.toJSONString(list);
entity.setValue(value);
entity.setClazz("com.zrqx.core.vo.schoolsysuser.fg.major.MajorErrVo");
exportMapper.insert(entity);
}
majorVo.setList(list); majorVo.setList(list);
majorVo.setErrId(entity.getId()); majorVo.setErrId(entity.getId());
return majorVo; return majorVo;
......
...@@ -52,6 +52,7 @@ import com.zrqx.core.vo.schoolsysuser.fg.publiclesson.ImportLessonExcelVo; ...@@ -52,6 +52,7 @@ import com.zrqx.core.vo.schoolsysuser.fg.publiclesson.ImportLessonExcelVo;
import com.zrqx.core.vo.schoolsysuser.fg.publiclesson.LessonErrVo; import com.zrqx.core.vo.schoolsysuser.fg.publiclesson.LessonErrVo;
import com.zrqx.school.sysuser.client.BgResourceClient; import com.zrqx.school.sysuser.client.BgResourceClient;
import com.zrqx.school.sysuser.client.FgResouceClient; import com.zrqx.school.sysuser.client.FgResouceClient;
import com.zrqx.school.sysuser.manage.export.ExportManage;
import com.zrqx.school.sysuser.mapper.basicteachingplan.FgBasicTeachingPlanMapper; import com.zrqx.school.sysuser.mapper.basicteachingplan.FgBasicTeachingPlanMapper;
import com.zrqx.school.sysuser.mapper.export.ExportMapper; import com.zrqx.school.sysuser.mapper.export.ExportMapper;
import com.zrqx.school.sysuser.mapper.publiclesson.FgPublicLessonMapper; import com.zrqx.school.sysuser.mapper.publiclesson.FgPublicLessonMapper;
...@@ -81,7 +82,7 @@ public class FgPublicLessonServiceImpl extends BaseModelServiceImpl<PublicLesson ...@@ -81,7 +82,7 @@ public class FgPublicLessonServiceImpl extends BaseModelServiceImpl<PublicLesson
@Autowired @Autowired
private FgBasicTeachingPlanMapper fgBasicTeachingPlanMapper; private FgBasicTeachingPlanMapper fgBasicTeachingPlanMapper;
@Autowired @Autowired
private ExportMapper exportMapper; private ExportManage exportManage;
@Autowired @Autowired
private FgResouceClient fgResouceClient; private FgResouceClient fgResouceClient;
...@@ -574,13 +575,7 @@ public class FgPublicLessonServiceImpl extends BaseModelServiceImpl<PublicLesson ...@@ -574,13 +575,7 @@ public class FgPublicLessonServiceImpl extends BaseModelServiceImpl<PublicLesson
fgPublicLessonClassArrangeRealtionService.exportSave(vo, id); fgPublicLessonClassArrangeRealtionService.exportSave(vo, id);
}); });
} }
Export entity = new Export(); Export entity = exportManage.save(list, "com.zrqx.core.vo.schoolsysuser.fg.publiclesson.LessonErrVo");
if(list != null && list.size() > 0){
String value = JSON.toJSONString(list);
entity.setValue(value);
entity.setClazz("com.zrqx.core.vo.schoolsysuser.fg.publiclesson.LessonErrVo");
exportMapper.insert(entity);
}
planVo.setList(list); planVo.setList(list);
planVo.setErrId(entity.getId()); planVo.setErrId(entity.getId());
return planVo; return planVo;
......
...@@ -266,7 +266,7 @@ public class FgStudentServiceImpl extends BaseModelServiceImpl<Student,Integer> ...@@ -266,7 +266,7 @@ public class FgStudentServiceImpl extends BaseModelServiceImpl<Student,Integer>
classMsg = "导入的班级不存在"; classMsg = "导入的班级不存在";
} }
String countMsg = (StringUtils.isEmpty(dptMsg) ? "" : dptMsg) + (StringUtils.isEmpty(majorMsg) ? "" : majorMsg) + (StringUtils.isEmpty(planMsg) ? "" : planMsg) + (StringUtils.isEmpty(msg) ? "" : msg) + (StringUtils.isEmpty(msg1) ? "" : msg1) + (StringUtils.isEmpty(levelMsg) ? "" : levelMsg) + (StringUtils.isEmpty(classMsg) ? "" : classMsg); String countMsg = (StringUtils.isEmpty(dptMsg) ? "" : dptMsg) +" "+ (StringUtils.isEmpty(majorMsg) ? "" : majorMsg) + " " +(StringUtils.isEmpty(planMsg) ? "" : planMsg) + " " + (StringUtils.isEmpty(msg) ? "" : msg) + " " + (StringUtils.isEmpty(msg1) ? "" : msg1) + " " + (StringUtils.isEmpty(levelMsg) ? "" : levelMsg) + " " + (StringUtils.isEmpty(classMsg) ? "" : classMsg);
vo.setMsg(countMsg); vo.setMsg(countMsg);
if(plan == null || major == null || StringUtils.isNotEmpty(msg) || StringUtils.isNotEmpty(msg1) || entity == null || departmentId == null || StringUtils.isNotEmpty(levelMsg)){ if(plan == null || major == null || StringUtils.isNotEmpty(msg) || StringUtils.isNotEmpty(msg1) || entity == null || departmentId == null || StringUtils.isNotEmpty(levelMsg)){
...@@ -287,13 +287,6 @@ public class FgStudentServiceImpl extends BaseModelServiceImpl<Student,Integer> ...@@ -287,13 +287,6 @@ public class FgStudentServiceImpl extends BaseModelServiceImpl<Student,Integer>
super.insert(stu); super.insert(stu);
} }
Export entity = exportManage.save(list, "com.zrqx.core.vo.schoolsysuser.fg.student.StudentVo"); Export entity = exportManage.save(list, "com.zrqx.core.vo.schoolsysuser.fg.student.StudentVo");
/*Export entity = new Export();
if(list != null && list.size() > 0){
String value = JSON.toJSONString(list);
entity.setValue(value);
entity.setClazz("com.zrqx.core.vo.schoolsysuser.fg.student.StudentVo");
exportMapper.insert(entity);
}*/
stuVo.setList(list); stuVo.setList(list);
stuVo.setErrId(entity.getId()); stuVo.setErrId(entity.getId());
return stuVo; return stuVo;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论