|
@@ -16,6 +16,7 @@ import org.springframework.stereotype.Component;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
import java.util.ArrayList;
|
|
|
+import java.util.Collections;
|
|
|
import java.util.List;
|
|
|
|
|
|
/**
|
|
@@ -75,6 +76,8 @@ public class CyScheduled {
|
|
|
}
|
|
|
JSONArray jsonArray = jsonObject1.getJSONArray("BizObjectArray");
|
|
|
List<CustomerInfoFeedbackCyDto> list = convertRtData2CIFBList(jsonArray);
|
|
|
+ // 因为氚云的数据是按时间倒序的,所以这里倒序插入
|
|
|
+ Collections.reverse(list);
|
|
|
customerInfoFeedbackService.insertInfoFeedbackList(list);
|
|
|
}
|
|
|
|
|
@@ -97,9 +100,14 @@ public class CyScheduled {
|
|
|
}
|
|
|
JSONArray jsonArray = jsonObject1.getJSONArray("BizObjectArray");
|
|
|
List<CustomerInfoBasicCyDto> list = convertRtData2CIBList(jsonArray);
|
|
|
+ // 因为氚云的数据是按时间倒序的,所以这里倒序插入
|
|
|
+ Collections.reverse(list);
|
|
|
customerInfoBasicService.insertInfoBasicList(list);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 用户跟进表
|
|
|
+ */
|
|
|
public void initCustomerInfoFollow(int fromRowNum, int toRowNum) {
|
|
|
JSONObject jsonObject;
|
|
|
try {
|
|
@@ -116,6 +124,8 @@ public class CyScheduled {
|
|
|
}
|
|
|
JSONArray jsonArray = jsonObject1.getJSONArray("BizObjectArray");
|
|
|
List<CustomerInfoFollowCyDto> list = convertRtData2CIFList(jsonArray);
|
|
|
+ // 因为氚云的数据是按时间倒序的,所以这里倒序插入
|
|
|
+ Collections.reverse(list);
|
|
|
customerInfoFollowService.insertInfoFollowList(list);
|
|
|
}
|
|
|
|