Authored by linlong

update

@@ -33,6 +33,16 @@ public class UnionClickLogs { @@ -33,6 +33,16 @@ public class UnionClickLogs {
33 33
34 private String interfaceType; 34 private String interfaceType;
35 35
  36 + private String unionName;
  37 +
  38 + public String getUnionName() {
  39 + return unionName;
  40 + }
  41 +
  42 + public void setUnionName(String unionName) {
  43 + this.unionName = unionName;
  44 + }
  45 +
36 public String getInterfaceType() { 46 public String getInterfaceType() {
37 return interfaceType; 47 return interfaceType;
38 } 48 }
1 <?xml version="1.0" encoding="UTF-8" ?> 1 <?xml version="1.0" encoding="UTF-8" ?>
2 <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" > 2 <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
3 -<mapper namespace="com.yoho.unions.dal.IUnionClickLogsDAO" >  
4 - <resultMap id="BaseResultMap" type="com.yoho.unions.dal.model.UnionClickLogs" >  
5 - <id column="id" property="id" jdbcType="INTEGER" />  
6 - <result column="app_id" property="appId" jdbcType="VARCHAR" />  
7 - <result column="idfa" property="idfa" jdbcType="VARCHAR" />  
8 - <result column="imei" property="imei" jdbcType="VARCHAR" />  
9 - <result column="union_type" property="unionType" jdbcType="VARCHAR" />  
10 - <result column="create_time" property="createTime" jdbcType="INTEGER" />  
11 - <result column="client_type" property="clientType" jdbcType="VARCHAR" />  
12 - <result column="td" property="td" jdbcType="VARCHAR" />  
13 - <result column="app_key" property="appKey" jdbcType="VARCHAR" />  
14 - <result column="client_ip" property="clientIp" jdbcType="VARCHAR" />  
15 - <result column="user_agent" property="userAgent" jdbcType="VARCHAR" />  
16 - <result column="interface_type" property="interfaceType" jdbcType="VARCHAR"/>  
17 - </resultMap>  
18 - <resultMap id="ClickMap" type="com.yoho.service.model.union.response.ActivateDeviceIdRspBO">  
19 - <result column="union_type" property="unionType" jdbcType="VARCHAR"/>  
20 - <result column="idfa_click" property="idfaClick" jdbcType="INTEGER"/>  
21 - <result column="imei_click" property="imeiClick" jdbcType="INTEGER"/>  
22 - </resultMap>  
23 - <sql id="Base_Column_List" >  
24 - id, app_id, idfa, imei, union_type, create_time, client_type, td, app_key, client_ip,user_agent,interface_type 3 +<mapper namespace="com.yoho.unions.dal.IUnionClickLogsDAO">
  4 + <resultMap id="BaseResultMap" type="com.yoho.unions.dal.model.UnionClickLogs">
  5 + <id column="id" property="id" jdbcType="INTEGER"/>
  6 + <result column="app_id" property="appId" jdbcType="VARCHAR"/>
  7 + <result column="idfa" property="idfa" jdbcType="VARCHAR"/>
  8 + <result column="imei" property="imei" jdbcType="VARCHAR"/>
  9 + <result column="union_type" property="unionType" jdbcType="VARCHAR"/>
  10 + <result column="create_time" property="createTime" jdbcType="INTEGER"/>
  11 + <result column="client_type" property="clientType" jdbcType="VARCHAR"/>
  12 + <result column="td" property="td" jdbcType="VARCHAR"/>
  13 + <result column="app_key" property="appKey" jdbcType="VARCHAR"/>
  14 + <result column="client_ip" property="clientIp" jdbcType="VARCHAR"/>
  15 + <result column="user_agent" property="userAgent" jdbcType="VARCHAR"/>
  16 + <result column="interface_type" property="interfaceType" jdbcType="VARCHAR"/>
  17 + <result column="union_name" property="unionName" jdbcType="VARCHAR"/>
  18 + </resultMap>
  19 + <resultMap id="ClickMap" type="com.yoho.service.model.union.response.ActivateDeviceIdRspBO">
  20 + <result column="union_type" property="unionType" jdbcType="VARCHAR"/>
  21 + <result column="idfa_click" property="idfaClick" jdbcType="INTEGER"/>
  22 + <result column="imei_click" property="imeiClick" jdbcType="INTEGER"/>
  23 + </resultMap>
  24 + <sql id="Base_Column_List">
  25 + id, app_id, idfa, imei, union_type, create_time, client_type, td, app_key, client_ip,user_agent,interface_type,union_name
25 </sql> 26 </sql>
26 - <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >  
27 - select  
28 - <include refid="Base_Column_List" />  
29 - from union_click_logs  
30 - where id = #{id,jdbcType=INTEGER}  
31 - </select>  
32 - <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" > 27 + <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer">
  28 + select
  29 + <include refid="Base_Column_List"/>
  30 + from union_click_logs
  31 + where id = #{id,jdbcType=INTEGER}
  32 + </select>
  33 + <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
33 delete from union_click_logs 34 delete from union_click_logs
34 where id = #{id,jdbcType=INTEGER} 35 where id = #{id,jdbcType=INTEGER}
35 </delete> 36 </delete>
36 - <insert id="insert" parameterType="com.yoho.unions.dal.model.UnionClickLogs" > 37 + <insert id="insert" parameterType="com.yoho.unions.dal.model.UnionClickLogs">
37 insert into union_click_logs (id, app_id, idfa, 38 insert into union_click_logs (id, app_id, idfa,
38 imei, union_type, create_time, 39 imei, union_type, create_time,
39 client_type, td, app_key, 40 client_type, td, app_key,
40 - client_ip,user_agent,interface_type) 41 + client_ip,user_agent,interface_type,union_name)
41 values (#{id,jdbcType=INTEGER}, #{appId,jdbcType=VARCHAR}, #{idfa,jdbcType=VARCHAR}, 42 values (#{id,jdbcType=INTEGER}, #{appId,jdbcType=VARCHAR}, #{idfa,jdbcType=VARCHAR},
42 #{imei,jdbcType=VARCHAR}, #{unionType,jdbcType=VARCHAR}, #{createTime,jdbcType=INTEGER}, 43 #{imei,jdbcType=VARCHAR}, #{unionType,jdbcType=VARCHAR}, #{createTime,jdbcType=INTEGER},
43 #{clientType,jdbcType=VARCHAR}, #{td,jdbcType=VARCHAR}, #{appKey,jdbcType=VARCHAR}, 44 #{clientType,jdbcType=VARCHAR}, #{td,jdbcType=VARCHAR}, #{appKey,jdbcType=VARCHAR},
44 - #{clientIp,jdbcType=VARCHAR},#{userAgent,jdbcType=VARCHAR}, #{interfaceType,jdbcType=VARCHAR})  
45 - </insert>  
46 - <insert id="insertSelective" parameterType="com.yoho.unions.dal.model.UnionClickLogs" >  
47 - insert into union_click_logs  
48 - <trim prefix="(" suffix=")" suffixOverrides="," >  
49 - <if test="id != null" >  
50 - id,  
51 - </if>  
52 - <if test="appId != null" >  
53 - app_id,  
54 - </if>  
55 - <if test="idfa != null" >  
56 - idfa,  
57 - </if>  
58 - <if test="imei != null" >  
59 - imei,  
60 - </if>  
61 - <if test="unionType != null" >  
62 - union_type,  
63 - </if>  
64 - <if test="createTime != null" >  
65 - create_time,  
66 - </if>  
67 - <if test="clientType != null" >  
68 - client_type,  
69 - </if>  
70 - <if test="td != null" >  
71 - td,  
72 - </if>  
73 - <if test="appKey != null" >  
74 - app_key,  
75 - </if>  
76 - <if test="clientIp != null" >  
77 - client_ip,  
78 - </if>  
79 - <if test="userAgent != null" >  
80 - user_agent,  
81 - </if>  
82 - <if test="interfaceType != null" >  
83 - interface_type,  
84 - </if>  
85 - </trim>  
86 - <trim prefix="values (" suffix=")" suffixOverrides="," >  
87 - <if test="id != null" >  
88 - #{id,jdbcType=INTEGER},  
89 - </if>  
90 - <if test="appId != null" >  
91 - #{appId,jdbcType=VARCHAR},  
92 - </if>  
93 - <if test="idfa != null" >  
94 - #{idfa,jdbcType=VARCHAR},  
95 - </if>  
96 - <if test="imei != null" >  
97 - #{imei,jdbcType=VARCHAR},  
98 - </if>  
99 - <if test="unionType != null" >  
100 - #{unionType,jdbcType=VARCHAR},  
101 - </if>  
102 - <if test="createTime != null" >  
103 - #{createTime,jdbcType=INTEGER},  
104 - </if>  
105 - <if test="clientType != null" >  
106 - #{clientType,jdbcType=VARCHAR},  
107 - </if>  
108 - <if test="td != null" >  
109 - #{td,jdbcType=VARCHAR},  
110 - </if>  
111 - <if test="appKey != null" >  
112 - #{appKey,jdbcType=VARCHAR},  
113 - </if>  
114 - <if test="clientIp != null" >  
115 - #{clientIp,jdbcType=VARCHAR},  
116 - </if>  
117 - <if test="userAgent != null" >  
118 - #{userAgent,jdbcType=VARCHAR},  
119 - </if>  
120 - <if test="interfaceType != null" >  
121 - #{interfaceType,jdbcType=VARCHAR},  
122 - </if>  
123 - </trim> 45 + #{clientIp,jdbcType=VARCHAR},#{userAgent,jdbcType=VARCHAR}, #{interfaceType,jdbcType=VARCHAR},#{unionName,jdbcType=VARCHAR})
124 </insert> 46 </insert>
125 - <select id="selectByIdfa" resultMap="BaseResultMap">  
126 - select <include refid="Base_Column_List" /> from  
127 - union_click_logs where idfa = #{idfa} and create_time &gt; #{beginTime} and create_time &lt;#{endTime} limit 1  
128 - </select> 47 + <insert id="insertSelective" parameterType="com.yoho.unions.dal.model.UnionClickLogs">
  48 + insert into union_click_logs
  49 + <trim prefix="(" suffix=")" suffixOverrides=",">
  50 + <if test="id != null">
  51 + id,
  52 + </if>
  53 + <if test="appId != null">
  54 + app_id,
  55 + </if>
  56 + <if test="idfa != null">
  57 + idfa,
  58 + </if>
  59 + <if test="imei != null">
  60 + imei,
  61 + </if>
  62 + <if test="unionType != null">
  63 + union_type,
  64 + </if>
  65 + <if test="createTime != null">
  66 + create_time,
  67 + </if>
  68 + <if test="clientType != null">
  69 + client_type,
  70 + </if>
  71 + <if test="td != null">
  72 + td,
  73 + </if>
  74 + <if test="appKey != null">
  75 + app_key,
  76 + </if>
  77 + <if test="clientIp != null">
  78 + client_ip,
  79 + </if>
  80 + <if test="userAgent != null">
  81 + user_agent,
  82 + </if>
  83 + <if test="interfaceType != null">
  84 + interface_type,
  85 + </if>
  86 + <if test="unionName != null">
  87 + union_name,
  88 + </if>
  89 + </trim>
  90 + <trim prefix="values (" suffix=")" suffixOverrides=",">
  91 + <if test="id != null">
  92 + #{id,jdbcType=INTEGER},
  93 + </if>
  94 + <if test="appId != null">
  95 + #{appId,jdbcType=VARCHAR},
  96 + </if>
  97 + <if test="idfa != null">
  98 + #{idfa,jdbcType=VARCHAR},
  99 + </if>
  100 + <if test="imei != null">
  101 + #{imei,jdbcType=VARCHAR},
  102 + </if>
  103 + <if test="unionType != null">
  104 + #{unionType,jdbcType=VARCHAR},
  105 + </if>
  106 + <if test="createTime != null">
  107 + #{createTime,jdbcType=INTEGER},
  108 + </if>
  109 + <if test="clientType != null">
  110 + #{clientType,jdbcType=VARCHAR},
  111 + </if>
  112 + <if test="td != null">
  113 + #{td,jdbcType=VARCHAR},
  114 + </if>
  115 + <if test="appKey != null">
  116 + #{appKey,jdbcType=VARCHAR},
  117 + </if>
  118 + <if test="clientIp != null">
  119 + #{clientIp,jdbcType=VARCHAR},
  120 + </if>
  121 + <if test="userAgent != null">
  122 + #{userAgent,jdbcType=VARCHAR},
  123 + </if>
  124 + <if test="interfaceType != null">
  125 + #{interfaceType,jdbcType=VARCHAR},
  126 + </if>
  127 + <if test="unionName != null">
  128 + #{unionName,jdbcType=VARCHAR},
  129 + </if>
  130 + </trim>
  131 + </insert>
  132 + <select id="selectByIdfa" resultMap="BaseResultMap">
  133 + select
  134 + <include refid="Base_Column_List"/>
  135 + from
  136 + union_click_logs where idfa = #{idfa} and create_time &gt; #{beginTime} and create_time &lt;#{endTime} limit 1
  137 + </select>
129 138
130 - <select id="selectByImei" resultMap="BaseResultMap">  
131 - select <include refid="Base_Column_List" /> from  
132 - union_click_logs where imei = #{imei} and create_time &gt; #{beginTime} and create_time &lt;#{endTime} limit 1  
133 - </select> 139 + <select id="selectByImei" resultMap="BaseResultMap">
  140 + select
  141 + <include refid="Base_Column_List"/>
  142 + from
  143 + union_click_logs where imei = #{imei} and create_time &gt; #{beginTime} and create_time &lt;#{endTime} limit 1
  144 + </select>
134 145
135 - <select id="selectByTDandIP" resultMap="BaseResultMap">  
136 - select <include refid="Base_Column_List"/> from  
137 - union_click_logs where td = #{td} and client_ip = #{clientIp} and create_time &gt; #{beginTime} and create_time &lt;#{endTime} limit 1 146 + <select id="selectByTDandIP" resultMap="BaseResultMap">
  147 + select
  148 + <include refid="Base_Column_List"/>
  149 + from
  150 + union_click_logs where td = #{td} and client_ip = #{clientIp} and create_time &gt; #{beginTime} and create_time
  151 + &lt;#{endTime} limit 1
138 152
139 - </select> 153 + </select>
140 154
141 - <update id="updateByPrimaryKey" parameterType="com.yoho.unions.dal.model.UnionClickLogs" > 155 + <update id="updateByPrimaryKey" parameterType="com.yoho.unions.dal.model.UnionClickLogs">
142 update union_click_logs 156 update union_click_logs
143 set app_id = #{appId,jdbcType=VARCHAR}, 157 set app_id = #{appId,jdbcType=VARCHAR},
144 idfa = #{idfa,jdbcType=VARCHAR}, 158 idfa = #{idfa,jdbcType=VARCHAR},
@@ -150,100 +164,104 @@ @@ -150,100 +164,104 @@
150 app_key = #{appKey,jdbcType=VARCHAR}, 164 app_key = #{appKey,jdbcType=VARCHAR},
151 client_ip = #{clientIp,jdbcType=VARCHAR}, 165 client_ip = #{clientIp,jdbcType=VARCHAR},
152 user_agent = #{userAgent,jdbcType=VARCHAR}, 166 user_agent = #{userAgent,jdbcType=VARCHAR},
153 - interface_type = #{interfaceType,jdbcType=VARCHAR} 167 + interface_type = #{interfaceType,jdbcType=VARCHAR},
  168 + union_name = #{unionName,jdbcType=VARCHAR}
154 where id = #{id,jdbcType=INTEGER} 169 where id = #{id,jdbcType=INTEGER}
155 </update> 170 </update>
156 - <select id="selectListByParam" resultMap="ClickMap">  
157 - select union_type,count(idfa) as idfa_click,count(imei) as imei_click  
158 - from union_click_logs  
159 - where union_type in  
160 - <foreach item="item" index="index" collection="list" open="(" separator="," close=")">  
161 - #{item.unionType}  
162 - </foreach>  
163 - <if test="bo.interfaceType != null and bo.interfaceType !='' ">  
164 - and interface_type=#{bo.interfaceType}  
165 - </if>  
166 - <if test="bo.activateTimeStr != null and bo.activateTimeStr>0">  
167 - and create_time>=#{bo.activateTimeStr,jdbcType=INTEGER} and create_time-86400 &lt;=#{bo.activateTimeStr,jdbcType=INTEGER}  
168 - </if>  
169 - group by union_type  
170 - </select>  
171 - <select id="queryActivateIdfaCount" resultType="java.lang.Integer" parameterType="com.yoho.service.model.union.request.ActivateDeviceIdReqBO">  
172 - select count(1)  
173 - from union_click_logs  
174 - where union_type = #{unionType}  
175 - <if test="interfaceType == null or interfaceType =='' ">  
176 - and interface_type in ('addUnion_ios','addUnion4Jump_ios','addMonitor_ios')  
177 - </if>  
178 - <if test="interfaceType != null and interfaceType !='' ">  
179 - and interface_type=#{interfaceType}  
180 - </if>  
181 - <if test="activateTimeStr != null and activateTimeStr>0">  
182 - and create_time>=#{activateTimeStr,jdbcType=INTEGER} and create_time-86400 &lt;=#{activateTimeStr,jdbcType=INTEGER}  
183 - </if>  
184 - group by union_type  
185 - </select>  
186 - <select id="queryActivateImeiCount" resultType="java.lang.Integer" parameterType="com.yoho.service.model.union.request.ActivateDeviceIdReqBO">  
187 - select count(1)  
188 - from union_click_logs  
189 - where union_type = #{unionType}  
190 - <if test="interfaceType == null or interfaceType =='' ">  
191 - and interface_type in ('addUnion_android','addUnion4Jump_android','addMonitor_android')  
192 - </if>  
193 - <if test="interfaceType != null and interfaceType !='' ">  
194 - and interface_type=#{interfaceType}  
195 - </if>  
196 - <if test="activateTimeStr != null and activateTimeStr>0">  
197 - and create_time>=#{activateTimeStr,jdbcType=INTEGER} and create_time-86400 &lt;=#{activateTimeStr,jdbcType=INTEGER}  
198 - </if>  
199 - group by union_type  
200 - </select>  
201 - <select id="queryUnionClickLogsByParam" resultMap="BaseResultMap"  
202 - parameterType="com.yoho.service.model.union.request.UnionLogsReqBO">  
203 - select <include refid="Base_Column_List"/>  
204 - from union_click_logs  
205 - where 1=1  
206 - <if test="interfaceType != null and interfaceType !='' ">  
207 - and interface_type=#{interfaceType}  
208 - </if>  
209 - <if test="createTimeBegin != null and createTimeBegin>0">  
210 - and create_time>=#{createTimeBegin,jdbcType=INTEGER}  
211 - </if>  
212 - <if test="createTimeEnd != null and createTimeEnd>0">  
213 - and create_time &lt;= #{createTimeEnd,jdbcType=INTEGER}  
214 - </if>  
215 - <if test="unionType !=null and unionType !='' ">  
216 - and union_type = #{unionType}  
217 - </if>  
218 - <if test="idfa !=null and idfa !='' ">  
219 - and idfa = #{idfa}  
220 - </if>  
221 - <if test="imei !=null and imei !='' ">  
222 - and imei = #{imei}  
223 - </if>  
224 - ORDER BY create_time DESC limit #{start,jdbcType=INTEGER}, #{size,jdbcType=INTEGER}  
225 - </select>  
226 - <select id="queryUnionClickLogsCountByParam" resultType="java.lang.Integer"  
227 - parameterType="com.yoho.service.model.union.request.UnionLogsReqBO">  
228 - select count(1)  
229 - from union_click_logs where 1=1  
230 - <if test="interfaceType != null and interfaceType !='' ">  
231 - and interface_type=#{interfaceType}  
232 - </if>  
233 - <if test="createTimeBegin != null and createTimeBegin>0">  
234 - and create_time>=#{createTimeBegin,jdbcType=INTEGER}  
235 - </if>  
236 - <if test="createTimeEnd != null and createTimeEnd>0">  
237 - and create_time &lt;= #{createTimeEnd,jdbcType=INTEGER}  
238 - </if>  
239 - <if test="unionType !=null and unionType !='' ">  
240 - and union_type = #{unionType}  
241 - </if>  
242 - <if test="idfa !=null and idfa !='' ">  
243 - and idfa = #{idfa}  
244 - </if>  
245 - <if test="imei !=null and imei !='' ">  
246 - and imei = #{imei}  
247 - </if>  
248 - </select> 171 + <select id="selectListByParam" resultMap="ClickMap">
  172 + select union_type,count(idfa) as idfa_click,count(imei) as imei_click
  173 + from union_click_logs
  174 + where union_type in
  175 + <foreach item="item" index="index" collection="list" open="(" separator="," close=")">
  176 + #{item.unionType}
  177 + </foreach>
  178 + <if test="bo.interfaceType != null and bo.interfaceType !='' ">
  179 + and interface_type=#{bo.interfaceType}
  180 + </if>
  181 + <if test="bo.activateTimeStr != null and bo.activateTimeStr>0">
  182 + and create_time>=#{bo.activateTimeStr,jdbcType=INTEGER} and create_time-86400 &lt;=#{bo.activateTimeStr,jdbcType=INTEGER}
  183 + </if>
  184 + group by union_type
  185 + </select>
  186 + <select id="queryActivateIdfaCount" resultType="java.lang.Integer"
  187 + parameterType="com.yoho.service.model.union.request.ActivateDeviceIdReqBO">
  188 + select count(1)
  189 + from union_click_logs
  190 + where union_type = #{unionType}
  191 + <if test="interfaceType == null or interfaceType =='' ">
  192 + and interface_type in ('addUnion_ios','addUnion4Jump_ios','addMonitor_ios')
  193 + </if>
  194 + <if test="interfaceType != null and interfaceType !='' ">
  195 + and interface_type=#{interfaceType}
  196 + </if>
  197 + <if test="activateTimeStr != null and activateTimeStr>0">
  198 + and create_time>=#{activateTimeStr,jdbcType=INTEGER} and create_time-86400 &lt;=#{activateTimeStr,jdbcType=INTEGER}
  199 + </if>
  200 + group by union_type
  201 + </select>
  202 + <select id="queryActivateImeiCount" resultType="java.lang.Integer"
  203 + parameterType="com.yoho.service.model.union.request.ActivateDeviceIdReqBO">
  204 + select count(1)
  205 + from union_click_logs
  206 + where union_type = #{unionType}
  207 + <if test="interfaceType == null or interfaceType =='' ">
  208 + and interface_type in ('addUnion_android','addUnion4Jump_android','addMonitor_android')
  209 + </if>
  210 + <if test="interfaceType != null and interfaceType !='' ">
  211 + and interface_type=#{interfaceType}
  212 + </if>
  213 + <if test="activateTimeStr != null and activateTimeStr>0">
  214 + and create_time>=#{activateTimeStr,jdbcType=INTEGER} and create_time-86400 &lt;=#{activateTimeStr,jdbcType=INTEGER}
  215 + </if>
  216 + group by union_type
  217 + </select>
  218 + <select id="queryUnionClickLogsByParam" resultMap="BaseResultMap"
  219 + parameterType="com.yoho.service.model.union.request.UnionLogsReqBO">
  220 + select
  221 + <include refid="Base_Column_List"/>
  222 + from union_click_logs
  223 + where 1=1
  224 + <if test="interfaceType != null and interfaceType !='' ">
  225 + and interface_type=#{interfaceType}
  226 + </if>
  227 + <if test="createTimeBegin != null and createTimeBegin>0">
  228 + and create_time>=#{createTimeBegin,jdbcType=INTEGER}
  229 + </if>
  230 + <if test="createTimeEnd != null and createTimeEnd>0">
  231 + and create_time &lt;= #{createTimeEnd,jdbcType=INTEGER}
  232 + </if>
  233 + <if test="unionType !=null and unionType !='' ">
  234 + and union_type = #{unionType}
  235 + </if>
  236 + <if test="idfa !=null and idfa !='' ">
  237 + and idfa = #{idfa}
  238 + </if>
  239 + <if test="imei !=null and imei !='' ">
  240 + and imei = #{imei}
  241 + </if>
  242 + ORDER BY create_time DESC limit #{start,jdbcType=INTEGER}, #{size,jdbcType=INTEGER}
  243 + </select>
  244 + <select id="queryUnionClickLogsCountByParam" resultType="java.lang.Integer"
  245 + parameterType="com.yoho.service.model.union.request.UnionLogsReqBO">
  246 + select count(1)
  247 + from union_click_logs where 1=1
  248 + <if test="interfaceType != null and interfaceType !='' ">
  249 + and interface_type=#{interfaceType}
  250 + </if>
  251 + <if test="createTimeBegin != null and createTimeBegin>0">
  252 + and create_time>=#{createTimeBegin,jdbcType=INTEGER}
  253 + </if>
  254 + <if test="createTimeEnd != null and createTimeEnd>0">
  255 + and create_time &lt;= #{createTimeEnd,jdbcType=INTEGER}
  256 + </if>
  257 + <if test="unionType !=null and unionType !='' ">
  258 + and union_type = #{unionType}
  259 + </if>
  260 + <if test="idfa !=null and idfa !='' ">
  261 + and idfa = #{idfa}
  262 + </if>
  263 + <if test="imei !=null and imei !='' ">
  264 + and imei = #{imei}
  265 + </if>
  266 + </select>
249 </mapper> 267 </mapper>