ShyActivityMapper.xml 1.21 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.ShyActivityMapper">
    <resultMap id="BaseResultMap" type="com.cnlive.shenhe.entity.ShyActivity">
        <!--
          WARNING - @mbg.generated
        -->
        <id column="id" jdbcType="INTEGER" property="id"/>
        <result column="activity" jdbcType="VARCHAR" property="activity"/>
        <result column="create_time" jdbcType="TIMESTAMP" property="create_time"/>
        <result column="update_time" jdbcType="TIMESTAMP" property="update_time"/>
        <result column="exempt_from_trial" jdbcType="INTEGER" property="exempt_from_trial"/>
    </resultMap>
    <select id="selectAllByExempt_from_trial" resultType="java.lang.Integer">
        select id from shy_activity where exempt_from_trial=${exempt_from_trial};
    </select>
    <select id="selectById" resultType="com.cnlive.shenhe.entity.ShyActivity">
        select * from shy_activity where id=${id}
    </select>
    <select id="selectBySource" resultType="java.lang.Integer">
        select  exempt_from_trial  from shy_activity where id=${id};
    </select>


</mapper>