Parcourir la source

查看ecpm先查激励视频

marxjaw il y a 2 mois
Parent
commit
23e402e6a2

+ 1 - 1
yt-agent/agent-service/src/main/java/com/ytpm/service/impl/YtAppUserServiceImpl.java

@@ -136,7 +136,7 @@ public class YtAppUserServiceImpl implements YtAppUserService {
     public ResultTable<YtUserEcpmListView> ecpmList(String appId,String userId,Integer adsourceType) {
         YtApp ytApp = appMapper.selectPrimary(appId);
         YtPlatformUserApp app = agentAppMapper.selectByPrimaryKey(ytApp.getSuperiorId());
-        Object o = feignInvoker.invoke(app.getServiceName(), "adRecords", userId,adsourceType);
+        Object o = feignInvoker.invoke(app.getServiceName(), "adRecords", userId,1);
         JSONObject object = JSONObject.parseObject(JSON.toJSONString(o));
         List<YtDyzAdRecord> records = JSONArray.parseArray(object.getString("data"), YtDyzAdRecord.class);
         PageMeta pageMeta = JSON.parseObject(object.getString("pageMeta"), PageMeta.class);

+ 0 - 3
yt-answer/answer-service/src/main/resources/mapper/AdRecordMapper.xml

@@ -132,9 +132,6 @@
         <foreach collection="appIds.split(',')" separator="," item="item" open="(" close=")">
             #{item}
         </foreach>
-        <if test="type != null and type ==1">
-            and DATE(finish_time) = DATE(now())
-        </if>
         <if test="firstDay != null">
             and finish_time <![CDATA[>=]]> #{firstDay}
         </if>