|
@@ -54,6 +54,10 @@ public class TenantInfoServiceImpl extends ServiceImpl<TenantInfoDao, TenantInfo
|
|
|
@Autowired
|
|
|
private PlatformProductService platformProductService;
|
|
|
@Autowired
|
|
|
+ private PlatformServeService platformServeService;
|
|
|
+ @Autowired
|
|
|
+ private PlatformServeDetailService platformServeDetailService;
|
|
|
+ @Autowired
|
|
|
private TenantConfigService tenantConfigService;
|
|
|
@Autowired
|
|
|
private RedissonClient redissonClient;
|
|
@@ -179,6 +183,18 @@ public class TenantInfoServiceImpl extends ServiceImpl<TenantInfoDao, TenantInfo
|
|
|
TenantConfig tenantConfig = tenantConfigService.getOne(new QueryWrapper<TenantConfig>()
|
|
|
.eq("tenant_id_", tenantId));
|
|
|
setTenantInfo(tenantConfig, new TenantConfigDto(), tenantInfoDto::setConfig);
|
|
|
+ //获取服务信息
|
|
|
+ PlatformServe platformServe = platformServeService.getOne(new QueryWrapper<PlatformServe>()
|
|
|
+ .eq("id_", productInfo.getServeId()));
|
|
|
+ Optional.ofNullable(platformServe)
|
|
|
+ .map(PlatformServe::getName)
|
|
|
+ .ifPresent(tenantInfoDto::setPlatformServeName);
|
|
|
+ //获取服务详情
|
|
|
+ PlatformServeDetail serveDetail = platformServeDetailService.getOne(new QueryWrapper<PlatformServeDetail>()
|
|
|
+ .eq("id_", productInfo.getServeDetailId()));
|
|
|
+ Optional.ofNullable(serveDetail)
|
|
|
+ .map(PlatformServeDetail::getStudentUpLimit)
|
|
|
+ .ifPresent(tenantInfoDto::setStudentUpLimit);
|
|
|
return tenantInfoDto;
|
|
|
}
|
|
|
|
|
@@ -380,7 +396,7 @@ public class TenantInfoServiceImpl extends ServiceImpl<TenantInfoDao, TenantInfo
|
|
|
*/
|
|
|
@Override
|
|
|
public Msg orderNotify(Msg msg) {
|
|
|
- log.info("tenant orderNotify >>>>> " +msg.toString());
|
|
|
+ log.info("tenant orderNotify >>>>> " + msg.toString());
|
|
|
msg.setMsg("fail");
|
|
|
Map<String, String> notifyMap = JSON.parseObject(msg.getResponseParameters(), Map.class);
|
|
|
TenantOrderRecord record = new TenantOrderRecord();
|