|
|
@@ -1,7 +1,7 @@
|
|
|
<?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">
|
|
|
+ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
+ "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
<mapper namespace="com.zd.system.mapper.SysLogoConfigMapper">
|
|
|
|
|
|
<resultMap type="com.zd.system.domain.SysLogoConfig" id="SysLogoConfigResult">
|
|
|
@@ -18,78 +18,124 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="userType" column="user_type"/>
|
|
|
<result property="smartLock" column="smart_lock"/>
|
|
|
<result property="airBottle" column="air_bottle"/>
|
|
|
+ <result property="returnTime" column="return_time"/>
|
|
|
+ <result property="logoutTime" column="logout_time"/>
|
|
|
+ <result property="isStart" column="is_start"/>
|
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectSysLogoConfigVo">
|
|
|
- select id, school_name, circular_logo, rectangle_logo, lot_control, sign_map, video_cover, operation_guide, login_banner, homepage_banner,user_type,smart_lock,
|
|
|
- air_bottle
|
|
|
+ select id,
|
|
|
+ school_name,
|
|
|
+ circular_logo,
|
|
|
+ rectangle_logo,
|
|
|
+ lot_control,
|
|
|
+ sign_map,
|
|
|
+ video_cover,
|
|
|
+ operation_guide,
|
|
|
+ login_banner,
|
|
|
+ homepage_banner,
|
|
|
+ user_type,
|
|
|
+ smart_lock,
|
|
|
+ air_bottle,
|
|
|
+ return_time,
|
|
|
+ logout_time,
|
|
|
+ is_start
|
|
|
from sys_logo_config
|
|
|
</sql>
|
|
|
<sql id="selectSysLogoConfigListVo">
|
|
|
- select t.id, t.school_name, t.circular_logo, t.rectangle_logo, t.lot_control, t.sign_map, t.video_cover, t.operation_guide, t.login_banner, t.homepage_banner,t.user_type from sys_logo_config as t
|
|
|
+ select t.id,
|
|
|
+ t.school_name,
|
|
|
+ t.circular_logo,
|
|
|
+ t.rectangle_logo,
|
|
|
+ t.lot_control,
|
|
|
+ t.sign_map,
|
|
|
+ t.video_cover,
|
|
|
+ t.operation_guide,
|
|
|
+ t.login_banner,
|
|
|
+ t.homepage_banner,
|
|
|
+ t.user_type,
|
|
|
+ t.return_time,
|
|
|
+ t.logout_time,
|
|
|
+ t.is_start
|
|
|
+ from sys_logo_config as t
|
|
|
</sql>
|
|
|
- <select id="selectSysLogoConfigList" parameterType="com.zd.system.domain.SysLogoConfig" resultMap="SysLogoConfigResult">
|
|
|
+ <select id="selectSysLogoConfigList" parameterType="com.zd.system.domain.SysLogoConfig"
|
|
|
+ resultMap="SysLogoConfigResult">
|
|
|
<include refid="selectSysLogoConfigVo"/>
|
|
|
<where>
|
|
|
- <if test="schoolName != null and schoolName != ''"> and school_name like concat('%', #{schoolName}, '%')</if>
|
|
|
- <if test="circularLogo != null and circularLogo != ''"> and circular_logo = #{circularLogo}</if>
|
|
|
- <if test="rectangleLogo != null and rectangleLogo != ''"> and rectangle_logo = #{rectangleLogo}</if>
|
|
|
- <if test="lotControl != null and lotControl != ''"> and lot_control = #{lotControl}</if>
|
|
|
- <if test="signMap != null and signMap != ''"> and sign_map = #{signMap}</if>
|
|
|
- <if test="videoCover != null and videoCover != ''"> and video_cover = #{videoCover}</if>
|
|
|
- <if test="operationGuide != null and operationGuide != ''"> and operation_guide = #{operationGuide}</if>
|
|
|
- <if test="loginBanner != null and loginBanner != ''"> and login_banner = #{loginBanner}</if>
|
|
|
- <if test="homepageBanner != null and homepageBanner != ''"> and homepage_banner = #{homepageBanner}</if>
|
|
|
+ <if test="schoolName != null and schoolName != ''">and school_name like concat('%', #{schoolName}, '%')
|
|
|
+ </if>
|
|
|
+ <if test="circularLogo != null and circularLogo != ''">and circular_logo = #{circularLogo}</if>
|
|
|
+ <if test="rectangleLogo != null and rectangleLogo != ''">and rectangle_logo = #{rectangleLogo}</if>
|
|
|
+ <if test="lotControl != null and lotControl != ''">and lot_control = #{lotControl}</if>
|
|
|
+ <if test="signMap != null and signMap != ''">and sign_map = #{signMap}</if>
|
|
|
+ <if test="videoCover != null and videoCover != ''">and video_cover = #{videoCover}</if>
|
|
|
+ <if test="operationGuide != null and operationGuide != ''">and operation_guide = #{operationGuide}</if>
|
|
|
+ <if test="loginBanner != null and loginBanner != ''">and login_banner = #{loginBanner}</if>
|
|
|
+ <if test="homepageBanner != null and homepageBanner != ''">and homepage_banner = #{homepageBanner}</if>
|
|
|
+ <if test="returnTime != null">and return_time = #{returnTime}</if>
|
|
|
+ <if test="logoutTime != null">and logout_time = #{logoutTime}</if>
|
|
|
+ <if test="isStart != null">and is_start = #{isStart}</if>
|
|
|
</where>
|
|
|
</select>
|
|
|
|
|
|
- <select id="selectSysLogoConfigById" resultMap="SysLogoConfigResult">
|
|
|
+ <select id="selectSysLogoConfigById" resultMap="SysLogoConfigResult">
|
|
|
<include refid="selectSysLogoConfigVo"/>
|
|
|
where id = #{id}
|
|
|
</select>
|
|
|
|
|
|
- <insert id="insertSysLogoConfig" parameterType="com.zd.system.domain.SysLogoConfig" useGeneratedKeys="true" keyProperty="id">
|
|
|
+ <insert id="insertSysLogoConfig" parameterType="com.zd.system.domain.SysLogoConfig" useGeneratedKeys="true"
|
|
|
+ keyProperty="id">
|
|
|
insert into sys_logo_config
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
- <if test="schoolName != null">school_name,</if>
|
|
|
+ <if test="schoolName != null">school_name,</if>
|
|
|
|
|
|
- <if test="circularLogo != null">circular_logo,</if>
|
|
|
+ <if test="circularLogo != null">circular_logo,</if>
|
|
|
|
|
|
- <if test="rectangleLogo != null">rectangle_logo,</if>
|
|
|
+ <if test="rectangleLogo != null">rectangle_logo,</if>
|
|
|
|
|
|
- <if test="lotControl != null">lot_control,</if>
|
|
|
+ <if test="lotControl != null">lot_control,</if>
|
|
|
|
|
|
- <if test="signMap != null">sign_map,</if>
|
|
|
+ <if test="signMap != null">sign_map,</if>
|
|
|
|
|
|
- <if test="videoCover != null">video_cover,</if>
|
|
|
+ <if test="videoCover != null">video_cover,</if>
|
|
|
|
|
|
- <if test="operationGuide != null">operation_guide,</if>
|
|
|
+ <if test="operationGuide != null">operation_guide,</if>
|
|
|
|
|
|
- <if test="loginBanner != null">login_banner,</if>
|
|
|
+ <if test="loginBanner != null">login_banner,</if>
|
|
|
|
|
|
- <if test="homepageBanner != null">homepage_banner,</if>
|
|
|
+ <if test="homepageBanner != null">homepage_banner,</if>
|
|
|
|
|
|
- <if test="userType != null">user_type,</if>
|
|
|
+ <if test="userType != null">user_type,</if>
|
|
|
|
|
|
- <if test="smartLock != null">smart_lock,</if>
|
|
|
+ <if test="smartLock != null">smart_lock,</if>
|
|
|
|
|
|
- <if test="airBottle != null">air_bottle,</if>
|
|
|
- </trim>
|
|
|
+ <if test="airBottle != null">air_bottle,</if>
|
|
|
+
|
|
|
+ <if test="returnTime != null">return_time,</if>
|
|
|
+
|
|
|
+ <if test="logoutTime != null">logout_time,</if>
|
|
|
+
|
|
|
+ <if test="isStart != null">is_start,</if>
|
|
|
+ </trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
- <if test="schoolName != null">#{schoolName},</if>
|
|
|
- <if test="circularLogo != null">#{circularLogo},</if>
|
|
|
- <if test="rectangleLogo != null">#{rectangleLogo},</if>
|
|
|
- <if test="lotControl != null">#{lotControl},</if>
|
|
|
- <if test="signMap != null">#{signMap},</if>
|
|
|
- <if test="videoCover != null">#{videoCover},</if>
|
|
|
- <if test="operationGuide != null">#{operationGuide},</if>
|
|
|
- <if test="loginBanner != null">#{loginBanner},</if>
|
|
|
- <if test="homepageBanner != null">#{homepageBanner},</if>
|
|
|
- <if test="userType != null">#{userType},</if>
|
|
|
- <if test="smartLock != null">#{smartLock},</if>
|
|
|
- <if test="airBottle != null">#{airBottle},</if>
|
|
|
- </trim>
|
|
|
+ <if test="schoolName != null">#{schoolName},</if>
|
|
|
+ <if test="circularLogo != null">#{circularLogo},</if>
|
|
|
+ <if test="rectangleLogo != null">#{rectangleLogo},</if>
|
|
|
+ <if test="lotControl != null">#{lotControl},</if>
|
|
|
+ <if test="signMap != null">#{signMap},</if>
|
|
|
+ <if test="videoCover != null">#{videoCover},</if>
|
|
|
+ <if test="operationGuide != null">#{operationGuide},</if>
|
|
|
+ <if test="loginBanner != null">#{loginBanner},</if>
|
|
|
+ <if test="homepageBanner != null">#{homepageBanner},</if>
|
|
|
+ <if test="userType != null">#{userType},</if>
|
|
|
+ <if test="smartLock != null">#{smartLock},</if>
|
|
|
+ <if test="airBottle != null">#{airBottle},</if>
|
|
|
+ <if test="returnTime != null">#{returnTime},</if>
|
|
|
+ <if test="logoutTime != null">#{logoutTime},</if>
|
|
|
+ <if test="isStart != null">#{isStart},</if>
|
|
|
+ </trim>
|
|
|
</insert>
|
|
|
|
|
|
<update id="updateSysLogoConfig" parameterType="com.zd.system.domain.SysLogoConfig">
|
|
|
@@ -107,12 +153,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="userType != null">user_type = #{userType},</if>
|
|
|
<if test="smartLock != null">smart_lock = #{smartLock},</if>
|
|
|
<if test="airBottle != null">air_bottle = #{airBottle},</if>
|
|
|
+
|
|
|
+ <if test="returnTime != null">return_time = #{returnTime},</if>
|
|
|
+ <if test="logoutTime != null">logout_time = #{logoutTime},</if>
|
|
|
+ <if test="isStart != null">is_start = #{isStart},</if>
|
|
|
</trim>
|
|
|
where id = #{id}
|
|
|
</update>
|
|
|
|
|
|
- <delete id="deleteSysLogoConfigById" >
|
|
|
- delete from sys_logo_config where id = #{id}
|
|
|
+ <delete id="deleteSysLogoConfigById">
|
|
|
+ delete
|
|
|
+ from sys_logo_config
|
|
|
+ where id = #{id}
|
|
|
</delete>
|
|
|
|
|
|
<delete id="deleteSysLogoConfigByIds">
|