...
|
...
|
@@ -25,6 +25,7 @@ |
|
|
<result column="union_name" property="unionName" jdbcType="VARCHAR"/>
|
|
|
<result column="idfa_count" property="idfaCount" jdbcType="INTEGER"/>
|
|
|
<result column="imei_count" property="imeiCount" jdbcType="INTEGER"/>
|
|
|
<result column="total_count" property="totalCount" jdbcType="INTEGER"/>
|
|
|
</resultMap>
|
|
|
<resultMap id="YHActivateMap" type="com.yoho.service.model.union.response.YHActivateDeviceIdRspBO">
|
|
|
<result column="union_type" property="unionType" jdbcType="VARCHAR"/>
|
...
|
...
|
@@ -148,7 +149,7 @@ |
|
|
</select>
|
|
|
<select id="selectListByParam" resultMap="ActivateMap"
|
|
|
parameterType="com.yoho.service.model.union.request.ActivateDeviceIdReqBO">
|
|
|
select union_type,union_name,count(idfa) as idfa_count,count(imei) as imei_count
|
|
|
select union_type,union_name,count(*) as total_count, count(idfa) as idfa_count,count(imei) as imei_count
|
|
|
from union_logs
|
|
|
where 1=1
|
|
|
<if test="interfaceType != null and interfaceType !='' ">
|
...
|
...
|
@@ -164,7 +165,7 @@ |
|
|
and union_type = #{unionType}
|
|
|
</if>
|
|
|
group by union_type
|
|
|
order by count(idfa) desc,count(imei) desc
|
|
|
order by count(*) desc,count(idfa) desc
|
|
|
</select>
|
|
|
<select id="matchIdfa" resultMap="BaseResultMap">
|
|
|
select
|
...
|
...
|
|