|
@@ -26,6 +26,8 @@ import com.fasterxml.jackson.core.type.TypeReference;
|
|
|
import com.fasterxml.jackson.databind.ObjectMapper;
|
|
import com.fasterxml.jackson.databind.ObjectMapper;
|
|
|
import org.slf4j.Logger;
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
import org.slf4j.LoggerFactory;
|
|
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
+import org.springframework.context.annotation.Lazy;
|
|
|
import org.springframework.dao.DuplicateKeyException;
|
|
import org.springframework.dao.DuplicateKeyException;
|
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
@@ -91,7 +93,9 @@ public class CfBalanceServiceImpl implements CfBalanceService {
|
|
|
private CfEarnRuleService cfEarnRuleService;
|
|
private CfEarnRuleService cfEarnRuleService;
|
|
|
@Resource
|
|
@Resource
|
|
|
private FamilyMemberMapper familyMemberMapper;
|
|
private FamilyMemberMapper familyMemberMapper;
|
|
|
- @Resource
|
|
|
|
|
|
|
+ /** @Lazy 代理打破 MembershipService → … → CfBalanceServiceImpl → MembershipService 启动循环 */
|
|
|
|
|
+ @Lazy
|
|
|
|
|
+ @Autowired
|
|
|
private MembershipService membershipService;
|
|
private MembershipService membershipService;
|
|
|
@Resource
|
|
@Resource
|
|
|
private ConfigService configService;
|
|
private ConfigService configService;
|