From edd5bf1c50327c7da1c18f82b46f8cee64d5bab1 Mon Sep 17 00:00:00 2001 From: KKSU <15274802129@163.com> Date: Tue, 09 Jan 2024 14:37:59 +0800 Subject: [PATCH] 20220812 --- src/main/resources/mapper/WebSetMapper.xml | 20 +++++++++++++++++++- 1 files changed, 19 insertions(+), 1 deletions(-) diff --git a/src/main/resources/mapper/WebSetMapper.xml b/src/main/resources/mapper/WebSetMapper.xml index 32bfe7e..c802dc4 100644 --- a/src/main/resources/mapper/WebSetMapper.xml +++ b/src/main/resources/mapper/WebSetMapper.xml @@ -3,7 +3,25 @@ <mapper namespace="com.xcong.farmer.cms.modules.system.mapper.WebSetMapper"> <select id="selectByCompanyId" resultType="com.xcong.farmer.cms.modules.system.entity.WebSettingEntity"> - select * from t_web_setting where company_id=#{companyId} + select + a.*, + b.web_address companyUrl, + b.code companyCode + from t_web_setting a, t_company b + where a.company_id=#{companyId} and a.company_id=b.id + </select> + + <select id="selectSiteGlobalSetting" resultType="java.util.Map"> + select + a.title title, + a.seo_title seoTitle, + a.seo_keyword seoKeyword, + a.seo_description seoDescription, + a.logo_url logo, + b.web_address baseUrl, + b.code companyCode + from t_web_setting a, t_company b + where a.company_id=#{companyId} and a.company_id=b.id </select> </mapper> \ No newline at end of file -- Gitblit v1.9.1