Commit 52f2d165 authored by wujipeng's avatar wujipeng
Browse files

优化

parent e62cc11c
package com.platform.business.service.impl; package com.platform.business.service.impl;
import cn.hutool.core.bean.BeanUtil; import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.util.StrUtil;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.platform.business.constant.ExamAdminConstants; import com.platform.business.constant.ExamAdminConstants;
import com.platform.business.mapper.FzGradesMapper; import com.platform.business.mapper.FzGradesMapper;
...@@ -150,6 +151,7 @@ public class FzGradesServiceImpl extends ServiceImpl<FzGradesMapper, FzGradesEnt ...@@ -150,6 +151,7 @@ public class FzGradesServiceImpl extends ServiceImpl<FzGradesMapper, FzGradesEnt
//主观题 -> 主观题 //主观题 -> 主观题
//绘图题 -> 绘图题 //绘图题 -> 绘图题
//实操题 -> 实操题 //实操题 -> 实操题
if(StrUtil.isNotEmpty(value.getType())){
switch (value.getType()) { switch (value.getType()) {
case "单选题": case "单选题":
case "多选题": case "多选题":
...@@ -168,6 +170,7 @@ public class FzGradesServiceImpl extends ServiceImpl<FzGradesMapper, FzGradesEnt ...@@ -168,6 +170,7 @@ public class FzGradesServiceImpl extends ServiceImpl<FzGradesMapper, FzGradesEnt
default: default:
} }
} }
}
List<FzGradesEntity> result = new ArrayList<>(byCode.values()); List<FzGradesEntity> result = new ArrayList<>(byCode.values());
result.sort(Comparator.comparing(FzGradesEntity::getCode)); result.sort(Comparator.comparing(FzGradesEntity::getCode));
return result; return result;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment