org 设置code为空的情况

This commit is contained in:
daihh
2022-11-27 20:49:28 +08:00
parent 35dad4c731
commit d17253096c
2 changed files with 2 additions and 1 deletions

View File

@@ -106,6 +106,7 @@ public class UserDataSyncApi extends ApiBaseController {
org=orgService.get(user.getDepartId()); org=orgService.get(user.getDepartId());
if(org==null) { if(org==null) {
org=new Organization(); org=new Organization();
org.setCode("");
org.setId(user.getDepartId()); org.setId(user.getDepartId());
org.setName(user.getDepartName()); org.setName(user.getDepartName());
org.setDeleted(false); org.setDeleted(false);

View File

@@ -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; private String code;
/** /**