|
@@ -173,7 +173,7 @@ public class TenantInfoServiceImpl extends ServiceImpl<TenantInfoDao, TenantInfo
|
|
|
setIdByApply(tenantId, dto.getConfig(), dto.getConfig()::setTenantId, tenantConfigService::addConfig);
|
|
|
//查询机构入驻表如果公司全称和联系电话相同则把入驻表修改为已入驻
|
|
|
TenantPreJoin preJoin = tenantPreJoinService.getOne(new QueryWrapper<TenantPreJoin>()
|
|
|
- .eq("phone_", dto.getPhone())
|
|
|
+ .eq("tsign_code_", dto.getTsignCode())
|
|
|
.eq("state_", 0));
|
|
|
if (Objects.nonNull(preJoin)) {
|
|
|
preJoin.setState(1);
|
|
@@ -535,7 +535,7 @@ public class TenantInfoServiceImpl extends ServiceImpl<TenantInfoDao, TenantInfo
|
|
|
throw new BizException("读取产品协议出错");
|
|
|
} finally {
|
|
|
//删除文件
|
|
|
- FileUtils.deleteQuietly(srcFile);
|
|
|
+// FileUtils.deleteQuietly(srcFile);
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -544,7 +544,7 @@ public class TenantInfoServiceImpl extends ServiceImpl<TenantInfoDao, TenantInfo
|
|
|
*/
|
|
|
private Map<String, Object> getContractParam(TenantInfoInfoPageVo tenantInfo, Date now) {
|
|
|
//将数据转换为Map
|
|
|
- Map<String, Object> param = toMap(tenantInfo);
|
|
|
+ Map<String, Object> param = WrapperUtil.toMap(tenantInfo);
|
|
|
//当前时间
|
|
|
param.put("nowDate", DateUtils.formatDate(now, "yyyy年MM月dd日"));
|
|
|
//服务过期时间
|
|
@@ -591,13 +591,6 @@ public class TenantInfoServiceImpl extends ServiceImpl<TenantInfoDao, TenantInfo
|
|
|
return param;
|
|
|
}
|
|
|
|
|
|
- private Map toMap(TenantInfoInfoPageVo tenantInfo) {
|
|
|
- return Optional.ofNullable(tenantInfo)
|
|
|
- .map(JSONObject::toJSON)
|
|
|
- .map(o -> JSONObject.toJavaObject((JSONObject) o, Map.class))
|
|
|
- .orElse(null);
|
|
|
- }
|
|
|
-
|
|
|
private static <O, T, S> T opsContractData(O param, Function<O, T> fun, String msg,
|
|
|
BiConsumer<String, Object> putC, String key, Function<T, S> val) {
|
|
|
Optional<T> optional = Optional.ofNullable(fun.apply(param));
|