-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
570 additions
and
163 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 6 additions & 26 deletions
32
learn-shop-base/learn-shop-base-mybatis/src/main/resources/template/IService.java.ftl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,21 @@ | ||
<#assign SC = (table.entityName?substring(0,(table.entityName)?length-2)) + "SearchParam"> | ||
<#assign Sc = (table.entityName?substring(0,(table.entityName)?length-2))?uncap_first + "SearchParam"> | ||
<#assign SP = (table.entityName?substring(0,(table.entityName)?length-2)) + "SearchParam"> | ||
<#assign Sp = (table.entityName?substring(0,(table.entityName)?length-2))?uncap_first + "SearchParam"> | ||
|
||
package com.billow.${package.ModuleName}.service; | ||
|
||
import com.baomidou.mybatisplus.core.metadata.IPage; | ||
import com.billow.mybatis.base.HighLevelService; | ||
import com.billow.${package.ModuleName}.pojo.po.${entity}; | ||
import com.baomidou.mybatisplus.extension.service.IService; | ||
import com.billow.${package.ModuleName}.pojo.search.${SC}; | ||
import com.billow.${package.ModuleName}.pojo.search.${SP}; | ||
|
||
/** | ||
* <p> | ||
* ${table.comment!} 服务类 | ||
* </p> | ||
* | ||
* @author ${author} | ||
* @version v1.0 | ||
* @version v2.0 | ||
* @since ${date} | ||
*/ | ||
public interface ${table.serviceName} extends IService<${entity}> { | ||
public interface ${table.serviceName} extends HighLevelService<${entity},${SP}> { | ||
|
||
/** | ||
* 分页查询 | ||
* | ||
* @param ${Sc} 查询条件 | ||
* @return com.baomidou.mybatisplus.core.metadata.IPage<com.billow.${package.ModuleName}.pojo.po.${entity}> | ||
* @author ${author} | ||
* @since ${date} | ||
*/ | ||
IPage<${entity}> findListByPage(${SC} ${Sc}); | ||
|
||
/** | ||
* 根据ID禁用数据 | ||
* | ||
* @param id 主键id | ||
* @return boolean | ||
* @author ${author} | ||
* @since ${date} | ||
*/ | ||
boolean prohibitById(String id); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
learn-shop-base/learn-shop-base-mybatis/src/main/resources/template2/IService.java.ftl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<#assign SC = (table.entityName?substring(0,(table.entityName)?length-2)) + "SearchParam"> | ||
<#assign Sc = (table.entityName?substring(0,(table.entityName)?length-2))?uncap_first + "SearchParam"> | ||
|
||
package com.billow.${package.ModuleName}.service; | ||
|
||
import com.baomidou.mybatisplus.core.metadata.IPage; | ||
import com.billow.${package.ModuleName}.pojo.po.${entity}; | ||
import com.baomidou.mybatisplus.extension.service.IService; | ||
import com.billow.${package.ModuleName}.pojo.search.${SC}; | ||
|
||
/** | ||
* <p> | ||
* ${table.comment!} 服务类 | ||
* </p> | ||
* | ||
* @author ${author} | ||
* @version v1.0 | ||
* @since ${date} | ||
*/ | ||
public interface ${table.serviceName} extends IService<${entity}> { | ||
|
||
/** | ||
* 分页查询 | ||
* | ||
* @param ${Sc} 查询条件 | ||
* @return com.baomidou.mybatisplus.core.metadata.IPage<com.billow.${package.ModuleName}.pojo.po.${entity}> | ||
* @author ${author} | ||
* @since ${date} | ||
*/ | ||
IPage<${entity}> findListByPage(${SC} ${Sc}); | ||
|
||
/** | ||
* 根据ID禁用数据 | ||
* | ||
* @param id 主键id | ||
* @return boolean | ||
* @author ${author} | ||
* @since ${date} | ||
*/ | ||
boolean prohibitById(String id); | ||
} |
Oops, something went wrong.