mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-08 18:36:51 +08:00
org 设置code为空的情况
This commit is contained in:
@@ -106,6 +106,7 @@ public class UserDataSyncApi extends ApiBaseController {
|
||||
org=orgService.get(user.getDepartId());
|
||||
if(org==null) {
|
||||
org=new Organization();
|
||||
org.setCode("");
|
||||
org.setId(user.getDepartId());
|
||||
org.setName(user.getDepartName());
|
||||
org.setDeleted(false);
|
||||
|
||||
@@ -35,7 +35,7 @@ public class Organization extends BaseEntity {
|
||||
/**
|
||||
* 组织部门代码
|
||||
*/
|
||||
@Column(name = "code", nullable = false, length = 50)
|
||||
@Column(name = "code", nullable = true, length = 50)
|
||||
private String code;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user