1、默认隐式映射
@Mapping(target = "actived", constant = "true")
@Mapping(target = "deleted", constant = "false")
InsureCity vmToDomain(InsureCityCreateVM insureCityCreateVM);
示例
2、BeanMapping显示映射
@BeanMapping(ignoreByDefault = true)
示例
3、实现自定义的映射方法
@Mapping(target = "insureRule", target= "insureRuleDto")
@Mapping(target = "actived", constant = "true")
@Mapping(target = "deleted", constant = "false")
InsureCity vmToDomain(InsureCityCreateVM insureCityCreateVM);