|
@@ -27,9 +27,7 @@ import org.springframework.stereotype.Component;
|
|
|
import org.springframework.util.CollectionUtils;
|
|
|
|
|
|
import java.io.IOException;
|
|
|
-import java.util.ArrayList;
|
|
|
-import java.util.Date;
|
|
|
-import java.util.List;
|
|
|
+import java.util.*;
|
|
|
|
|
|
import static com.tzld.piaoquan.wecom.common.constant.WeComConstant.GET_HISTORY_DATA_URL;
|
|
|
|
|
@@ -246,8 +244,12 @@ public class WeComHistoryDataJob {
|
|
|
videoIds.add(videoId);
|
|
|
}
|
|
|
JSONArray subMissionList = jsonArray.getJSONObject(i).getJSONArray("sub_mission_list");
|
|
|
+ Set<String> filterStatus = new HashSet<String>() {{
|
|
|
+ add("sended");
|
|
|
+ add("waiting_confirm");
|
|
|
+ }};
|
|
|
for (int k = 0; k < subMissionList.size(); k++) {
|
|
|
- if (!"sended".equals(subMissionList.getJSONObject(k).getString("status"))) {
|
|
|
+ if (!filterStatus.contains(subMissionList.getJSONObject(k).getString("status"))) {
|
|
|
Long messageId = jsonArray.getJSONObject(i).getLong("id");
|
|
|
AlertMessageExample example = new AlertMessageExample();
|
|
|
example.createCriteria().andMessageIdEqualTo(messageId);
|