生成数据字典代码.
This commit is contained in:
@@ -14,7 +14,7 @@ import static com.orion.ops.framework.biz.operator.log.core.enums.OperatorRiskLe
|
||||
* @since ${date}
|
||||
*/
|
||||
@Module("${package.ModuleName}:${typeHyphen}")
|
||||
public class ${type}OperatorType {
|
||||
public class ${type}OperatorType extends InitializingOperatorTypes {
|
||||
|
||||
public static final String CREATE = "${typeHyphen}:create";
|
||||
|
||||
|
||||
@@ -106,6 +106,7 @@ public class ${type}ApiImpl implements ${type}Api {
|
||||
return ${typeLower}DAO.of(wrapper).list(${type}ProviderConvert.MAPPER::to);
|
||||
}
|
||||
|
||||
#if($cacheMeta.enableCache)
|
||||
@Override
|
||||
public List<${type}DTO> get${type}ListByCache() {
|
||||
return ${typeLower}Service.get${type}ListByCache()
|
||||
@@ -114,6 +115,7 @@ public class ${type}ApiImpl implements ${type}Api {
|
||||
.collect(Collectors.toList());
|
||||
}
|
||||
|
||||
#end
|
||||
@Override
|
||||
public Long get${type}Count(${type}QueryDTO dto) {
|
||||
log.info("${type}Api.get${type}Count dto: {}", JSON.toJSONString(dto));
|
||||
|
||||
@@ -64,6 +64,7 @@ public interface ${type}Api {
|
||||
*/
|
||||
List<${type}DTO> get${type}List(${type}QueryDTO dto);
|
||||
|
||||
#if($cacheMeta.enableCache)
|
||||
/**
|
||||
* ${apiComment.queryListByCache}
|
||||
*
|
||||
@@ -71,6 +72,7 @@ public interface ${type}Api {
|
||||
*/
|
||||
List<${type}DTO> get${type}ListByCache();
|
||||
|
||||
#end
|
||||
/**
|
||||
* ${apiComment.queryCount}
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user