|
@@ -0,0 +1,118 @@
|
|
|
+<?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.zkqy.system.mapper.LoginPageConfigurationMapper">
|
|
|
+
|
|
|
+ <resultMap type="LoginPageConfiguration" id="LoginPageConfigurationResult">
|
|
|
+ <result property="id" column="id" />
|
|
|
+ <result property="loginPageNumber" column="login_page_number" />
|
|
|
+ <result property="loginPageTitle" column="login_page_title" />
|
|
|
+ <result property="loginPageDescription" column="login_page_description" />
|
|
|
+ <result property="loginPageLogo" column="login_page_logo" />
|
|
|
+ <result property="loginPageBackgroundImage" column="login_page_background_image" />
|
|
|
+ <result property="windowTitle" column="window_title" />
|
|
|
+ <result property="windowLogo" column="window_logo" />
|
|
|
+ <result property="tenantId" column="tenant_id" />
|
|
|
+ <result property="remark" column="remark" />
|
|
|
+ <result property="createBy" column="create_by" />
|
|
|
+ <result property="createById" column="create_by_id" />
|
|
|
+ <result property="createTime" column="create_time" />
|
|
|
+ <result property="updateBy" column="update_by" />
|
|
|
+ <result property="updateById" column="update_by_id" />
|
|
|
+ <result property="updateTime" column="update_time" />
|
|
|
+ <result property="delFlag" column="del_flag" />
|
|
|
+ </resultMap>
|
|
|
+
|
|
|
+ <sql id="selectLoginPageConfigurationVo">
|
|
|
+ select id, login_page_number, login_page_title, login_page_description, login_page_logo, login_page_background_image, window_title, window_logo, tenant_id, remark, create_by, create_by_id, create_time, update_by, update_by_id, update_time, del_flag from login_page_configuration
|
|
|
+ </sql>
|
|
|
+
|
|
|
+ <select id="selectLoginPageConfigurationList" parameterType="LoginPageConfiguration" resultMap="LoginPageConfigurationResult">
|
|
|
+ <include refid="selectLoginPageConfigurationVo"/>
|
|
|
+ where del_flag = '0'
|
|
|
+ <if test="loginPageNumber != null and loginPageNumber != ''"> and login_page_number = #{loginPageNumber}</if>
|
|
|
+ <if test="loginPageTitle != null and loginPageTitle != ''"> and login_page_title = #{loginPageTitle}</if>
|
|
|
+ <if test="loginPageDescription != null and loginPageDescription != ''"> and login_page_description = #{loginPageDescription}</if>
|
|
|
+ <if test="loginPageLogo != null and loginPageLogo != ''"> and login_page_logo = #{loginPageLogo}</if>
|
|
|
+ <if test="loginPageBackgroundImage != null and loginPageBackgroundImage != ''"> and login_page_background_image = #{loginPageBackgroundImage}</if>
|
|
|
+ <if test="windowTitle != null and windowTitle != ''"> and window_title = #{windowTitle}</if>
|
|
|
+ <if test="windowLogo != null and windowLogo != ''"> and window_logo = #{windowLogo}</if>
|
|
|
+ <if test="tenantId != null "> and tenant_id = #{tenantId}</if>
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="selectLoginPageConfigurationByTenantId" parameterType="Long" resultMap="LoginPageConfigurationResult">
|
|
|
+ <include refid="selectLoginPageConfigurationVo"/>
|
|
|
+ where tenant_id = #{tenantId}
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="selectLoginPageConfigurationByLoginPageNumber" parameterType="string" resultMap="LoginPageConfigurationResult">
|
|
|
+ <include refid="selectLoginPageConfigurationVo"/>
|
|
|
+ where login_page_number = #{loginPageNumber}
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <insert id="insertLoginPageConfiguration" parameterType="LoginPageConfiguration">
|
|
|
+ insert into login_page_configuration
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="loginPageNumber != null">login_page_number,</if>
|
|
|
+ <if test="loginPageTitle != null">login_page_title,</if>
|
|
|
+ <if test="loginPageDescription != null">login_page_description,</if>
|
|
|
+ <if test="loginPageLogo != null">login_page_logo,</if>
|
|
|
+ <if test="loginPageBackgroundImage != null">login_page_background_image,</if>
|
|
|
+ <if test="windowTitle != null">window_title,</if>
|
|
|
+ <if test="windowLogo != null">window_logo,</if>
|
|
|
+ <if test="tenantId != null">tenant_id,</if>
|
|
|
+ <if test="remark != null">remark,</if>
|
|
|
+ <if test="createBy != null">create_by,</if>
|
|
|
+ <if test="createById != null">create_by_id,</if>
|
|
|
+ <if test="createTime != null">create_time,</if>
|
|
|
+ del_flag
|
|
|
+ </trim>
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="loginPageNumber != null">#{loginPageNumber},</if>
|
|
|
+ <if test="loginPageTitle != null">#{loginPageTitle},</if>
|
|
|
+ <if test="loginPageDescription != null">#{loginPageDescription},</if>
|
|
|
+ <if test="loginPageLogo != null">#{loginPageLogo},</if>
|
|
|
+ <if test="loginPageBackgroundImage != null">#{loginPageBackgroundImage},</if>
|
|
|
+ <if test="windowTitle != null">#{windowTitle},</if>
|
|
|
+ <if test="windowLogo != null">#{windowLogo},</if>
|
|
|
+ <if test="tenantId != null">#{tenantId},</if>
|
|
|
+ <if test="remark != null">#{remark},</if>
|
|
|
+ <if test="createBy != null">#{createBy},</if>
|
|
|
+ <if test="createById != null">#{createById},</if>
|
|
|
+ <if test="createTime != null">#{createTime},</if>
|
|
|
+ '0'
|
|
|
+ </trim>
|
|
|
+ </insert>
|
|
|
+
|
|
|
+ <update id="updateLoginPageConfiguration" parameterType="LoginPageConfiguration">
|
|
|
+ update login_page_configuration
|
|
|
+ <trim prefix="SET" suffixOverrides=",">
|
|
|
+ <if test="loginPageNumber != null">login_page_number = #{loginPageNumber},</if>
|
|
|
+ <if test="loginPageTitle != null">login_page_title = #{loginPageTitle},</if>
|
|
|
+ <if test="loginPageDescription != null">login_page_description = #{loginPageDescription},</if>
|
|
|
+ <if test="loginPageLogo != null">login_page_logo = #{loginPageLogo},</if>
|
|
|
+ <if test="loginPageBackgroundImage != null">login_page_background_image = #{loginPageBackgroundImage},</if>
|
|
|
+ <if test="windowTitle != null">window_title = #{windowTitle},</if>
|
|
|
+ <if test="windowLogo != null">window_logo = #{windowLogo},</if>
|
|
|
+ <if test="tenantId != null">tenant_id = #{tenantId},</if>
|
|
|
+ <if test="remark != null">remark = #{remark},</if>
|
|
|
+ <if test="updateBy != null">update_by = #{updateBy},</if>
|
|
|
+ <if test="updateById != null">update_by_id = #{updateById},</if>
|
|
|
+ <if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
+ <if test="delFlag != null">del_flag = #{delFlag},</if>
|
|
|
+ </trim>
|
|
|
+ where id = #{id}
|
|
|
+ </update>
|
|
|
+
|
|
|
+ <delete id="deleteLoginPageConfigurationById" parameterType="Long">
|
|
|
+ update login_page_configuration set del_flag = '2' where id = #{id}
|
|
|
+ </delete>
|
|
|
+
|
|
|
+ <delete id="deleteLoginPageConfigurationByIds" parameterType="String">
|
|
|
+ update login_page_configuration set del_flag = '2' where id in
|
|
|
+ <foreach item="id" collection="array" open="(" separator="," close=")">
|
|
|
+ #{id}
|
|
|
+ </foreach>
|
|
|
+ </delete>
|
|
|
+</mapper>
|