|
@@ -12,11 +12,13 @@ import com.ytpm.advertise.param.RelativeChannelParam;
|
|
|
import com.ytpm.advertise.view.AddAppResponse;
|
|
import com.ytpm.advertise.view.AddAppResponse;
|
|
|
import com.ytpm.advertise.view.ComprehensiveAppReport;
|
|
import com.ytpm.advertise.view.ComprehensiveAppReport;
|
|
|
import com.ytpm.agent.model.YtApp;
|
|
import com.ytpm.agent.model.YtApp;
|
|
|
|
|
+import com.ytpm.agent.model.YtAppChannelRelative;
|
|
|
import com.ytpm.agent.param.AppListParam;
|
|
import com.ytpm.agent.param.AppListParam;
|
|
|
import com.ytpm.agent.param.AppParam;
|
|
import com.ytpm.agent.param.AppParam;
|
|
|
import com.ytpm.agent.view.AgentAppView;
|
|
import com.ytpm.agent.view.AgentAppView;
|
|
|
import com.ytpm.agent.view.AgentEnableAppView;
|
|
import com.ytpm.agent.view.AgentEnableAppView;
|
|
|
import com.ytpm.dao.AgentAppMapper;
|
|
import com.ytpm.dao.AgentAppMapper;
|
|
|
|
|
+import com.ytpm.dao.AppChannelRelativeMapper;
|
|
|
import com.ytpm.dao.AppMapper;
|
|
import com.ytpm.dao.AppMapper;
|
|
|
import com.ytpm.feign.AdvertiseFeign;
|
|
import com.ytpm.feign.AdvertiseFeign;
|
|
|
import com.ytpm.general.RepMessage;
|
|
import com.ytpm.general.RepMessage;
|
|
@@ -29,11 +31,7 @@ import org.springframework.stereotype.Service;
|
|
|
import javax.annotation.Resource;
|
|
import javax.annotation.Resource;
|
|
|
import java.time.LocalDate;
|
|
import java.time.LocalDate;
|
|
|
import java.time.format.DateTimeFormatter;
|
|
import java.time.format.DateTimeFormatter;
|
|
|
-import java.util.ArrayList;
|
|
|
|
|
-import java.util.HashMap;
|
|
|
|
|
-import java.util.List;
|
|
|
|
|
-import java.util.Map;
|
|
|
|
|
-import java.util.Objects;
|
|
|
|
|
|
|
+import java.util.*;
|
|
|
import java.util.stream.Collectors;
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
|
|
|
|
|
|
@@ -48,6 +46,9 @@ public class AgentAppServiceImpl implements AgentAppService {
|
|
|
@Resource
|
|
@Resource
|
|
|
private AppMapper appMapper;
|
|
private AppMapper appMapper;
|
|
|
|
|
|
|
|
|
|
+ @Resource
|
|
|
|
|
+ private AppChannelRelativeMapper appChannelRelativeMapper;
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 查询渠道启用的应用列表
|
|
* 查询渠道启用的应用列表
|
|
|
*/
|
|
*/
|
|
@@ -171,12 +172,13 @@ public class AgentAppServiceImpl implements AgentAppService {
|
|
|
Result.resultErr(RepMessage.OBJECT_NOT_EXIST);
|
|
Result.resultErr(RepMessage.OBJECT_NOT_EXIST);
|
|
|
}
|
|
}
|
|
|
advertiseFeign.relativePlatform(param);
|
|
advertiseFeign.relativePlatform(param);
|
|
|
- YtApp app = new YtApp();
|
|
|
|
|
- app.setAppId(param.getAppId());
|
|
|
|
|
- app.setChannelId(param.getChannelId());
|
|
|
|
|
- app.setChannelName(param.getChannelName());
|
|
|
|
|
- app.setNetworkAppId(param.getNetworkAppId());
|
|
|
|
|
- appMapper.updateOne(app);
|
|
|
|
|
|
|
+ YtAppChannelRelative ytAppChannelRelative = new YtAppChannelRelative();
|
|
|
|
|
+ ytAppChannelRelative.setRelativeId(UUID.randomUUID().toString().replace("-",""));
|
|
|
|
|
+ ytAppChannelRelative.setAppId(param.getAppId());
|
|
|
|
|
+ ytAppChannelRelative.setChannelId(param.getChannelId());
|
|
|
|
|
+ ytAppChannelRelative.setChannelName(param.getChannelName());
|
|
|
|
|
+ ytAppChannelRelative.setNetworkAppId(param.getNetworkAppId());
|
|
|
|
|
+ appChannelRelativeMapper.insert(ytAppChannelRelative);
|
|
|
return Result.resultOk(RepMessage.RELATIVE_SUCCESS);
|
|
return Result.resultOk(RepMessage.RELATIVE_SUCCESS);
|
|
|
}
|
|
}
|
|
|
|
|
|