|
|
@@ -733,42 +733,47 @@ public class StatisticsDataController {
|
|
|
|
|
|
@GetMapping("/codex/bc")
|
|
|
public void codexBc() {
|
|
|
- List<CodexUser> codexUsers = codexUserMapper.selectList(Wrappers.lambdaQuery(CodexUser.class).ne(CodexUser::getPlanName, "体验天卡;").between(CodexUser::getCreatedTime, "2026-05-18", "2026-05-24"));
|
|
|
+ List<CodexUser> codexUsers = codexUserMapper.selectList(Wrappers.lambdaQuery(CodexUser.class).ne(CodexUser::getPlanName, "体验天卡;"));
|
|
|
RenewTimeUpReq renewTimeUpReq = new RenewTimeUpReq();
|
|
|
- String remark = "5.25补偿5.23codex降价";
|
|
|
+ String remark = "6.4补偿缓存读取错误1天";
|
|
|
+ renewTimeUpReq.setRemark(remark);
|
|
|
+ Integer days = 1;
|
|
|
for (CodexUser codexUser : codexUsers) {
|
|
|
//是否今天补偿过
|
|
|
Integer selectCount = incrExpiryTimeRecordMapper.selectCount(Wrappers.lambdaQuery(IncrExpiryTimeRecord.class).eq(IncrExpiryTimeRecord::getRelationId, codexUser.getRelationId()).eq(IncrExpiryTimeRecord::getRemark, remark));
|
|
|
- Long relationId = codexUser.getRelationId();
|
|
|
- GroupsRelation groupsRelation = groupsRelationMapper.selectById(relationId);
|
|
|
+// Long relationId = codexUser.getRelationId();
|
|
|
+// GroupsRelation groupsRelation = groupsRelationMapper.selectById(relationId);
|
|
|
if (selectCount > 0) {
|
|
|
log.info("realtionId:{} 已补偿", codexUser.getRelationId());
|
|
|
continue;
|
|
|
}
|
|
|
- renewTimeUpReq.setRemark(remark);
|
|
|
- Long groupsId = groupsRelation.getGroupsId();
|
|
|
-
|
|
|
- GroupsTrips groupsTrips = groupsMapper.selectById(groupsId);
|
|
|
- Long skuId = groupsTrips.getSkuId();
|
|
|
- Integer days = null;
|
|
|
- if (skuId.intValue() == 757l || skuId.intValue() == 758) {
|
|
|
- days = 5;
|
|
|
- }
|
|
|
- //eli
|
|
|
- if (skuId.intValue() == 759) {
|
|
|
- days = 3;
|
|
|
- }
|
|
|
- //ult
|
|
|
- if (skuId.intValue() == 784) {
|
|
|
- days = 4;
|
|
|
- }
|
|
|
- if (days == null) {
|
|
|
- log.error("user——id:{}不存在", codexUser.getUserId());
|
|
|
- continue;
|
|
|
- }
|
|
|
+// Long groupsId = groupsRelation.getGroupsId();
|
|
|
+//
|
|
|
+// GroupsTrips groupsTrips = groupsMapper.selectById(groupsId);
|
|
|
+// Long skuId = groupsTrips.getSkuId();
|
|
|
+// Integer days = null;
|
|
|
+// if (skuId.intValue() == 757l || skuId.intValue() == 758) {
|
|
|
+// days = 5;
|
|
|
+// }
|
|
|
+// //eli
|
|
|
+// if (skuId.intValue() == 759) {
|
|
|
+// days = 3;
|
|
|
+// }
|
|
|
+// //ult
|
|
|
+// if (skuId.intValue() == 784) {
|
|
|
+// days = 4;
|
|
|
+// }
|
|
|
+// if (days == null) {
|
|
|
+// log.error("user——id:{}不存在", codexUser.getUserId());
|
|
|
+// continue;
|
|
|
+// }
|
|
|
renewTimeUpReq.setDays(days);
|
|
|
renewTimeUpReq.setRelationId(codexUser.getRelationId());
|
|
|
- addRenewTime(renewTimeUpReq);
|
|
|
- }
|
|
|
+ try {
|
|
|
+ addRenewTime(renewTimeUpReq);
|
|
|
+ } catch (Exception e) {
|
|
|
+ log.error(e.getMessage());
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|