|
|
@@ -1,7 +1,6 @@
|
|
|
package com.inspur.customer.service.tenant;
|
|
|
|
|
|
import com.alibaba.cola.dto.Response;
|
|
|
-import com.alibaba.cola.dto.SingleResponse;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
import com.inspur.customer.client.tenant.TenantCommonAttributeService;
|
|
|
@@ -58,9 +57,10 @@ public class TenantCommonAttributeServiceImpl extends ServiceImpl<TenantCommonAt
|
|
|
|
|
|
@Override
|
|
|
@Cacheable(value = "msr:customer:tenantCommonAttribute")
|
|
|
- public Response queryTenantAttribute(TenantAttributeCO attributeCO) {
|
|
|
- TenantCommonAttributeDO tenantAttribute = queryOne(attributeCO.getTenant() ,attributeCO.getAttributeKey());
|
|
|
- return SingleResponse.of(tenantAttribute);
|
|
|
+ public TenantAttributeCO queryTenantAttribute(TenantAttributeCO attributeCO) {
|
|
|
+ TenantAttributeCO co = new TenantAttributeCO();
|
|
|
+ BeanUtils.copyProperties(queryOne(attributeCO.getTenant() ,attributeCO.getAttributeKey()),co);
|
|
|
+ return co;
|
|
|
}
|
|
|
|
|
|
@Override
|