做用:用於須要拓展另外一個表的一個字段(dto類跟do實體類的互轉)git
jar包:github
<dependency> <groupId>com.github.dozermapper</groupId> <artifactId>dozer-core</artifactId> <version>6.4.0</version> </dependency>
編輯(進入頁面須要顯示數據如:上一步)app
Mapper mapper = DozerBeanMapperBuilder.buildDefault();
bidBidprojectDTO = mapper.map(bidBidprojectDO, BidBidprojectDTO.class);
更新bid_bidprojectui
BidBidprojectDO bidBidprojectDO=new BidBidprojectDO(); Mapper mapper = DozerBeanMapperBuilder.buildDefault(); bidBidprojectDO = mapper.map(bidBidprojectDTO, BidBidprojectDO.class); bidBidprojectService.update(bidBidprojectDO);