All Downloads are FREE. Search and download functionalities are using the official Maven repository.

templates.querybo.ftl Maven / Gradle / Ivy

package ${packageName}.bo.${moduleName}.${bizName};

import com.fasterxml.jackson.annotation.JsonFormat;
import com.lframework.common.constants.StringPool;
import com.lframework.starter.web.bo.BaseBo;
import ${packageName}.dto.${moduleName}.${bizName}.${className}Dto;
<#if importPackages??>
    <#list importPackages as p>
import ${p};
    


import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 

* ${classDescription} QueryBo *

* <#if author??> * @author ${author} */ @Data @EqualsAndHashCode(callSuper = true) public class Query${className}Bo extends BaseBo${r"<"}${className}Dto${r">"} { /** * ${keys[0].description} */ private ${keys[0].type} ${keys[0].name}; <#list columns as column> /** * ${column.description} */ <#if column.type == 'LocalDateTime'> @JsonFormat(pattern = StringPool.DATE_TIME_PATTERN) <#if column.type == 'LocalDate'> @JsonFormat(pattern = StringPool.DATE_PATTERN) <#if column.type == 'LocalTime'> @JsonFormat(pattern = StringPool.TIME_PATTERN) private <#if column.fixEnum>${column.enumCodeType}<#else>${column.type} ${column.name}; public Query${className}Bo() { } public Query${className}Bo(${className}Dto dto) { super(dto); } <#if hasFixEnum> @Override public BaseBo${r"<"}${className}Dto${r">"} convert(${className}Dto dto) { return super.convert(dto<#list columns as column><#if column.fixEnum>, Query${className}Bo::get${column.nameProperty}); } @Override protected void afterInit(${className}Dto dto) { <#list columns as column> <#if column.fixEnum> this.${column.name} = dto.get${column.nameProperty}().getCode(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy