|
@@ -144,16 +144,13 @@ public class ExamServiceImpl implements ExamService {
|
|
|
for (Entry<String, String> entry : properties.entrySet()) {
|
|
|
String key = entry.getKey();
|
|
|
String value = entry.getValue();
|
|
|
- if (StringUtils.isBlank(value)) {
|
|
|
- continue;
|
|
|
- }
|
|
|
DynamicEnum de = null;
|
|
|
try {
|
|
|
de = manager.getByName(key);
|
|
|
} catch (Exception e) {
|
|
|
throw new StatusException("E-001004", "考试属性错误");
|
|
|
}
|
|
|
- map.put(de, value.trim());
|
|
|
+ map.put(de, value);
|
|
|
}
|
|
|
|
|
|
String beforeExamRemark = properties.get("BEFORE_EXAM_REMARK");
|
|
@@ -213,6 +210,11 @@ public class ExamServiceImpl implements ExamService {
|
|
|
for (Entry<DynamicEnum, String> entry : map.entrySet()) {
|
|
|
DynamicEnum de = entry.getKey();
|
|
|
String value = entry.getValue();
|
|
|
+ if (StringUtils.isBlank(value)) {
|
|
|
+ value = null;
|
|
|
+ } else {
|
|
|
+ value = value.trim();
|
|
|
+ }
|
|
|
ExamOrgPropertyEntity entity = examOrgPropertyRepo
|
|
|
.findByexamIdAndOrgIdAndKeyId(saved.getExamId(), saved.getOrgId(), de.getId());
|
|
|
if (null == entity) {
|