|
@@ -2,7 +2,9 @@ package ${package.ServiceImpl};
|
|
|
|
|
|
import ${package.Entity}.${entity};
|
|
import ${package.Entity}.${entity};
|
|
import ${package.Mapper}.${table.mapperName};
|
|
import ${package.Mapper}.${table.mapperName};
|
|
|
|
+<% if(table.serviceInterface){ %>
|
|
import ${package.Service}.${table.serviceName};
|
|
import ${package.Service}.${table.serviceName};
|
|
|
|
+<% } %>
|
|
import ${superServiceImplClassPackage};
|
|
import ${superServiceImplClassPackage};
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
@@ -16,11 +18,11 @@ import org.springframework.stereotype.Service;
|
|
*/
|
|
*/
|
|
@Service
|
|
@Service
|
|
<% if(kotlin){ %>
|
|
<% if(kotlin){ %>
|
|
-open class ${table.serviceImplName} : ${superServiceImplClass}<${table.mapperName}, ${entity}>(), ${table.serviceName} {
|
|
|
|
|
|
+open class ${table.serviceImplName} : ${superServiceImplClass}<${table.mapperName}, ${entity}>()<% if(table.serviceInterface){ %>, ${table.serviceName}<% } %> {
|
|
|
|
|
|
}
|
|
}
|
|
<% }else{ %>
|
|
<% }else{ %>
|
|
-public class ${table.serviceImplName} extends ${superServiceImplClass}<${table.mapperName}, ${entity}> implements ${table.serviceName} {
|
|
|
|
|
|
+public class ${table.serviceImplName} extends ${superServiceImplClass}<${table.mapperName}, ${entity}><% if(table.serviceInterface){ %> implements ${table.serviceName}<% } %> {
|
|
|
|
|
|
}
|
|
}
|
|
<% } %>
|
|
<% } %>
|