Sfoglia il codice sorgente

更新达人信息

zhaoxian 2 anni fa
parent
commit
3271bcacaa

+ 2 - 0
ruixuan-live/src/main/java/com/ruixuan/isc/service/impl/KuaishouPromoterServiceImpl.java

@@ -261,6 +261,8 @@ public class KuaishouPromoterServiceImpl implements IKuaishouPromoterService {
                         promoterId
                 );
                 kuaishouPromoterMapper.updateKuaishouPromoterByPromoterId(kuaishouPromoter);
+            } else {
+                log.error("更新达人失败,达人ID:{}         【返回结果】:{}", promoterId, result);
             }
         } catch (Exception e) {
             e.printStackTrace();

+ 2 - 1
ruixuan-live/src/main/resources/mapper/isc/KuaishouPromoterMapper.xml

@@ -150,7 +150,8 @@
 
     <select id="getFailInfo" resultMap="KuaishouPromoterResult">
         <include refid="selectKuaishouPromoterVo"/>
-        where promoter_nick_name = '' or promoter_nick_name is null
+        where (promoter_nick_name = '' or promoter_nick_name is null)
+        AND state =1
     </select>
 
     <select id="getBoundPromoterRoleKey" resultType="com.alibaba.fastjson.JSONObject">