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

优化

parent e62cc11c
package com.platform.business.service.impl;
import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.util.StrUtil;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.platform.business.constant.ExamAdminConstants;
import com.platform.business.mapper.FzGradesMapper;
......@@ -150,22 +151,24 @@ public class FzGradesServiceImpl extends ServiceImpl<FzGradesMapper, FzGradesEnt
//主观题 -> 主观题
//绘图题 -> 绘图题
//实操题 -> 实操题
switch (value.getType()) {
case "单选题":
case "多选题":
case "选图题":
entity.setType("客观题");
break;
case "主观题":
entity.setType("主观题");
break;
case "绘图题":
entity.setType("绘图题");
break;
case "实操题":
entity.setType("实操题");
break;
default:
if(StrUtil.isNotEmpty(value.getType())){
switch (value.getType()) {
case "单选题":
case "多选题":
case "选图题":
entity.setType("客观题");
break;
case "主观题":
entity.setType("主观题");
break;
case "绘图题":
entity.setType("绘图题");
break;
case "实操题":
entity.setType("实操题");
break;
default:
}
}
}
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