stockIpo代码提交
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
package cn.stock.market.application.assembler;
|
||||
|
||||
import cn.qutaojing.common.utils.Beans;
|
||||
import cn.qutaojing.common.utils.SpringUtils;
|
||||
import cn.stock.market.domain.basic.entity.StockIpo;
|
||||
import cn.stock.market.dto.StockIpoDTO;
|
||||
import org.springframework.context.annotation.Lazy;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
/**
|
||||
* StockIpoAssembler
|
||||
*
|
||||
* @author rplees
|
||||
* @email rplees.i.ly@gmail.com
|
||||
* @created 2023/12/28
|
||||
*/
|
||||
@Component
|
||||
@Lazy
|
||||
public class StockIpoAssembler {
|
||||
public StockIpoDTO toDTO(StockIpo e) {
|
||||
StockIpoDTO dto = Beans.mapper(e, StockIpoDTO.class);
|
||||
if(dto == null) return dto;
|
||||
fill(e, dto);
|
||||
return dto;
|
||||
}
|
||||
|
||||
protected void fill(StockIpo e, StockIpoDTO dto) {
|
||||
if(dto == null) return;
|
||||
return;
|
||||
}
|
||||
|
||||
public static StockIpoAssembler of() {
|
||||
return SpringUtils.getBean(StockIpoAssembler.class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user