|
@@ -1,6 +1,7 @@
|
|
|
package com.zhongzheng.controller.common;
|
|
|
|
|
|
import cn.hutool.core.bean.BeanUtil;
|
|
|
+import cn.hutool.core.lang.Validator;
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.toolkit.CollectionUtils;
|
|
@@ -30,6 +31,7 @@ import com.zhongzheng.modules.order.domain.OrderGoods;
|
|
|
import com.zhongzheng.modules.order.service.IOrderGoodsService;
|
|
|
import com.zhongzheng.modules.order.service.IOrderService;
|
|
|
import com.zhongzheng.modules.system.bo.SysTenantAdminBo;
|
|
|
+import com.zhongzheng.modules.system.bo.SysTenantQueryBo;
|
|
|
import com.zhongzheng.modules.system.domain.SysTenant;
|
|
|
import com.zhongzheng.modules.system.service.ISysConfigService;
|
|
|
import com.zhongzheng.modules.system.service.ISysTenantService;
|
|
@@ -379,4 +381,27 @@ public class CommonController
|
|
|
String dualAuth = configService.selectConfigByKey("login.dual.auth");
|
|
|
return AjaxResult.success("成功",dualAuth);
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 获取企业ID
|
|
|
+ */
|
|
|
+ @ApiOperation("获取企业ID")
|
|
|
+ @GetMapping("common/free/findTenantId")
|
|
|
+ public AjaxResult<String> findTenantId(SysTenantQueryBo bo) {
|
|
|
+ Long tenantId = iSysTenantService.findTenantId(bo);
|
|
|
+ if(Validator.isNotEmpty(tenantId)){
|
|
|
+ return AjaxResult.success("成功",tenantId.toString());
|
|
|
+ }else{
|
|
|
+ if(Validator.isNotEmpty(bo.getHostH5())&&bo.getHostH5().equals("120.79.166.78:19012")){
|
|
|
+ return AjaxResult.success("成功","867735392558919680");
|
|
|
+ }
|
|
|
+ if(Validator.isNotEmpty(bo.getHostLive())&&bo.getHostLive().equals("120.79.166.78:19012")){
|
|
|
+ return AjaxResult.success("成功","867735392558919680");
|
|
|
+ }
|
|
|
+ if(Validator.isNotEmpty(bo.getHostPc())&&bo.getHostPc().equals("120.79.166.78:19012")){
|
|
|
+ return AjaxResult.success("成功","867735392558919680");
|
|
|
+ }
|
|
|
+ return AjaxResult.error("失败",null);
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|