|
@@ -245,7 +245,7 @@ public class KuaishouPromoterServiceImpl implements IKuaishouPromoterService {
|
|
|
Long startTime = System.currentTimeMillis();
|
|
|
String content = HttpUtil.httpPostRequest(startIpPath + "promoterInfo/getPromoterId", param, null);
|
|
|
JSONObject result = JSONObject.parseObject(content);
|
|
|
- log.info("更新达人信息,用时:{}s,返回结果:{}", (System.currentTimeMillis() - startTime) / 1000, result);
|
|
|
+ log.info("更新达人信息,用时:{}s\n返回结果:{}", (System.currentTimeMillis() - startTime) / 1000, result);
|
|
|
if (Check.isNotNull(result) && Check.isNotNull(result.getString("promoterNickName"))) {
|
|
|
KuaishouPromoter kuaishouPromoter = new KuaishouPromoter(
|
|
|
id,
|
|
@@ -255,9 +255,10 @@ public class KuaishouPromoterServiceImpl implements IKuaishouPromoterService {
|
|
|
result.getString("fanNum"),
|
|
|
result.getString("avgVideoSales"),
|
|
|
result.getString("videoSales"),
|
|
|
- result.getString("totalSale")
|
|
|
+ result.getString("totalSale"),
|
|
|
+ promoterId
|
|
|
);
|
|
|
- kuaishouPromoterMapper.updateKuaishouPromoter(kuaishouPromoter);
|
|
|
+ kuaishouPromoterMapper.updateKuaishouPromoterByPromoterId(kuaishouPromoter);
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|