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,22 +151,24 @@ public class FzGradesServiceImpl extends ServiceImpl<FzGradesMapper, FzGradesEnt ...@@ -150,22 +151,24 @@ public class FzGradesServiceImpl extends ServiceImpl<FzGradesMapper, FzGradesEnt
//主观题 -> 主观题 //主观题 -> 主观题
//绘图题 -> 绘图题 //绘图题 -> 绘图题
//实操题 -> 实操题 //实操题 -> 实操题
switch (value.getType()) { if(StrUtil.isNotEmpty(value.getType())){
case "单选题": switch (value.getType()) {
case "多选题": case "单选题":
case "选图题": case "多选题":
entity.setType("客观题"); case "选图题":
break; entity.setType("客观题");
case "主观题": break;
entity.setType("主观题"); case "主观题":
break; entity.setType("主观题");
case "绘图题": break;
entity.setType("绘图题"); case "绘图题":
break; entity.setType("绘图题");
case "实操题": break;
entity.setType("实操题"); case "实操题":
break; entity.setType("实操题");
default: break;
default:
}
} }
} }
List<FzGradesEntity> result = new ArrayList<>(byCode.values()); List<FzGradesEntity> result = new ArrayList<>(byCode.values());
......
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