|
@@ -29,6 +29,7 @@ import javax.servlet.http.HttpServletRequest;
|
|
|
|
|
|
import com.microsvc.toolkit.middleware.oss.OssPluginContext;
|
|
|
import com.microsvc.toolkit.middleware.oss.impl.TencentOssPlugin;
|
|
|
+import com.ym.mec.biz.service.*;
|
|
|
import org.apache.commons.collections.CollectionUtils;
|
|
|
import org.apache.commons.io.FileUtils;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
@@ -86,26 +87,6 @@ import com.ym.mec.biz.dal.enums.YesOrNoEnum;
|
|
|
import com.ym.mec.biz.dal.vo.PlatformServePageVo;
|
|
|
import com.ym.mec.biz.dal.vo.SysUserTenantVo;
|
|
|
import com.ym.mec.biz.dal.vo.TenantInfoPageVo;
|
|
|
-import com.ym.mec.biz.service.ContractService;
|
|
|
-import com.ym.mec.biz.service.EmployeeService;
|
|
|
-import com.ym.mec.biz.service.PayService;
|
|
|
-import com.ym.mec.biz.service.PlatformProductService;
|
|
|
-import com.ym.mec.biz.service.PlatformServeDetailService;
|
|
|
-import com.ym.mec.biz.service.PlatformServeService;
|
|
|
-import com.ym.mec.biz.service.StudentService;
|
|
|
-import com.ym.mec.biz.service.SysAreaService;
|
|
|
-import com.ym.mec.biz.service.SysConfigService;
|
|
|
-import com.ym.mec.biz.service.SysMessageService;
|
|
|
-import com.ym.mec.biz.service.SysUserTenantService;
|
|
|
-import com.ym.mec.biz.service.SysUserTsignService;
|
|
|
-import com.ym.mec.biz.service.TenantAssetsInfoService;
|
|
|
-import com.ym.mec.biz.service.TenantConfigService;
|
|
|
-import com.ym.mec.biz.service.TenantContractRecordService;
|
|
|
-import com.ym.mec.biz.service.TenantContractTemplateService;
|
|
|
-import com.ym.mec.biz.service.TenantInfoService;
|
|
|
-import com.ym.mec.biz.service.TenantOrderRecordService;
|
|
|
-import com.ym.mec.biz.service.TenantPreJoinService;
|
|
|
-import com.ym.mec.biz.service.TenantProductInfoService;
|
|
|
import com.ym.mec.common.exception.BizException;
|
|
|
import com.ym.mec.common.page.PageInfo;
|
|
|
import com.ym.mec.common.page.PageUtil;
|
|
@@ -174,6 +155,9 @@ public class TenantInfoServiceImpl extends ServiceImpl<TenantInfoDao, TenantInfo
|
|
|
@Autowired
|
|
|
private OssPluginContext ossPluginContext;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private TenantMemberRankSettingService tenantMemberRankSettingService;
|
|
|
+
|
|
|
@Value("${contract.baseDir:/var/pdf}")
|
|
|
private String contractBaseDir;
|
|
|
//乐小雅协议名称
|
|
@@ -247,6 +231,11 @@ public class TenantInfoServiceImpl extends ServiceImpl<TenantInfoDao, TenantInfo
|
|
|
userTenant.setTenantId(tenantId);
|
|
|
userTenant.setCreatedTime(new Date());
|
|
|
sysUserTenantService.save(userTenant);
|
|
|
+
|
|
|
+ // 设置机构会员配置
|
|
|
+ tenantMemberRankSettingService.update(tenantId,dto.getMemberInfos());
|
|
|
+
|
|
|
+
|
|
|
//释放
|
|
|
bucket.delete();
|
|
|
}
|
|
@@ -313,6 +302,10 @@ public class TenantInfoServiceImpl extends ServiceImpl<TenantInfoDao, TenantInfo
|
|
|
if (Objects.nonNull(dto.getConfig())) {
|
|
|
setIdByApply(tenantInfo.getId(), dto.getConfig(), dto.getConfig()::setTenantId, tenantConfigService::updateConfig);
|
|
|
}
|
|
|
+ if (CollectionUtils.isNotEmpty(dto.getMemberInfos())) {
|
|
|
+ // 设置机构会员配置
|
|
|
+ tenantMemberRankSettingService.update(tenantId,dto.getMemberInfos());
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -348,6 +341,9 @@ public class TenantInfoServiceImpl extends ServiceImpl<TenantInfoDao, TenantInfo
|
|
|
Optional.ofNullable(serveDetail)
|
|
|
.map(PlatformServeDetail::getStudentUpLimit)
|
|
|
.ifPresent(tenantInfoDto::setStudentUpLimit);
|
|
|
+
|
|
|
+ // 学练宝信息
|
|
|
+ tenantInfoDto.setMemberInfos(tenantMemberRankSettingService.query(tenantId));
|
|
|
return tenantInfoDto;
|
|
|
}
|
|
|
|