zhwl/zhwl-business/zhwl-base/target/classes/mapper/base/ZdyBaseOnlinePlatformMapper.xml

205 lines
7.9 KiB
XML
Raw Normal View History

2025-07-01 17:54:58 +08:00
<?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.zhwl.base.mapper.ZdyBaseOnlinePlatformMapper">
<resultMap type="ZdyBaseOnlinePlatform" id="ZdyBaseOnlinePlatformResult">
<result property="id" column="id"/>
<result property="appid" column="appid"/>
<result property="appName" column="app_name"/>
<result property="scenicId" column="scenic_id"/>
<result property="serviceChannel" column="service_channel"/>
<result property="bodyInfo" column="body_info"/>
<result property="authenticationStatus" column="authentication_status"/>
<result property="registrationStatus" column="registration_status"/>
<result property="authorizationTime" column="authorization_time"/>
<result property="qrCode" column="qr_code"/>
<result property="image" column="image"/>
<result property="createTime" column="create_time"/>
<result property="createBy" column="create_by"/>
<result property="updateTime" column="update_time"/>
<result property="updateBy" column="update_by"/>
<result property="remark" column="remark"/>
</resultMap>
<sql id="selectZdyBaseOnlinePlatformVo">
select id, appid,scenic_id, app_name, service_channel, body_info, authentication_status, registration_status, authorization_time, qr_code, image, create_time, create_by, update_time, update_by, remark
from zdy_base_online_platform
</sql>
<select id="selectZdyBaseOnlinePlatformList" parameterType="ZdyBaseOnlinePlatform" resultMap="ZdyBaseOnlinePlatformResult">
<include refid="selectZdyBaseOnlinePlatformVo"/>
<where>
<if test="appid != null and appid != ''">
and appid = #{appid}
</if>
<if test="appName != null and appName != ''">
and app_name like concat('%', #{appName}, '%')
</if>
<if test="serviceChannel != null and serviceChannel != ''">
and service_channel = #{serviceChannel}
</if>
<if test="bodyInfo != null and bodyInfo != ''">
and body_info = #{bodyInfo}
</if>
<if test="authenticationStatus != null and authenticationStatus != ''">
and authentication_status = #{authenticationStatus}
</if>
<if test="registrationStatus != null ">
and registration_status = #{registrationStatus}
</if>
<if test="authorizationTime != null ">
and authorization_time = #{authorizationTime}
</if>
<if test="qrCode != null and qrCode != ''">
and qr_code = #{qrCode}
</if>
<if test="image != null and image != ''">
and image = #{image}
</if>
<if test="scenicId != null">
and scenic_id = #{scenicId}
</if>
</where>
</select>
<select id="selectZdyBaseOnlinePlatformById" parameterType="Long"
resultMap="ZdyBaseOnlinePlatformResult">
<include refid="selectZdyBaseOnlinePlatformVo"/>
where id = #{id}
</select>
<insert id="insertZdyBaseOnlinePlatform" parameterType="ZdyBaseOnlinePlatform" useGeneratedKeys="true"
keyProperty="id">
insert into zdy_base_online_platform
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="appid != null">appid,
</if>
<if test="appName != null">app_name,
</if>
<if test="serviceChannel != null">service_channel,
</if>
<if test="bodyInfo != null">body_info,
</if>
<if test="authenticationStatus != null">authentication_status,
</if>
<if test="registrationStatus != null">registration_status,
</if>
<if test="authorizationTime != null">authorization_time,
</if>
<if test="qrCode != null">qr_code,
</if>
<if test="image != null">image,
</if>
<if test="createTime != null">create_time,
</if>
<if test="createBy != null">create_by,
</if>
<if test="updateTime != null">update_time,
</if>
<if test="updateBy != null">update_by,
</if>
<if test="remark != null">remark,
</if>
<if test="scenicId != null">scenic_id,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="appid != null">#{appid},
</if>
<if test="appName != null">#{appName},
</if>
<if test="serviceChannel != null">#{serviceChannel},
</if>
<if test="bodyInfo != null">#{bodyInfo},
</if>
<if test="authenticationStatus != null">#{authenticationStatus},
</if>
<if test="registrationStatus != null">#{registrationStatus},
</if>
<if test="authorizationTime != null">#{authorizationTime},
</if>
<if test="qrCode != null">#{qrCode},
</if>
<if test="image != null">#{image},
</if>
<if test="createTime != null">#{createTime},
</if>
<if test="createBy != null">#{createBy},
</if>
<if test="updateTime != null">#{updateTime},
</if>
<if test="updateBy != null">#{updateBy},
</if>
<if test="remark != null">#{remark},
</if>
<if test="scenicId != null">#{scenicId},
</if>
</trim>
</insert>
<update id="updateZdyBaseOnlinePlatform" parameterType="ZdyBaseOnlinePlatform">
update zdy_base_online_platform
<trim prefix="SET" suffixOverrides=",">
<if test="appid != null">appid =
#{appid},
</if>
<if test="appName != null">app_name =
#{appName},
</if>
<if test="serviceChannel != null">service_channel =
#{serviceChannel},
</if>
<if test="bodyInfo != null">body_info =
#{bodyInfo},
</if>
<if test="authenticationStatus != null">authentication_status =
#{authenticationStatus},
</if>
<if test="registrationStatus != null">registration_status =
#{registrationStatus},
</if>
<if test="authorizationTime != null">authorization_time =
#{authorizationTime},
</if>
<if test="qrCode != null">qr_code =
#{qrCode},
</if>
<if test="image != null">image =
#{image},
</if>
<if test="createTime != null">create_time =
#{createTime},
</if>
<if test="createBy != null">create_by =
#{createBy},
</if>
<if test="updateTime != null">update_time =
#{updateTime},
</if>
<if test="updateBy != null">update_by =
#{updateBy},
</if>
<if test="remark != null">remark =
#{remark},
</if>
<if test="scenicId != null">scenic_id =
#{scenicId},
</if>
</trim>
where id = #{id}
</update>
<delete id="deleteZdyBaseOnlinePlatformById" parameterType="Long">
delete from zdy_base_online_platform where id = #{id}
</delete>
<delete id="deleteZdyBaseOnlinePlatformByIds" parameterType="String">
delete from zdy_base_online_platform where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>