|
@@ -39,7 +39,8 @@ public class TenantV1Controller {
|
|
t.setUserEmail(tenant.getUserEmail());
|
|
t.setUserEmail(tenant.getUserEmail());
|
|
t.setUserName(tenant.getUserName());
|
|
t.setUserName(tenant.getUserName());
|
|
t.setUserPhone(tenant.getUserPhone());
|
|
t.setUserPhone(tenant.getUserPhone());
|
|
- t.setTenantNo(TimeHelper.getTimeString("yyyyMMddHHmm") + (new Random().nextInt(899999999) + 100000000));
|
|
|
|
|
|
+ t.setAdmin(tenant.getTenantNo().isBlank());
|
|
|
|
+ t.setTenantNo(!tenant.getTenantNo().isBlank() ? tenant.getTenantNo() : TimeHelper.getTimeString("yyyyMMddHHmm") + (new Random().nextInt(899999999) + 100000000));
|
|
tenantRepository.save(t);
|
|
tenantRepository.save(t);
|
|
|
|
|
|
// RabbitMQHelper.requestByGetAndParams("http://114.115.203.60:15672/api/vhosts/" + appid, "");
|
|
// RabbitMQHelper.requestByGetAndParams("http://114.115.203.60:15672/api/vhosts/" + appid, "");
|