|
|
@@ -36,6 +36,9 @@ import com.kxs.user.api.model.KxsLeader;
|
|
|
import com.kxs.user.api.model.KxsUser;
|
|
|
import com.pig4cloud.plugin.excel.vo.ErrorMessage;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
|
+import org.springframework.scheduling.annotation.Async;
|
|
|
+import org.springframework.scheduling.annotation.EnableAsync;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.validation.BindingResult;
|
|
|
|
|
|
@@ -50,6 +53,8 @@ import java.util.*;
|
|
|
*/
|
|
|
@Service("kxsCampService")
|
|
|
@RequiredArgsConstructor
|
|
|
+@EnableAsync
|
|
|
+@Slf4j
|
|
|
public class KxsCampServiceImpl extends ServiceImpl<KxsCampMapper, KxsCamp> implements KxsCampService {
|
|
|
|
|
|
private final RemoteKxsUserService remoteKxsUserService;
|
|
|
@@ -169,6 +174,7 @@ public class KxsCampServiceImpl extends ServiceImpl<KxsCampMapper, KxsCamp> impl
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
+ @Async("getAsyncExecutor")
|
|
|
public void prizePoolIsRefreshed() {
|
|
|
//查询正在进行中的活动
|
|
|
List<KxsCamp> list = baseMapper.selectList(Wrappers.<KxsCamp>lambdaQuery().eq(KxsCamp::getStatus, CampStatusEnum.STATUS_NORMAL.getType()));
|
|
|
@@ -279,6 +285,15 @@ public class KxsCampServiceImpl extends ServiceImpl<KxsCampMapper, KxsCamp> impl
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ /*
|
|
|
+ * 查询活动区间开机数
|
|
|
+ */
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
kxsCamp.setBonusPool(totalBonusPool);
|
|
|
kxsCamp.setOrderNum(orderNum);
|
|
|
baseMapper.updateById(kxsCamp);
|