ShyLiveapplyMapper.xml 3.06 KB
<?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.cnlive.shenhe.mapper.ShyLiveapplyMapper">
    <resultMap id="BaseResultMap" type="com.cnlive.shenhe.entity.ShyLiveapply">
        <!--
          WARNING - @mbg.generated
        -->
        <id column="id" jdbcType="INTEGER" property="id"/>
        <result column="activity_id" jdbcType="VARCHAR" property="activity_id"/>
        <result column="channel_id" jdbcType="VARCHAR" property="channel_id"/>
        <result column="sp_id" jdbcType="INTEGER" property="sp_id"/>
        <result column="sender" jdbcType="VARCHAR" property="sender"/>
        <result column="mobile" jdbcType="VARCHAR" property="mobile"/>
        <result column="organization" jdbcType="VARCHAR" property="organization"/>
        <result column="theme" jdbcType="VARCHAR" property="theme"/>
        <result column="live_type" jdbcType="VARCHAR" property="live_type"/>
        <result column="pre_start_time" jdbcType="TIMESTAMP" property="pre_start_time"/>
        <result column="pre_end_time" jdbcType="TIMESTAMP" property="pre_end_time"/>
        <result column="business_model" jdbcType="INTEGER" property="business_model"/>
        <result column="content_property" jdbcType="INTEGER" property="content_property"/>
        <result column="point_key" jdbcType="VARCHAR" property="point_key"/>
        <result column="live_place" jdbcType="VARCHAR" property="live_place"/>
        <result column="push_url" jdbcType="VARCHAR" property="push_url"/>
        <result column="pull_url" jdbcType="VARCHAR" property="pull_url"/>
        <result column="pull_source" jdbcType="VARCHAR" property="pull_source"/>
        <result column="platforms" jdbcType="VARCHAR" property="platforms"/>
        <result column="callback" jdbcType="VARCHAR" property="callback"/>
        <result column="shenhe_type" jdbcType="INTEGER" property="shenhe_type"/>
        <result column="receive" jdbcType="INTEGER" property="receive"/>
        <result column="shenhe_state" jdbcType="INTEGER" property="shenhe_state"/>
        <result column="updater" jdbcType="VARCHAR" property="updater"/>
        <result column="auditor" jdbcType="VARCHAR" property="auditor"/>
        <result column="shenhe_msg" jdbcType="VARCHAR" property="shenhe_msg"/>
        <result column="email_notice_state" jdbcType="INTEGER" property="email_notice_state"/>
        <result column="created_at" jdbcType="TIMESTAMP" property="created_at"/>
        <result column="updated_at" jdbcType="TIMESTAMP" property="updated_at"/>
        <result column="simple_content" jdbcType="LONGVARCHAR" property="simple_content"/>
        <result column="email_notice_msg" jdbcType="LONGVARCHAR" property="email_notice_msg"/>
    </resultMap>

  <select id="selectBySpId" resultType="com.cnlive.shenhe.entity.ShyLiveapply">
    select *
    from shy_liveapply
    <where>
      <if test="id != null">
        and id = #{id}
      </if>
      <if test="spId != null and spId != 0">
        and sp_id = #{spId}
      </if>
    </where>
  </select>
</mapper>