|
@@ -26,7 +26,9 @@ import com.zhongzheng.modules.goods.vo.GoodsSpecTemplateVo;
|
|
import com.zhongzheng.modules.goods.vo.GoodsUserVo;
|
|
import com.zhongzheng.modules.goods.vo.GoodsUserVo;
|
|
import com.zhongzheng.modules.goods.vo.GoodsVo;
|
|
import com.zhongzheng.modules.goods.vo.GoodsVo;
|
|
import com.zhongzheng.modules.order.domain.Printer;
|
|
import com.zhongzheng.modules.order.domain.Printer;
|
|
|
|
+import com.zhongzheng.modules.system.bo.SysTenantQueryBo;
|
|
import com.zhongzheng.modules.system.service.ISysConfigService;
|
|
import com.zhongzheng.modules.system.service.ISysConfigService;
|
|
|
|
+import com.zhongzheng.modules.system.service.ISysTenantService;
|
|
import com.zhongzheng.modules.wx.bo.WxInfoBo;
|
|
import com.zhongzheng.modules.wx.bo.WxInfoBo;
|
|
import com.zhongzheng.modules.wx.bo.WxInfoQuery;
|
|
import com.zhongzheng.modules.wx.bo.WxInfoQuery;
|
|
import com.zhongzheng.modules.wx.bo.WxServerBody;
|
|
import com.zhongzheng.modules.wx.bo.WxServerBody;
|
|
@@ -68,6 +70,8 @@ public class CommonController extends BaseController {
|
|
|
|
|
|
private final IGoodsSpecTemplateService iGoodsSpecTemplateService;
|
|
private final IGoodsSpecTemplateService iGoodsSpecTemplateService;
|
|
|
|
|
|
|
|
+ private final ISysTenantService iSysTenantService;
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 获取微信小程序信息(网页跳转小程序)
|
|
* 获取微信小程序信息(网页跳转小程序)
|
|
*/
|
|
*/
|
|
@@ -230,4 +234,18 @@ public class CommonController extends BaseController {
|
|
return MessageUtil.autoReply(allMessage, ContentEnum.CONTENT_NONSUPPORT.getContent());
|
|
return MessageUtil.autoReply(allMessage, ContentEnum.CONTENT_NONSUPPORT.getContent());
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 获取企业ID
|
|
|
|
+ */
|
|
|
|
+ @ApiOperation("获取企业ID")
|
|
|
|
+ @GetMapping("/findTenantId")
|
|
|
|
+ public AjaxResult<Long> findTenantId(SysTenantQueryBo bo) {
|
|
|
|
+ Long tenantId = iSysTenantService.findTenantId(bo);
|
|
|
|
+ if(Validator.isNotEmpty(tenantId)){
|
|
|
|
+ return AjaxResult.success("成功",tenantId);
|
|
|
|
+ }else{
|
|
|
|
+ return AjaxResult.error("失败",tenantId);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|