|
@@ -1,15 +1,14 @@
|
|
|
package ${package.Service};
|
|
|
|
|
|
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import ${package.Entity}.${entity};
|
|
|
import ${superServiceClassPackage};
|
|
|
|
|
|
/**
|
|
|
- * <p>
|
|
|
* ${table.comment!} 服务类
|
|
|
- * </p>
|
|
|
*
|
|
|
* @author ${author}
|
|
|
- * @since ${date}
|
|
|
+ * @date ${date}
|
|
|
*/
|
|
|
<#if kotlin>
|
|
|
interface ${table.serviceName} : ${superServiceClass}<${entity}>
|
|
@@ -19,6 +18,6 @@ public interface ${table.serviceName} extends ${superServiceClass}<${entity}> {
|
|
|
default ${entity} getOnly(QueryWrapper<${entity}> wrapper){
|
|
|
wrapper.last("limit 1");
|
|
|
return this.getOne(wrapper);
|
|
|
- };
|
|
|
+ }
|
|
|
}
|
|
|
</#if>
|