|
|
|
@ -139,8 +139,9 @@ public class OrganizationModel {
|
|
|
|
|
record.set("update_ts", DateTime.now());
|
|
|
|
|
record.set("is_virtual", is_virtual);
|
|
|
|
|
Db.save("t_base_organization", "org_id", record);
|
|
|
|
|
|
|
|
|
|
int id_int=record.getInt("id_int");
|
|
|
|
|
//id_int虽然是自动增长,但由于不是主键,所以需要重新查询
|
|
|
|
|
record = Db.findById("t_base_organization", "org_id", org_id);
|
|
|
|
|
int id_int = record.getInt("id_int");
|
|
|
|
|
//添加登录人员信息(单位管理员)
|
|
|
|
|
record = new Record();
|
|
|
|
|
record.set("person_id", UUID.randomUUID().toString().toUpperCase());
|
|
|
|
|