fix
Helius
2022-12-14 62a304eb5c68fc7f54a9bc247e76223cc2c7f243
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.xcong.farmer.cms.modules.system.mapper.WebSetMapper">
 
    <select id="selectByCompanyId" resultType="com.xcong.farmer.cms.modules.system.entity.WebSettingEntity">
        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>