|
@@ -11,8 +11,6 @@ import com.ytpm.agent.model.YtPlatformUserApp;
|
|
|
import com.ytpm.agent.param.AdRecordListParam;
|
|
import com.ytpm.agent.param.AdRecordListParam;
|
|
|
import com.ytpm.agent.param.AuditCheckParam;
|
|
import com.ytpm.agent.param.AuditCheckParam;
|
|
|
import com.ytpm.agent.param.AuditUserParam;
|
|
import com.ytpm.agent.param.AuditUserParam;
|
|
|
-import com.ytpm.agent.param.DitchListForIosParam;
|
|
|
|
|
-import com.ytpm.agent.view.AgentDitchView;
|
|
|
|
|
import com.ytpm.agent.view.AgentUserInfo;
|
|
import com.ytpm.agent.view.AgentUserInfo;
|
|
|
import com.ytpm.app.model.YtDyzAdRecord;
|
|
import com.ytpm.app.model.YtDyzAdRecord;
|
|
|
import com.ytpm.app.model.YtDyzLoginRecord;
|
|
import com.ytpm.app.model.YtDyzLoginRecord;
|
|
@@ -76,9 +74,6 @@ public class YtAppUserServiceImpl implements YtAppUserService {
|
|
|
//数据量大已改为appId必传
|
|
//数据量大已改为appId必传
|
|
|
YtApp ytApp = appMapper.selectPrimary(param.getAppIds());
|
|
YtApp ytApp = appMapper.selectPrimary(param.getAppIds());
|
|
|
YtPlatformUserApp app = agentAppMapper.selectByPrimaryKey(ytApp.getSuperiorId());
|
|
YtPlatformUserApp app = agentAppMapper.selectByPrimaryKey(ytApp.getSuperiorId());
|
|
|
-// if (param.getAppType().equals("2")){
|
|
|
|
|
-// param.setDitchId(ytApp.getDitchId());
|
|
|
|
|
-// }
|
|
|
|
|
Object o = feignInvoker.invoke(app.getServiceName(), "queryAll", param);
|
|
Object o = feignInvoker.invoke(app.getServiceName(), "queryAll", param);
|
|
|
String string = JSON.toJSONString(o);
|
|
String string = JSON.toJSONString(o);
|
|
|
JSONObject object = JSON.parseObject(string);
|
|
JSONObject object = JSON.parseObject(string);
|
|
@@ -90,33 +85,6 @@ public class YtAppUserServiceImpl implements YtAppUserService {
|
|
|
return new ResultTable(StatusCode.OK,RepMessage.QUERY_SUCCESS,views,pageMeta);
|
|
return new ResultTable(StatusCode.OK,RepMessage.QUERY_SUCCESS,views,pageMeta);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- /**
|
|
|
|
|
- * 查询App用户列表
|
|
|
|
|
- * @param param 列表入参
|
|
|
|
|
- * @return 分页列表
|
|
|
|
|
- */
|
|
|
|
|
- @Override
|
|
|
|
|
- public ResultTable<YtAppUserListView> selectAppUserForIosList(YtAppUserListParam param, AgentUserInfo userInfo) {
|
|
|
|
|
- Object o = feignInvoker.invoke("lemonios-service", "queryAll", param);
|
|
|
|
|
- String string = JSON.toJSONString(o);
|
|
|
|
|
- JSONObject object = JSON.parseObject(string);
|
|
|
|
|
- List<YtAppUserListView> views = JSONArray.parseArray(object.getString("data"), YtAppUserListView.class);
|
|
|
|
|
- PageMeta pageMeta = JSON.parseObject(object.getString("pageMeta"), PageMeta.class);
|
|
|
|
|
- return new ResultTable(StatusCode.OK,RepMessage.QUERY_SUCCESS,views,pageMeta);
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- @Override
|
|
|
|
|
- public ResultTable<AgentDitchView> selectDitchList(DitchListForIosParam param, AgentUserInfo userInfo) {
|
|
|
|
|
- Object o = feignInvoker.invoke("lemonios-service", "queryDitchList", param);
|
|
|
|
|
- String string = JSON.toJSONString(o);
|
|
|
|
|
- JSONObject object = JSON.parseObject(string);
|
|
|
|
|
- List<AgentDitchView> views = JSONArray.parseArray(object.getString("data"), AgentDitchView.class);
|
|
|
|
|
- System.out.println(views);
|
|
|
|
|
- PageMeta pageMeta = JSON.parseObject(object.getString("pageMeta"), PageMeta.class);
|
|
|
|
|
-
|
|
|
|
|
- return new ResultTable(StatusCode.OK,RepMessage.QUERY_SUCCESS,views,pageMeta);
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
/**
|
|
/**
|
|
|
* 设置用户扩展信息
|
|
* 设置用户扩展信息
|
|
|
*/
|
|
*/
|
|
@@ -184,22 +152,8 @@ public class YtAppUserServiceImpl implements YtAppUserService {
|
|
|
|
|
|
|
|
private ResultTable<YtUserEcpmListView> ecpmListV1(AdRecordListParam param) {
|
|
private ResultTable<YtUserEcpmListView> ecpmListV1(AdRecordListParam param) {
|
|
|
YtApp ytApp = appMapper.selectPrimary(param.getAppId());
|
|
YtApp ytApp = appMapper.selectPrimary(param.getAppId());
|
|
|
- Object o;
|
|
|
|
|
- if (Objects.isNull(param.getAdsourceType())) {
|
|
|
|
|
- param.setAdsourceType("888");
|
|
|
|
|
- }
|
|
|
|
|
- if (ytApp == null) {
|
|
|
|
|
- YtPlatformUserApp app = agentAppMapper.selectByPrimaryKey(param.getAppId());
|
|
|
|
|
- if (app != null) {
|
|
|
|
|
- o = feignInvoker.invoke(app.getServiceName(), "adRecords", param.getUserId(), Integer.parseInt(param.getAdsourceType()));
|
|
|
|
|
- } else {
|
|
|
|
|
- o = feignInvoker.invoke("lemonios-service", "adRecords", param.getUserId(), Integer.parseInt(param.getAdsourceType()));
|
|
|
|
|
- }
|
|
|
|
|
- } else {
|
|
|
|
|
- YtPlatformUserApp app = agentAppMapper.selectByPrimaryKey(ytApp.getSuperiorId());
|
|
|
|
|
- o = feignInvoker.invoke(app.getServiceName(), "adRecords", param.getUserId(), Integer.parseInt(param.getAdsourceType()));
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
|
|
+ YtPlatformUserApp app = agentAppMapper.selectByPrimaryKey(ytApp.getSuperiorId());
|
|
|
|
|
+ Object o = feignInvoker.invoke(app.getServiceName(), "adRecords", param.getUserId(), Integer.parseInt(param.getAdsourceType()));
|
|
|
JSONObject object = JSONObject.parseObject(JSON.toJSONString(o));
|
|
JSONObject object = JSONObject.parseObject(JSON.toJSONString(o));
|
|
|
List<YtDyzAdRecord> records = JSONArray.parseArray(object.getString("data"), YtDyzAdRecord.class);
|
|
List<YtDyzAdRecord> records = JSONArray.parseArray(object.getString("data"), YtDyzAdRecord.class);
|
|
|
PageMeta pageMeta = JSON.parseObject(object.getString("pageMeta"), PageMeta.class);
|
|
PageMeta pageMeta = JSON.parseObject(object.getString("pageMeta"), PageMeta.class);
|