|
@@ -649,6 +649,31 @@ public class KuaishouItemCollectSamplesController extends BaseController {
|
|
|
}
|
|
|
|
|
|
|
|
|
+ @GetMapping("/getMediaId")
|
|
|
+ @ApiOperation(value = "工作台——个人信息")
|
|
|
+ public JSONObject getMediaId(Long userId) {
|
|
|
+ JSONObject returnJson = new JSONObject();
|
|
|
+ try {
|
|
|
+
|
|
|
+ String mediaId = null;
|
|
|
+ String depName = sysUserService.getDepName(userId);
|
|
|
+ if (depName.contains("抖音")) {
|
|
|
+ mediaId = "1";
|
|
|
+ } else {
|
|
|
+ mediaId = "2";
|
|
|
+ }
|
|
|
+ returnJson.put("code", 0);
|
|
|
+ returnJson.put("message", "success");
|
|
|
+ returnJson.put("data", mediaId);
|
|
|
+ } catch (Exception e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ returnJson.put("code", -500);
|
|
|
+ returnJson.put("message", e.getMessage());
|
|
|
+ }
|
|
|
+ return returnJson;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
@GetMapping("/getPersonalInfo")
|
|
|
@ApiOperation(value = "工作台——个人信息")
|
|
|
public JSONObject getPersonalInfo(@ApiParam("创建人ID") @RequestParam(value = "userId", required = true) Long userId,
|
|
@@ -703,7 +728,7 @@ public class KuaishouItemCollectSamplesController extends BaseController {
|
|
|
if (Check.isNull(userId)) {
|
|
|
throw new Exception("请传入人员ID");
|
|
|
}
|
|
|
- return kuaishouItemCollectSamplesService.getDataAnalysis(userId, startDate, endDate, type, mediaId);
|
|
|
+ return kuaishouItemCollectSamplesService.getDataAnalysis(userId, startDate, endDate, type, mediaId);
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
returnJson.put("code", 500);
|