|
|
@@ -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());
|
|
|
}
|
|
|
|