...
|
...
|
@@ -65,10 +65,10 @@ |
|
|
<select id="selectByClientType" resultMap="BaseResultMap">
|
|
|
select <include refid="Base_Column_List" />
|
|
|
from union_logs where update_time + 7776000 >= UNIX_TIMESTAMP()
|
|
|
<if test="clientType='ios'">
|
|
|
<if test="clientType=='ios'">
|
|
|
and idfa=#{idfa}
|
|
|
</if>
|
|
|
<if test="clientType='android'">
|
|
|
<if test="clientType=='android'">
|
|
|
and imei=#{imei}
|
|
|
</if>
|
|
|
limit 1
|
...
|
...
|
@@ -76,7 +76,7 @@ |
|
|
<select id="selectUnionList" resultMap="BaseResultMap">
|
|
|
select <include refid="Base_Column_List" />
|
|
|
from union_logs where app_id = #{appId} and client_type=#{clientType} and union_type=#{unionType}
|
|
|
<if test="clientType == 'iphone'">
|
|
|
<if test="clientType == 'ios'">
|
|
|
and idfa=#{idfa}
|
|
|
</if>
|
|
|
<if test="clientType == 'android'">
|
...
|
...
|
|