Browse Source

定向包 优化查询相关组sql

zhaoxian 4 years ago
parent
commit
489faa9de1

+ 6 - 6
module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/ai/controller/KuaishouDirectionalPackageController.java

@@ -123,7 +123,7 @@ public class KuaishouDirectionalPackageController {
     public Result<Object> getRelatedAccountGroup(String id, Integer type, Long accountId, @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo, @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize) {
         try {
             if (Check.isNull(id)) {
-                return Result.error("请选择人群包");
+                return Result.error("请选择定向包");
             }
             if (Check.isNull(type)) {
                 return Result.error("请选择查询类型");
@@ -148,7 +148,7 @@ public class KuaishouDirectionalPackageController {
     public Result<Object> editPopulation(@RequestBody JSONObject requestJson) {
         try {
             if (Check.isNull(requestJson.getString("id"))) {
-                return Result.error("请选择人群包");
+                return Result.error("请选择定向包");
             }
             if (Check.isNull(requestJson.getLong("accountId"))) {
                 return Result.error("请选择账户");
@@ -255,7 +255,7 @@ public class KuaishouDirectionalPackageController {
             String id = requestJson.getString("id");
             JSONArray datas = requestJson.getJSONArray("datas");
             if (Check.isNull(id)) {
-                return Result.error("请选择人群包");
+                return Result.error("请选择定向包");
             }
             if (Check.isNull(datas)) {
                 return Result.error("请选择推送账户");
@@ -264,7 +264,7 @@ public class KuaishouDirectionalPackageController {
         } catch (Exception e) {
             log.error("推送定向包异常", e);
         }
-        return Result.error("上传失败");
+        return Result.error("推送失败");
     }
 
     /**
@@ -279,7 +279,7 @@ public class KuaishouDirectionalPackageController {
             String id = requestJson.getString("id");
             JSONArray accountIds = requestJson.getJSONArray("accountIds");
             if (Check.isNull(id)) {
-                return Result.error("请选择人群包");
+                return Result.error("请选择定向包");
             }
             Integer pageNo = requestJson.getInteger("pageNo");
             Integer pageSize = requestJson.getInteger("pageSize");
@@ -404,7 +404,7 @@ public class KuaishouDirectionalPackageController {
     }
 
     /**
-     * 查询待修改的人群
+     * 查询待修改的定向
      *
      * @param id
      * @return

+ 1 - 1
module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/ai/mapper/xml/KuaishouDirectionalPckageRelMapper.xml

@@ -42,7 +42,7 @@
 
     <select id="queryPushResults" resultType="com.alibaba.fastjson.JSONObject">
         SELECT
-        dir_id,
+        dir_id 'id',
         IFNULL(t2.auth_name,'') as 'authName',
         IFNULL(t2.account_id,'') as 'accountId',
         IFNULL(t1.template_id,'') as 'templateId',