AppChannelActiveMapper.xml
2.01 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.yoho.unions.dal.AppChannelActiveMapper" >
<resultMap id="BaseResultMap" type="com.yoho.unions.dal.model.AppChannelActive" >
<id column="ID" property="id" jdbcType="INTEGER" />
<result column="DATE_ID" property="dateId" jdbcType="INTEGER" />
<result column="APP_ACTIVE" property="appActive" jdbcType="INTEGER" />
<result column="app_key" property="appKey" jdbcType="VARCHAR" />
<result column="UNION_TYPE" property="unionType" jdbcType="BIGINT" />
</resultMap>
<sql id="Base_Column_List" >
ID, DATE_ID, APP_ACTIVE, app_key, UNION_TYPE
</sql>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
select
<include refid="Base_Column_List" />
from APP_CHANNEL_ACTIVE
where ID = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
delete from APP_CHANNEL_ACTIVE
where ID = #{id,jdbcType=INTEGER}
</delete>
<select id="selectNatialIdfaCount" resultType="java.lang.String">
select sum(APP_ACTIVE) from APP_CHANNEL_ACTIVE where DATE_ID BETWEEN #{beginTime} and #{endTime} and app_key = "yohobuy_ios"
and UNION_TYPE in('-999','2931','2937','2943','2945','2947','2953','3031','3095','3115','3117','3119','3121','3381','3383','7849','7857','td','7853','7859','2919','3109','7863','7851','7855','7865','0','7867','7835','3191','7861','3491','3129')
</select>
<select id="selectNatialImeiCount" resultType="java.lang.String">
select sum(APP_ACTIVE) from APP_CHANNEL_ACTIVE where DATE_ID BETWEEN #{beginTime} and #{endTime} and app_key = "yohobuy_android"
and UNION_TYPE in('-999','2931','2937','2943','2945','2947','2953','3031','3095','3115','3117','3119','3121','3381','3383','7849','7857','td','7853','7859','2919','3109','7863','7851','7855','7865','0','7867','7835','3191','7861','3491','3129')
</select>
</mapper>