Sfoglia il codice sorgente

ocpx 快手 添加深度

zhaoxian 1 anno fa
parent
commit
06e4547e35

+ 2 - 0
jeecg-boot-module-system/src/main/java/cn/com/ctop/common/module/mapper/KuaiShouOcpxActionTypeConfigMapper.java

@@ -20,4 +20,6 @@ public interface KuaiShouOcpxActionTypeConfigMapper extends BaseMapper<KuaiShouO
     List<JSONObject> bytedanceList(@Param("level") Integer level);
 
     List<JSONObject> getKuaiShouOcpxTypeList();
+
+    List<JSONObject> getKSdeepList();
 }

+ 7 - 3
jeecg-boot-module-system/src/main/java/cn/com/ctop/common/module/mapper/xml/KuaiShouOcpxActionTypeConfigMapper.xml

@@ -13,9 +13,13 @@
     </select>
 
     <select id="getKuaiShouOcpxTypeList" resultType="com.alibaba.fastjson.JSONObject">
-        select
-            ocpx_action_type as 'ocpxActionType',
-            ocpx_action_name as 'ocpxActionName'
+        select ocpx_action_type as 'ocpxActionType', ocpx_action_name as 'ocpxActionName'
         from ctop_kuaishou_ocpx_action_type_config
     </select>
+
+    <select id="getKSdeepList" resultType="com.alibaba.fastjson.JSONObject">
+        select ocpx_action_type as 'deepCode', ocpx_action_name as ' deepName'
+        from ctop_kuaishou_ocpx_action_type_config
+        where `level` = 2
+    </select>
 </mapper>

+ 5 - 0
jeecg-boot-module-system/src/main/java/cn/com/ctop/common/module/service/IKuaiShouOcpxActionTypeConfigService.java

@@ -1,9 +1,12 @@
 package cn.com.ctop.common.module.service;
 
 import cn.com.ctop.common.module.entity.KuaiShouOcpxActionTypeConfig;
+import com.alibaba.fastjson.JSONObject;
 import com.baomidou.mybatisplus.extension.service.IService;
 import org.jeecg.common.api.vo.Result;
 
+import java.util.List;
+
 /**
  * @Description: 转化目标字典表
  * @Author: jeecg-boot
@@ -13,4 +16,6 @@ import org.jeecg.common.api.vo.Result;
 public interface IKuaiShouOcpxActionTypeConfigService extends IService<KuaiShouOcpxActionTypeConfig> {
 
     Result<Object> bytedanceList();
+
+    List<JSONObject> getKSdeepList();
 }

+ 5 - 0
jeecg-boot-module-system/src/main/java/cn/com/ctop/common/module/service/impl/KuaiShouOcpxActionTypeConfigServiceImpl.java

@@ -29,4 +29,9 @@ public class KuaiShouOcpxActionTypeConfigServiceImpl extends ServiceImpl<KuaiSho
         data.put("deepConversionType", deepConversionType);
         return Result.ok(data);
     }
+
+    @Override
+    public List<JSONObject> getKSdeepList() {
+        return baseMapper.getKSdeepList();
+    }
 }

+ 2 - 1
jeecg-boot-module-system/src/main/java/cn/com/ctop/toutiao/modules/material/controller/FirstDeliveryValidController.java

@@ -101,7 +101,8 @@ public class FirstDeliveryValidController {
             userIds.add("1b3deb8258e84df994f1371a51cfc14a");
             text.append("上传首投有效素材失败通知:").append("<br/>")
                     .append("您好,您上传的EXCEL文件录入失败").append("<br/>")
-                    .append("请联系管理员!");
+                    .append("请联系管理员!").append("<br/>")
+                    .append("上传页面:统计报表->头条-有效素材->导入明细");
             for (String userId : userIds) {
                 sendMessageService.sendMessage(userId, text.toString());
             }

+ 15 - 1
jeecg-boot-module-system/src/main/java/org/jeecg/modules/ctop/controller/KuaiShouOcpxActionTypeConfigController.java

@@ -16,7 +16,15 @@ import org.jeecgframework.poi.excel.entity.ExportParams;
 import org.jeecgframework.poi.excel.entity.ImportParams;
 import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
 import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.web.bind.annotation.*;
+import org.springframework.web.bind.annotation.DeleteMapping;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.PutMapping;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestMethod;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.RestController;
 import org.springframework.web.multipart.MultipartFile;
 import org.springframework.web.multipart.MultipartHttpServletRequest;
 import org.springframework.web.servlet.ModelAndView;
@@ -62,12 +70,18 @@ public class KuaiShouOcpxActionTypeConfigController {
                                                                     HttpServletRequest req) {
         Result<List<KuaiShouOcpxActionTypeConfig>> result = new Result<>();
         QueryWrapper<KuaiShouOcpxActionTypeConfig> queryWrapper = QueryGenerator.initQueryWrapper(kuaiShouOcpxActionTypeConfig, req.getParameterMap());
+        queryWrapper.eq("level", 1);
         List<KuaiShouOcpxActionTypeConfig> pageList = kuaiShouOcpxActionTypeConfigService.list(queryWrapper);
         result.setSuccess(true);
         result.setResult(pageList);
         return result;
     }
 
+    @GetMapping(value = "/deepList")
+    public Result<Object> deepList() {
+        return Result.successMsg("success", kuaiShouOcpxActionTypeConfigService.getKSdeepList());
+    }
+
     @ApiOperation(value = "转化目标字典表-分页列表查询", notes = "转化目标字典表-分页列表查询")
     @GetMapping(value = "/bytedanceList")
     public Result<Object> bytedanceList() {