mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-07-14 11:05:06 +08:00
1. 调整代码生成器模板的目录
2. 调整代码的方法
This commit is contained in:
32
src/main/resources/codegen/java/convert/convert.vm
Normal file
32
src/main/resources/codegen/java/convert/convert.vm
Normal file
@ -0,0 +1,32 @@
|
||||
package ${basePackage}.${table.moduleName}.convert.${table.businessName};
|
||||
|
||||
import java.util.*;
|
||||
|
||||
import ${PageResultClassName};
|
||||
|
||||
import org.mapstruct.Mapper;
|
||||
import org.mapstruct.factory.Mappers;
|
||||
import ${basePackage}.${table.moduleName}.controller.${table.businessName}.vo.*;
|
||||
import ${basePackage}.${table.moduleName}.dal.dataobject.${table.businessName}.${table.className}DO;
|
||||
|
||||
/**
|
||||
* ${table.classComment} Convert
|
||||
*
|
||||
* @author ${table.author}
|
||||
*/
|
||||
@Mapper
|
||||
public interface ${table.className}Convert {
|
||||
|
||||
${table.className}Convert INSTANCE = Mappers.getMapper(${table.className}Convert.class);
|
||||
|
||||
${table.className}DO convert(${table.className}CreateReqVO bean);
|
||||
|
||||
${table.className}DO convert(${table.className}UpdateReqVO bean);
|
||||
|
||||
${table.className}RespVO convert(${table.className}DO bean);
|
||||
|
||||
List<${table.className}RespVO> convertList(List<${table.className}DO> list);
|
||||
|
||||
PageResult<${table.className}RespVO> convertPage(PageResult<${table.className}DO> page);
|
||||
|
||||
}
|
Reference in New Issue
Block a user