| | |
| | | TSysAppUser appUser = sysAppUserService.getById(appUserId); |
| | | if (sysPayRecord.getOrderType()==2){ |
| | | LocalDateTime localDateTime = LocalDateTime.now().plusMonths(1L); |
| | | localDateTime = localDateTime.withHour(23).withMinute(59).withSecond(59); |
| | | localDateTime = localDateTime.withHour(23).withMinute(59).withSecond(57); |
| | | appUser.setVipEndTime(localDateTime); |
| | | sysAppUserService.updateById(appUser); |
| | | List<TSysInspection> list = sysInspectionService.lambdaQuery().eq(TSysInspection::getAppUserId, appUserId) |
| | | .list(); |
| | | if (!list.isEmpty()){ |
| | |
| | | } |
| | | sysInspectionService.updateBatchById(list); |
| | | } |
| | | }else { |
| | | // 处理检测报告为可见 |
| | | TSysInspection sysInspection = sysInspectionService.getById(sysPayRecord.getInspectionId()); |
| | | sysInspection.setIsPay(1); |
| | | sysInspectionService.updateById(sysInspection); |
| | | } |
| | | sysPayRecordService.updateById(sysPayRecord); |
| | | |
| | | // 处理检测报告为可见 |
| | | TSysInspection sysInspection = sysInspectionService.getById(sysPayRecord.getInspectionId()); |
| | | sysInspection.setIsPay(1); |
| | | sysInspectionService.updateById(sysInspection); |
| | | |
| | | PrintWriter out = response.getWriter(); |
| | | out.print("SUCCESS"); |