|
@@ -160,9 +160,19 @@ public class PartnerLiftingRecordServiceImpl extends ServiceImpl<PartnerLiftingR
|
|
|
return HttpResult.error("审批状态不合法");
|
|
return HttpResult.error("审批状态不合法");
|
|
|
}
|
|
}
|
|
|
boolean success = baseMapper.updateById(liftingRecord) > 0;
|
|
boolean success = baseMapper.updateById(liftingRecord) > 0;
|
|
|
|
|
+ if (success) {
|
|
|
|
|
+ updateAppStatus(liftingRecord);
|
|
|
|
|
+ }
|
|
|
return success ? HttpResult.ok(message) : HttpResult.error("审批失败");
|
|
return success ? HttpResult.ok(message) : HttpResult.error("审批失败");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ public void updateAppStatus(PartnerLiftingRecord liftingRecord){
|
|
|
|
|
+ PartnerUser partnerUser = partnerUserMapper.selectOne(new LambdaQueryWrapper<PartnerUser>().eq(PartnerUser::getUserId, liftingRecord.getUserId())
|
|
|
|
|
+ .eq(PartnerUser::getGrade, liftingRecord.getAfterChange()));
|
|
|
|
|
+ premiumDetailsMapper.updateAppStatus(String.valueOf(partnerUser.getGrade()), liftingRecord.getUserId(), 0,partnerUser.getIdentityTime());
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
public void addUserLevel(PartnerLiftingRecord liftingRecord, BigDecimal auditCommission){
|
|
public void addUserLevel(PartnerLiftingRecord liftingRecord, BigDecimal auditCommission){
|
|
|
Integer value = Integer.valueOf(liftingRecord.getAfterChange());
|
|
Integer value = Integer.valueOf(liftingRecord.getAfterChange());
|
|
|
PartnerUser partnerUser = new PartnerUser();
|
|
PartnerUser partnerUser = new PartnerUser();
|
|
@@ -281,6 +291,9 @@ public class PartnerLiftingRecordServiceImpl extends ServiceImpl<PartnerLiftingR
|
|
|
return HttpResult.error("审批状态不合法");
|
|
return HttpResult.error("审批状态不合法");
|
|
|
}
|
|
}
|
|
|
boolean success = baseMapper.updateById(liftingRecord) > 0;
|
|
boolean success = baseMapper.updateById(liftingRecord) > 0;
|
|
|
|
|
+ if (success) {
|
|
|
|
|
+ updateAppStatus(liftingRecord);
|
|
|
|
|
+ }
|
|
|
return success ? HttpResult.ok(message) : HttpResult.error("审批失败");
|
|
return success ? HttpResult.ok(message) : HttpResult.error("审批失败");
|
|
|
}
|
|
}
|
|
|
|
|
|