Explorar o código

渠道号修改

zhaoxian %!s(int64=3) %!d(string=hai) anos
pai
achega
e53e800a7e

+ 5 - 7
jeecg-boot-module-system/src/main/java/cn/com/ctop/kuaishou/modules/channel/mapper/xml/KuaishouChannelMapper.xml

@@ -154,10 +154,10 @@
     </select>
 
     <select id="queryMaxChannelNumber" resultType="cn.com.ctop.kuaishou.modules.channel.entity.KuaishouChannel">
-        SELECT have_cycle_times, max(channel_number) as channel_number
+        SELECT usage_times, max(channel_number) as channel_number
         FROM `ctop_kuaishou_channel`
         where strategy_id = #{strategyId}
-        group by have_cycle_times
+        group by usage_times
     </select>
 
     <select id="queryUsedChannelNumber" resultType="java.lang.Integer">
@@ -196,15 +196,13 @@
         channel_name,
         click_track_url,
         actionbar_click_url,
-        schema_uri,
-        have_cycle_times
+        schema_uri
         FROM `ctop_kuaishou_channel`
         WHERE strategy_id IN
         <foreach collection="strategys" item="item" separator=","
                  open="(" close=")">
             #{item.id}
         </foreach>
-        AND have_cycle_times = #{haveCycleTimes}
         AND state = 1
         and usage_level = #{usageLevel}
         and channel_lock = 1
@@ -213,7 +211,7 @@
 
 
     <select id="queryUsedLevel" resultType="java.lang.Integer">
-        SELECT have_cycle_times
+        SELECT usage_times
         FROM `ctop_kuaishou_channel`
         where strategy_id in
         <foreach collection="strategys" item="item" separator=","
@@ -221,7 +219,7 @@
             #{item.id}
         </foreach>
         AND state = 1
-        group by have_cycle_times
+        group by usage_times
     </select>
 
     <select id="queryItemsListByAccountId" resultType="com.alibaba.fastjson.JSONObject">

+ 1 - 2
jeecg-boot-module-system/src/main/java/cn/com/ctop/kuaishou/modules/channel/service/impl/KuaishouChannelServiceImpl.java

@@ -961,8 +961,7 @@ public class KuaishouChannelServiceImpl extends ServiceImpl<KuaishouChannelMappe
     }
 
     @Override
-    public Result<Object> queryChannel(Long accountId, String level, String appName, String photoName) throws
-            Exception {
+    public Result<Object> queryChannel(Long accountId, String level, String appName, String photoName) throws Exception {
         //查询账户策略
         List<KuaishouChannelCreateStrategy> strategys = channelCreateStrategyService.queryChannelStrategyByAccountId(accountId);
         if (Check.isNull(strategys) || strategys.isEmpty()) {