Commit 014e2113 by ThomasAdv

修复映射报错

1 parent bdcb861a
...@@ -13,14 +13,15 @@ public interface CustomerSopJourneyBOConvert { ...@@ -13,14 +13,15 @@ public interface CustomerSopJourneyBOConvert {
CustomerSopJourneyBOConvert INSTANCE = Mappers.getMapper(CustomerSopJourneyBOConvert.class); CustomerSopJourneyBOConvert INSTANCE = Mappers.getMapper(CustomerSopJourneyBOConvert.class);
@Mappings({ @Mappings({
@Mapping(source = "customer.*",target = "."), @Mapping(source = "customer",target = "."),
@Mapping(source = "customer.exJson",target = "customerExtra"), @Mapping(source = "customer.exJson",target = "customerExtra"),
}) })
CustomerSopJourneyDTO toCustomerSopJourneyDTO(CustomerSopJourneyBO sourceEntity); CustomerSopJourneyDTO toCustomerSopJourneyDTO(CustomerSopJourneyBO sourceEntity);
@Mappings({ @Mappings({
@Mapping(source = "customer.*",target = "."), @Mapping(source = "customer",target = "."),
@Mapping(source = "customer.exJson",target = "customerExtra"), @Mapping(source = "customer.exJson",target = "customerExtra"),
@Mapping(source = "carMaintenanceInsurances",target = "carMaintenanceInsurances"),
}) })
CustomerSopJourneyDetailDTO toCustomerSopJourneyDetailDTO(CustomerSopJourneyBO sourceEntity); CustomerSopJourneyDetailDTO toCustomerSopJourneyDetailDTO(CustomerSopJourneyBO sourceEntity);
} }
...@@ -12,7 +12,6 @@ public interface OneIdMappingDTOConvert { ...@@ -12,7 +12,6 @@ public interface OneIdMappingDTOConvert {
OneIdMappingDTOConvert INSTANCE = Mappers.getMapper(OneIdMappingDTOConvert.class); OneIdMappingDTOConvert INSTANCE = Mappers.getMapper(OneIdMappingDTOConvert.class);
@Mappings({ @Mappings({
@Mapping(source = "oneIdFieldConfigDTO.*", target = "."),
@Mapping(source = "oneId", target = "oneId"), @Mapping(source = "oneId", target = "oneId"),
@Mapping(source = "updatedBy", target = "updatedBy"), @Mapping(source = "updatedBy", target = "updatedBy"),
@Mapping(source = "updatedBy", target = "createdBy") @Mapping(source = "updatedBy", target = "createdBy")
......
...@@ -24,10 +24,10 @@ public interface UserConverter { ...@@ -24,10 +24,10 @@ public interface UserConverter {
User dto2do(UserDTO userDTO); User dto2do(UserDTO userDTO);
@Mappings(@Mapping(source = "realname", target = "realName")) @Mappings({@Mapping(source = "realname", target = "realName")})
UserBO do2bo(User user); UserBO do2bo(User user);
@Mappings(@Mapping(source = "realName", target = "realname")) @Mappings({@Mapping(source = "realName", target = "realname")})
User bo2do(UserBO userBO); User bo2do(UserBO userBO);
} }
...@@ -3,7 +3,7 @@ package cn.com.glsx.cdp.modules.mapper; ...@@ -3,7 +3,7 @@ package cn.com.glsx.cdp.modules.mapper;
import cn.com.glsx.cdp.modules.entity.CustomerSopJourney; import cn.com.glsx.cdp.modules.entity.CustomerSopJourney;
import cn.com.glsx.cdp.modules.model.CustomerSopJourneyBO; import cn.com.glsx.cdp.modules.model.CustomerSopJourneyBO;
import com.glsx.plat.mybatis.mapper.CommonBaseMapper; import com.glsx.plat.mybatis.mapper.CommonBaseMapper;
import org.mapstruct.Mapper; import org.apache.ibatis.annotations.Mapper;
import java.util.List; import java.util.List;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!