|
@ -271,25 +271,6 @@ public class OrgService extends com.ekexiu.console.service.Upload {
|
271
|
271
|
}
|
272
|
272
|
}
|
273
|
273
|
|
274
|
|
@Post
|
275
|
|
@Path("/create")
|
276
|
|
public String insertOrg(@JdbcConn(true) Connection con, OrganizationInfo info,@Nullable String fn)
|
277
|
|
throws SQLException,IOException {
|
278
|
|
String id = StringUtil.buildUUID();
|
279
|
|
OrgUser orgUser = new OrgUser();
|
280
|
|
info.setId(id);
|
281
|
|
orgUser.setId(id);
|
282
|
|
orgUser.setEmail(info.getEmail());
|
283
|
|
orgUser.setPasswd(DEFAULT_PW_STR);
|
284
|
|
orgUser.setInviterId(info.getInviterId());
|
285
|
|
orgUser.setUserType("1");
|
286
|
|
if(fn != null){
|
287
|
|
this.saveOrgLogo(orgUser.getId(), fn);
|
288
|
|
}
|
289
|
|
this.orgUserDao.insert(con, orgUser);
|
290
|
|
this.orgDao.insert(con, info);
|
291
|
|
return orgUser.getId();
|
292
|
|
}
|
293
|
274
|
|
294
|
275
|
@Path("/entryCheck")
|
295
|
276
|
@Get
|
|
@ -474,7 +455,7 @@ public class OrgService extends com.ekexiu.console.service.Upload {
|
474
|
455
|
org.setId(id);
|
475
|
456
|
org.setName(orgName);
|
476
|
457
|
org.setIsJoin("0");
|
477
|
|
org.setOrgType(this.defaultOrgType);
|
|
458
|
//org.setOrgType(this.defaultOrgType);
|
478
|
459
|
org.setAuthStatus(this.defaultAuthStatus);
|
479
|
460
|
try {
|
480
|
461
|
orgDao.insert(con, org);
|
|
@ -520,7 +501,6 @@ public class OrgService extends com.ekexiu.console.service.Upload {
|
520
|
501
|
public void setName(String name) {
|
521
|
502
|
this.name = name;
|
522
|
503
|
}
|
523
|
|
|
524
|
504
|
}
|
525
|
505
|
|
526
|
506
|
|