|
|
@@ -1,9 +1,12 @@
|
|
|
package cn.tr.module.sys.tenant.mapper;
|
|
|
|
|
|
+import cn.tr.module.api.sys.tenant.SysTenantPojo;
|
|
|
import cn.tr.module.sys.tenant.dto.SysTenantAddDTO;
|
|
|
import cn.tr.module.sys.tenant.dto.SysTenantCommonDTO;
|
|
|
import cn.tr.module.sys.tenant.po.SysTenantPO;
|
|
|
import org.mapstruct.Mapper;
|
|
|
+import org.mapstruct.Mapping;
|
|
|
+import org.mapstruct.Mappings;
|
|
|
import org.mapstruct.factory.Mappers;
|
|
|
|
|
|
import java.util.List;
|
|
|
@@ -25,4 +28,11 @@ public interface SysTenantMapper {
|
|
|
SysTenantPO toPO(SysTenantCommonDTO source);
|
|
|
|
|
|
SysTenantPO toPO(SysTenantAddDTO source);
|
|
|
+
|
|
|
+ @Mappings(
|
|
|
+ {
|
|
|
+ @Mapping(target = "tenantId",source = "id")
|
|
|
+ }
|
|
|
+ )
|
|
|
+ List<SysTenantPojo> toPojoList(List<SysTenantPO> source);
|
|
|
}
|