java110
2022-08-18 9ffde8969b610ff78321b8681f074439498dd205
java110-db/src/main/resources/mapper/common/SystemInfoV1ServiceDaoImplMapper.xml
@@ -5,23 +5,23 @@
<mapper namespace="systemInfoV1ServiceDaoImpl">
    <!-- 保存系统配置信息 add by wuxw 2018-07-03 -->
    <insert id="saveSystemInfoInfo" parameterType="Map">
        insert into system_info(
img_url,system_id,owner_title,default_community_id,system_title,qq_map_key,sub_system_title,company_name,mall_url,logo_url,property_title
        img_url,system_id,owner_title,default_community_id,system_title,qq_map_key,sub_system_title,company_name,mall_url,logo_url,property_title,system_simple_title
) values (
#{imgUrl},#{systemId},#{ownerTitle},#{defaultCommunityId},#{systemTitle},#{qqMapKey},#{subSystemTitle},#{companyName},#{mallUrl},#{logoUrl},#{propertyTitle}
        #{imgUrl},#{systemId},#{ownerTitle},#{defaultCommunityId},#{systemTitle},#{qqMapKey},#{subSystemTitle},#{companyName},#{mallUrl},#{logoUrl},#{propertyTitle} #{systemSimpleTitle}
)
    </insert>
    <!-- 查询系统配置信息 add by wuxw 2018-07-03 -->
    <select id="getSystemInfoInfo" parameterType="Map" resultType="Map">
        select  t.img_url,t.img_url imgUrl,t.system_id,t.system_id systemId,t.owner_title,t.owner_title ownerTitle,t.default_community_id,t.default_community_id defaultCommunityId,t.system_title,t.system_title systemTitle,t.qq_map_key,t.qq_map_key qqMapKey,t.sub_system_title,t.sub_system_title subSystemTitle,t.company_name,t.company_name companyName,t.mall_url,t.mall_url mallUrl,t.status_cd,t.status_cd statusCd,t.logo_url,t.logo_url logoUrl,t.property_title,t.property_title propertyTitle
        select t.img_url,t.img_url imgUrl,t.system_id,t.system_id systemId,t.owner_title,t.owner_title
        ownerTitle,t.default_community_id,t.default_community_id defaultCommunityId,t.system_title,t.system_title
        systemTitle,t.qq_map_key,t.qq_map_key qqMapKey,t.sub_system_title,t.sub_system_title
        subSystemTitle,t.company_name,t.company_name companyName,t.mall_url,t.mall_url mallUrl,t.status_cd,t.status_cd
        statusCd,t.logo_url,t.logo_url logoUrl,t.property_title,t.property_title propertyTitle,system_simple_title systemSimpleTitle
from system_info t 
where 1 =1 
<if test="imgUrl !=null and imgUrl != ''">
@@ -68,8 +68,6 @@
    </select>
    <!-- 修改系统配置信息 add by wuxw 2018-07-03 -->
    <update id="updateSystemInfoInfo" parameterType="Map">
        update  system_info t set t.status_cd = #{statusCd}
@@ -87,6 +85,9 @@
</if> 
<if test="systemTitle !=null and systemTitle != ''">
, t.system_title= #{systemTitle}
        </if>
        <if test="systemSimpleTitle !=null and systemSimpleTitle != ''">
            , t.system_simple_title= #{systemSimpleTitle}
</if> 
<if test="qqMapKey !=null and qqMapKey != ''">
, t.qq_map_key= #{qqMapKey}
@@ -106,7 +107,8 @@
<if test="propertyTitle !=null and propertyTitle != ''">
, t.property_title= #{propertyTitle}
</if> 
 where 1=1 <if test="systemId !=null and systemId != ''">
        where 1=1
        <if test="systemId !=null and systemId != ''">
and t.system_id= #{systemId}
</if>