<?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="generate.ZrzyCkqNoticeDao">
  <resultMap id="BaseResultMap" type="com.trs.project.entity.ZrzyCkqNotice">
    <id column="SOURCE_DATA_KEY" jdbcType="VARCHAR" property="sourceDataKey" />
    <result column="SOURCE_DATA_CODE" jdbcType="VARCHAR" property="sourceDataCode" />
    <result column="NA_APP_NAME" jdbcType="VARCHAR" property="naAppName" />
    <result column="NOTICE_SEND_TIME" jdbcType="BIGINT" property="noticeSendTime" />
    <result column="NOTICE_END_TIME" jdbcType="BIGINT" property="noticeEndTime" />
    <result column="UNIFIED_DEAL_CODE" jdbcType="VARCHAR" property="unifiedDealCode" />
    <result column="NOTICE_CODE" jdbcType="VARCHAR" property="noticeCode" />
    <result column="NOTICE_NAME" jdbcType="VARCHAR" property="noticeName" />
    <result column="ANNOUNCEMENT_CONNECT" jdbcType="VARCHAR" property="announcementConnect" />
    <result column="NOTICE_NATURE" jdbcType="VARCHAR" property="noticeNature" />
    <result column="URL" jdbcType="VARCHAR" property="url" />
    <result column="IN_BUY_KIND" jdbcType="BIGINT" property="inBuyKind" />
    <result column="CK_RESERVE_PRICE" jdbcType="DECIMAL" property="ckReservePrice" />
    <result column="CK_RESERVE_PRICE_UINT" jdbcType="VARCHAR" property="ckReservePriceUint" />
    <result column="IN_MINE_COME" jdbcType="BIGINT" property="inMineCome" />
    <result column="QT_PLAN_YEARS" jdbcType="DECIMAL" property="qtPlanYears" />
    <result column="QT_TOTAL_AREA" jdbcType="DECIMAL" property="qtTotalArea" />
    <result column="NA_GEOGRAPHY_POSITION" jdbcType="VARCHAR" property="naGeographyPosition" />
    <result column="REGION_CODE" jdbcType="VARCHAR" property="regionCode" />
    <result column="TRA_PLACE_CODE" jdbcType="VARCHAR" property="traPlaceCode" />
    <result column="TRA_AGENCY_NAME" jdbcType="VARCHAR" property="traAgencyName" />
    <result column="TRA_AGENCY_CODE" jdbcType="VARCHAR" property="traAgencyCode" />
    <result column="NA_AREA_COORDINATE" jdbcType="VARCHAR" property="naAreaCoordinate" />
    <result column="PLATFORM_CODE" jdbcType="VARCHAR" property="platformCode" />
    <result column="PUB_SERVICE_PLAT_CODE" jdbcType="VARCHAR" property="pubServicePlatCode" />
    <result column="DATA_TIMESTAMP" jdbcType="BIGINT" property="dataTimestamp" />
    <result column="DATA_SOURCE_CODE" jdbcType="VARCHAR" property="dataSourceCode" />
  </resultMap>
  <sql id="Base_Column_List">
    SOURCE_DATA_KEY, SOURCE_DATA_CODE, NA_APP_NAME, NOTICE_SEND_TIME, NOTICE_END_TIME, 
    UNIFIED_DEAL_CODE, NOTICE_CODE, NOTICE_NAME, ANNOUNCEMENT_CONNECT, NOTICE_NATURE, 
    URL, IN_BUY_KIND, CK_RESERVE_PRICE, CK_RESERVE_PRICE_UINT, IN_MINE_COME, QT_PLAN_YEARS, 
    QT_TOTAL_AREA, NA_GEOGRAPHY_POSITION, REGION_CODE, TRA_PLACE_CODE, TRA_AGENCY_NAME, 
    TRA_AGENCY_CODE, NA_AREA_COORDINATE, PLATFORM_CODE, PUB_SERVICE_PLAT_CODE, DATA_TIMESTAMP, 
    DATA_SOURCE_CODE
  </sql>
  <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
    select 
    <include refid="Base_Column_List" />
    from zrzy_ckq_notice
    where SOURCE_DATA_KEY = #{sourceDataKey,jdbcType=VARCHAR}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
    delete from zrzy_ckq_notice
    where SOURCE_DATA_KEY = #{sourceDataKey,jdbcType=VARCHAR}
  </delete>
  <insert id="insert" keyColumn="SOURCE_DATA_KEY" keyProperty="sourceDataKey" parameterType="com.trs.project.entity.ZrzyCkqNotice" useGeneratedKeys="true">
    insert into zrzy_ckq_notice (SOURCE_DATA_CODE, NA_APP_NAME, NOTICE_SEND_TIME, 
      NOTICE_END_TIME, UNIFIED_DEAL_CODE, NOTICE_CODE, 
      NOTICE_NAME, ANNOUNCEMENT_CONNECT, NOTICE_NATURE, 
      URL, IN_BUY_KIND, CK_RESERVE_PRICE, 
      CK_RESERVE_PRICE_UINT, IN_MINE_COME, QT_PLAN_YEARS, 
      QT_TOTAL_AREA, NA_GEOGRAPHY_POSITION, REGION_CODE, 
      TRA_PLACE_CODE, TRA_AGENCY_NAME, TRA_AGENCY_CODE, 
      NA_AREA_COORDINATE, PLATFORM_CODE, PUB_SERVICE_PLAT_CODE, 
      DATA_TIMESTAMP, DATA_SOURCE_CODE)
    values (#{sourceDataCode,jdbcType=VARCHAR}, #{naAppName,jdbcType=VARCHAR}, #{noticeSendTime,jdbcType=BIGINT}, 
      #{noticeEndTime,jdbcType=BIGINT}, #{unifiedDealCode,jdbcType=VARCHAR}, #{noticeCode,jdbcType=VARCHAR}, 
      #{noticeName,jdbcType=VARCHAR}, #{announcementConnect,jdbcType=VARCHAR}, #{noticeNature,jdbcType=VARCHAR}, 
      #{url,jdbcType=VARCHAR}, #{inBuyKind,jdbcType=BIGINT}, #{ckReservePrice,jdbcType=DECIMAL}, 
      #{ckReservePriceUint,jdbcType=VARCHAR}, #{inMineCome,jdbcType=BIGINT}, #{qtPlanYears,jdbcType=DECIMAL}, 
      #{qtTotalArea,jdbcType=DECIMAL}, #{naGeographyPosition,jdbcType=VARCHAR}, #{regionCode,jdbcType=VARCHAR}, 
      #{traPlaceCode,jdbcType=VARCHAR}, #{traAgencyName,jdbcType=VARCHAR}, #{traAgencyCode,jdbcType=VARCHAR}, 
      #{naAreaCoordinate,jdbcType=VARCHAR}, #{platformCode,jdbcType=VARCHAR}, #{pubServicePlatCode,jdbcType=VARCHAR}, 
      #{dataTimestamp,jdbcType=BIGINT}, #{dataSourceCode,jdbcType=VARCHAR})
  </insert>
  <insert id="insertSelective" keyColumn="SOURCE_DATA_KEY" keyProperty="sourceDataKey" parameterType="com.trs.project.entity.ZrzyCkqNotice" useGeneratedKeys="true">
    insert into zrzy_ckq_notice
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="sourceDataCode != null">
        SOURCE_DATA_CODE,
      </if>
      <if test="naAppName != null">
        NA_APP_NAME,
      </if>
      <if test="noticeSendTime != null">
        NOTICE_SEND_TIME,
      </if>
      <if test="noticeEndTime != null">
        NOTICE_END_TIME,
      </if>
      <if test="unifiedDealCode != null">
        UNIFIED_DEAL_CODE,
      </if>
      <if test="noticeCode != null">
        NOTICE_CODE,
      </if>
      <if test="noticeName != null">
        NOTICE_NAME,
      </if>
      <if test="announcementConnect != null">
        ANNOUNCEMENT_CONNECT,
      </if>
      <if test="noticeNature != null">
        NOTICE_NATURE,
      </if>
      <if test="url != null">
        URL,
      </if>
      <if test="inBuyKind != null">
        IN_BUY_KIND,
      </if>
      <if test="ckReservePrice != null">
        CK_RESERVE_PRICE,
      </if>
      <if test="ckReservePriceUint != null">
        CK_RESERVE_PRICE_UINT,
      </if>
      <if test="inMineCome != null">
        IN_MINE_COME,
      </if>
      <if test="qtPlanYears != null">
        QT_PLAN_YEARS,
      </if>
      <if test="qtTotalArea != null">
        QT_TOTAL_AREA,
      </if>
      <if test="naGeographyPosition != null">
        NA_GEOGRAPHY_POSITION,
      </if>
      <if test="regionCode != null">
        REGION_CODE,
      </if>
      <if test="traPlaceCode != null">
        TRA_PLACE_CODE,
      </if>
      <if test="traAgencyName != null">
        TRA_AGENCY_NAME,
      </if>
      <if test="traAgencyCode != null">
        TRA_AGENCY_CODE,
      </if>
      <if test="naAreaCoordinate != null">
        NA_AREA_COORDINATE,
      </if>
      <if test="platformCode != null">
        PLATFORM_CODE,
      </if>
      <if test="pubServicePlatCode != null">
        PUB_SERVICE_PLAT_CODE,
      </if>
      <if test="dataTimestamp != null">
        DATA_TIMESTAMP,
      </if>
      <if test="dataSourceCode != null">
        DATA_SOURCE_CODE,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="sourceDataCode != null">
        #{sourceDataCode,jdbcType=VARCHAR},
      </if>
      <if test="naAppName != null">
        #{naAppName,jdbcType=VARCHAR},
      </if>
      <if test="noticeSendTime != null">
        #{noticeSendTime,jdbcType=BIGINT},
      </if>
      <if test="noticeEndTime != null">
        #{noticeEndTime,jdbcType=BIGINT},
      </if>
      <if test="unifiedDealCode != null">
        #{unifiedDealCode,jdbcType=VARCHAR},
      </if>
      <if test="noticeCode != null">
        #{noticeCode,jdbcType=VARCHAR},
      </if>
      <if test="noticeName != null">
        #{noticeName,jdbcType=VARCHAR},
      </if>
      <if test="announcementConnect != null">
        #{announcementConnect,jdbcType=VARCHAR},
      </if>
      <if test="noticeNature != null">
        #{noticeNature,jdbcType=VARCHAR},
      </if>
      <if test="url != null">
        #{url,jdbcType=VARCHAR},
      </if>
      <if test="inBuyKind != null">
        #{inBuyKind,jdbcType=BIGINT},
      </if>
      <if test="ckReservePrice != null">
        #{ckReservePrice,jdbcType=DECIMAL},
      </if>
      <if test="ckReservePriceUint != null">
        #{ckReservePriceUint,jdbcType=VARCHAR},
      </if>
      <if test="inMineCome != null">
        #{inMineCome,jdbcType=BIGINT},
      </if>
      <if test="qtPlanYears != null">
        #{qtPlanYears,jdbcType=DECIMAL},
      </if>
      <if test="qtTotalArea != null">
        #{qtTotalArea,jdbcType=DECIMAL},
      </if>
      <if test="naGeographyPosition != null">
        #{naGeographyPosition,jdbcType=VARCHAR},
      </if>
      <if test="regionCode != null">
        #{regionCode,jdbcType=VARCHAR},
      </if>
      <if test="traPlaceCode != null">
        #{traPlaceCode,jdbcType=VARCHAR},
      </if>
      <if test="traAgencyName != null">
        #{traAgencyName,jdbcType=VARCHAR},
      </if>
      <if test="traAgencyCode != null">
        #{traAgencyCode,jdbcType=VARCHAR},
      </if>
      <if test="naAreaCoordinate != null">
        #{naAreaCoordinate,jdbcType=VARCHAR},
      </if>
      <if test="platformCode != null">
        #{platformCode,jdbcType=VARCHAR},
      </if>
      <if test="pubServicePlatCode != null">
        #{pubServicePlatCode,jdbcType=VARCHAR},
      </if>
      <if test="dataTimestamp != null">
        #{dataTimestamp,jdbcType=BIGINT},
      </if>
      <if test="dataSourceCode != null">
        #{dataSourceCode,jdbcType=VARCHAR},
      </if>
    </trim>
  </insert>
  <update id="updateByPrimaryKeySelective" parameterType="com.trs.project.entity.ZrzyCkqNotice">
    update zrzy_ckq_notice
    <set>
      <if test="sourceDataCode != null">
        SOURCE_DATA_CODE = #{sourceDataCode,jdbcType=VARCHAR},
      </if>
      <if test="naAppName != null">
        NA_APP_NAME = #{naAppName,jdbcType=VARCHAR},
      </if>
      <if test="noticeSendTime != null">
        NOTICE_SEND_TIME = #{noticeSendTime,jdbcType=BIGINT},
      </if>
      <if test="noticeEndTime != null">
        NOTICE_END_TIME = #{noticeEndTime,jdbcType=BIGINT},
      </if>
      <if test="unifiedDealCode != null">
        UNIFIED_DEAL_CODE = #{unifiedDealCode,jdbcType=VARCHAR},
      </if>
      <if test="noticeCode != null">
        NOTICE_CODE = #{noticeCode,jdbcType=VARCHAR},
      </if>
      <if test="noticeName != null">
        NOTICE_NAME = #{noticeName,jdbcType=VARCHAR},
      </if>
      <if test="announcementConnect != null">
        ANNOUNCEMENT_CONNECT = #{announcementConnect,jdbcType=VARCHAR},
      </if>
      <if test="noticeNature != null">
        NOTICE_NATURE = #{noticeNature,jdbcType=VARCHAR},
      </if>
      <if test="url != null">
        URL = #{url,jdbcType=VARCHAR},
      </if>
      <if test="inBuyKind != null">
        IN_BUY_KIND = #{inBuyKind,jdbcType=BIGINT},
      </if>
      <if test="ckReservePrice != null">
        CK_RESERVE_PRICE = #{ckReservePrice,jdbcType=DECIMAL},
      </if>
      <if test="ckReservePriceUint != null">
        CK_RESERVE_PRICE_UINT = #{ckReservePriceUint,jdbcType=VARCHAR},
      </if>
      <if test="inMineCome != null">
        IN_MINE_COME = #{inMineCome,jdbcType=BIGINT},
      </if>
      <if test="qtPlanYears != null">
        QT_PLAN_YEARS = #{qtPlanYears,jdbcType=DECIMAL},
      </if>
      <if test="qtTotalArea != null">
        QT_TOTAL_AREA = #{qtTotalArea,jdbcType=DECIMAL},
      </if>
      <if test="naGeographyPosition != null">
        NA_GEOGRAPHY_POSITION = #{naGeographyPosition,jdbcType=VARCHAR},
      </if>
      <if test="regionCode != null">
        REGION_CODE = #{regionCode,jdbcType=VARCHAR},
      </if>
      <if test="traPlaceCode != null">
        TRA_PLACE_CODE = #{traPlaceCode,jdbcType=VARCHAR},
      </if>
      <if test="traAgencyName != null">
        TRA_AGENCY_NAME = #{traAgencyName,jdbcType=VARCHAR},
      </if>
      <if test="traAgencyCode != null">
        TRA_AGENCY_CODE = #{traAgencyCode,jdbcType=VARCHAR},
      </if>
      <if test="naAreaCoordinate != null">
        NA_AREA_COORDINATE = #{naAreaCoordinate,jdbcType=VARCHAR},
      </if>
      <if test="platformCode != null">
        PLATFORM_CODE = #{platformCode,jdbcType=VARCHAR},
      </if>
      <if test="pubServicePlatCode != null">
        PUB_SERVICE_PLAT_CODE = #{pubServicePlatCode,jdbcType=VARCHAR},
      </if>
      <if test="dataTimestamp != null">
        DATA_TIMESTAMP = #{dataTimestamp,jdbcType=BIGINT},
      </if>
      <if test="dataSourceCode != null">
        DATA_SOURCE_CODE = #{dataSourceCode,jdbcType=VARCHAR},
      </if>
    </set>
    where SOURCE_DATA_KEY = #{sourceDataKey,jdbcType=VARCHAR}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.trs.project.entity.ZrzyCkqNotice">
    update zrzy_ckq_notice
    set SOURCE_DATA_CODE = #{sourceDataCode,jdbcType=VARCHAR},
      NA_APP_NAME = #{naAppName,jdbcType=VARCHAR},
      NOTICE_SEND_TIME = #{noticeSendTime,jdbcType=BIGINT},
      NOTICE_END_TIME = #{noticeEndTime,jdbcType=BIGINT},
      UNIFIED_DEAL_CODE = #{unifiedDealCode,jdbcType=VARCHAR},
      NOTICE_CODE = #{noticeCode,jdbcType=VARCHAR},
      NOTICE_NAME = #{noticeName,jdbcType=VARCHAR},
      ANNOUNCEMENT_CONNECT = #{announcementConnect,jdbcType=VARCHAR},
      NOTICE_NATURE = #{noticeNature,jdbcType=VARCHAR},
      URL = #{url,jdbcType=VARCHAR},
      IN_BUY_KIND = #{inBuyKind,jdbcType=BIGINT},
      CK_RESERVE_PRICE = #{ckReservePrice,jdbcType=DECIMAL},
      CK_RESERVE_PRICE_UINT = #{ckReservePriceUint,jdbcType=VARCHAR},
      IN_MINE_COME = #{inMineCome,jdbcType=BIGINT},
      QT_PLAN_YEARS = #{qtPlanYears,jdbcType=DECIMAL},
      QT_TOTAL_AREA = #{qtTotalArea,jdbcType=DECIMAL},
      NA_GEOGRAPHY_POSITION = #{naGeographyPosition,jdbcType=VARCHAR},
      REGION_CODE = #{regionCode,jdbcType=VARCHAR},
      TRA_PLACE_CODE = #{traPlaceCode,jdbcType=VARCHAR},
      TRA_AGENCY_NAME = #{traAgencyName,jdbcType=VARCHAR},
      TRA_AGENCY_CODE = #{traAgencyCode,jdbcType=VARCHAR},
      NA_AREA_COORDINATE = #{naAreaCoordinate,jdbcType=VARCHAR},
      PLATFORM_CODE = #{platformCode,jdbcType=VARCHAR},
      PUB_SERVICE_PLAT_CODE = #{pubServicePlatCode,jdbcType=VARCHAR},
      DATA_TIMESTAMP = #{dataTimestamp,jdbcType=BIGINT},
      DATA_SOURCE_CODE = #{dataSourceCode,jdbcType=VARCHAR}
    where SOURCE_DATA_KEY = #{sourceDataKey,jdbcType=VARCHAR}
  </update>
</mapper>