소스 검색

是否延后回传都直接记录,只看是否直接回传.

chenbiao 2 년 전
부모
커밋
96c2e048e0
1개의 변경된 파일15개의 추가작업 그리고 15개의 파일을 삭제
  1. 15 15
      netflix-service/src/main/java/com/cyksj/service/corp/impl/CorpEventActionServiceImpl.java

+ 15 - 15
netflix-service/src/main/java/com/cyksj/service/corp/impl/CorpEventActionServiceImpl.java

@@ -620,22 +620,22 @@ public class CorpEventActionServiceImpl implements CorpEventActionService {
 						postData(callback, corpCustomerAcquisitionLinkPopularize.getAddEvent());
 					}
 				}
-
-				if (corpCustomerAcquisitionLinkPopularize.getDelayedPost()) {
-					CorpCustomerAcquistionCallback corpCustomerAcquistionCallback =
-							corpCustomerAcquistionCallbackMapper.selectOne(Wrappers.lambdaQuery(CorpCustomerAcquistionCallback.class).eq(CorpCustomerAcquistionCallback::getCallback, callback).eq(CorpCustomerAcquistionCallback::getUnionId, unionId));
-					if (corpCustomerAcquistionCallback == null) {
-						corpCustomerAcquistionCallback = new CorpCustomerAcquistionCallback();
-					}
-					corpCustomerAcquistionCallback.setCallback(callback);
-					corpCustomerAcquistionCallback.setEvent(corpCustomerAcquisitionLinkPopularize.getEvent());
-					corpCustomerAcquistionCallback.setUnionId(unionId);
-					if (corpCustomerAcquistionCallback.getId() != null) {
-						corpCustomerAcquistionCallbackMapper.updateById(corpCustomerAcquistionCallback);
-					} else {
-						corpCustomerAcquistionCallbackMapper.insert(corpCustomerAcquistionCallback);
-					}
+				// 是否延后回传都记录,只看是否直接回传.
+				CorpCustomerAcquistionCallback corpCustomerAcquistionCallback =
+						corpCustomerAcquistionCallbackMapper.selectOne(Wrappers.lambdaQuery(CorpCustomerAcquistionCallback.class).eq(CorpCustomerAcquistionCallback::getCallback, callback).eq(CorpCustomerAcquistionCallback::getUnionId, unionId));
+				if (corpCustomerAcquistionCallback == null) {
+					corpCustomerAcquistionCallback = new CorpCustomerAcquistionCallback();
 				}
+				corpCustomerAcquistionCallback.setCallback(callback);
+				corpCustomerAcquistionCallback.setEvent(corpCustomerAcquisitionLinkPopularize.getEvent());
+				corpCustomerAcquistionCallback.setUnionId(unionId);
+				corpCustomerAcquistionCallback.setStatus(!corpCustomerAcquisitionLinkPopularize.getDelayedPost());
+				if (corpCustomerAcquistionCallback.getId() != null) {
+					corpCustomerAcquistionCallbackMapper.updateById(corpCustomerAcquistionCallback);
+				} else {
+					corpCustomerAcquistionCallbackMapper.insert(corpCustomerAcquistionCallback);
+				}
+
 			}
 		}
 		return null;