Код: Выделить всё
@Mapper
public interface UndoIssueConvert {
UndoIssueConvert INSTANCE = Mappers.getMapper(UndoIssueConvert.class);
@Mappings({
@Mapping(target = "undoIssueId", source = "id"),
// @Mapping(target = "createTime", expression = ("java(undoIssue.getUpdateTime() != null ? undoIssue.getUpdateTime() : undoIssue.getCreateTime())"))
@Mapping(target = "createTime", qualifiedByName = "convertCreateTime")
})
UndoIssuePanelRspVO.UndoIssue toUndoIssue(UndoIssue undoIssue);
List toUndoIssue(List undoIssue);
@Named("convertCreateTime")
default Date convertCreateTime(UndoIssue undoIssue) {
return undoIssue.getUpdateTime() != null ? undoIssue.getUpdateTime() : undoIssue.getCreateTime();
}
UndoIssue toUndoIssueEntity(UndoIssueAddUpdateVO addVO);
}
Код: Выделить всё
java: Qualifier error. No method found annotated with @Named#value: [ convertCreateTime ]
Подробнее здесь: https://stackoverflow.com/questions/791 ... ake-effect
Мобильная версия