|
@@ -173,14 +173,18 @@ public class KuaishouItemCollectSamplesServiceImpl implements IKuaishouItemColle
|
|
for (int i = 0; i < itemIds.size(); i++) {
|
|
for (int i = 0; i < itemIds.size(); i++) {
|
|
Long itemId = itemIds.getLong(i);
|
|
Long itemId = itemIds.getLong(i);
|
|
JSONObject itemJson = itemMap.get(itemId);
|
|
JSONObject itemJson = itemMap.get(itemId);
|
|
|
|
+
|
|
for (int j = 0; j < ids.size(); j++) {
|
|
for (int j = 0; j < ids.size(); j++) {
|
|
Long id = ids.getLong(j);
|
|
Long id = ids.getLong(j);
|
|
JSONObject promoterJson = promoterMap.get(id);
|
|
JSONObject promoterJson = promoterMap.get(id);
|
|
if (Check.isNull(promoterJson)) {
|
|
if (Check.isNull(promoterJson)) {
|
|
continue;
|
|
continue;
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ Long relateId = itemJson.getLong("relateId");
|
|
Long promoterId = promoterJson.getLong("promoterId");
|
|
Long promoterId = promoterJson.getLong("promoterId");
|
|
- Integer count = kuaishouItemCollectSamplesMapper.check(itemId, promoterId);
|
|
|
|
|
|
+ // Integer count = kuaishouItemCollectSamplesMapper.check(itemId, promoterId);
|
|
|
|
+ Integer count = kuaishouItemCollectSamplesMapper.checkByRelateIdAndPromoterId(relateId, promoterId);
|
|
if (count > 0) {
|
|
if (count > 0) {
|
|
sampleReceivedCount++;
|
|
sampleReceivedCount++;
|
|
continue;
|
|
continue;
|