wangmh пре 8 година
родитељ
комит
9ff6a58916
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      src/main/java/com/uas/platform/b2b/model/User.java

+ 2 - 1
src/main/java/com/uas/platform/b2b/model/User.java

@@ -29,6 +29,7 @@ import org.springframework.util.CollectionUtils;
 import com.alibaba.fastjson.annotation.JSONField;
 import com.uas.platform.b2b.support.SystemSession;
 import com.uas.platform.core.model.Constant;
+import org.springframework.util.StringUtils;
 
 @Entity
 @Table(name = "sec$users")
@@ -47,7 +48,7 @@ public class User implements Serializable {
 		this.setUserTel(userView.getMobile());
 		this.setUserEmail(userView.getEmail());
 		this.setUserPwd(userView.getPassword());
-		this.setUserIMId(Long.valueOf(userView.getImId()));
+		this.setUserIMId(StringUtils.isEmpty(userView.getImId()) ? null : Long.valueOf(userView.getImId()));
 		this.setUserSex(userView.getSex());
 	}