lideyin 5 rokov pred
rodič
commit
652a78828b

+ 8 - 3
examcloud-core-basic-service/src/main/java/cn/com/qmth/examcloud/core/basic/service/impl/OrgServiceImpl.java

@@ -82,7 +82,7 @@ public class OrgServiceImpl implements OrgService {
 	 * 保存顶级机构
 	 *
 	 * @author WANGWEI
-	 * 
+	 *
 	 * @see
 	 * cn.com.qmth.examcloud.core.basic.service.OrgService#saveRootOrg(cn.com.
 	 * qmth.examcloud.core.basic.service.bean.OrgInfo)
@@ -172,7 +172,7 @@ public class OrgServiceImpl implements OrgService {
 	 * 保存子机构
 	 *
 	 * @author WANGWEI
-	 * 
+	 *
 	 * @see
 	 * cn.com.qmth.examcloud.core.basic.service.OrgService#saveSubOrg(cn.com.
 	 * qmth.examcloud.core.basic.service.bean.OrgInfo)
@@ -326,7 +326,12 @@ public class OrgServiceImpl implements OrgService {
 			if (!de.isLegal(value)) {
 				throw new StatusException("001200", "机构属性值非法. key=" + key);
 			}
-			map.put(de, value.trim());
+
+			if (null == value) {
+				map.put(de, null);
+			} else {
+				map.put(de, value.trim());
+			}
 		}
 
 		return map;