| | |
| | | import ${packageName}.domain.${ClassName}; |
| | | import ${packageName}.domain.vo.${ClassName}Vo; |
| | | import ${packageName}.domain.bo.${ClassName}Bo; |
| | | import com.ruoyi.common.core.mybatisplus.core.IServicePlus; |
| | | #if($table.crud || $table.sub) |
| | | import com.ruoyi.common.core.page.TableDataInfo; |
| | | import com.ruoyi.common.mybatis.core.page.TableDataInfo; |
| | | import com.ruoyi.common.mybatis.core.page.PageQuery; |
| | | #end |
| | | |
| | | import java.util.Collection; |
| | |
| | | * @author ${author} |
| | | * @date ${datetime} |
| | | */ |
| | | public interface I${ClassName}Service extends IServicePlus<${ClassName}, ${ClassName}Vo> { |
| | | /** |
| | | * 查询单个 |
| | | * @return |
| | | */ |
| | | ${ClassName}Vo queryById(${pkColumn.javaType} ${pkColumn.javaField}); |
| | | public interface I${ClassName}Service { |
| | | |
| | | /** |
| | | * 查询${functionName} |
| | | */ |
| | | ${ClassName}Vo queryById(${pkColumn.javaType} ${pkColumn.javaField}); |
| | | |
| | | #if($table.crud || $table.sub) |
| | | /** |
| | | * 查询列表 |
| | | */ |
| | | TableDataInfo<${ClassName}Vo> queryPageList(${ClassName}Bo bo); |
| | | /** |
| | | * 查询${functionName}列表 |
| | | */ |
| | | TableDataInfo<${ClassName}Vo> queryPageList(${ClassName}Bo bo, PageQuery pageQuery); |
| | | #end |
| | | |
| | | /** |
| | | * 查询列表 |
| | | */ |
| | | List<${ClassName}Vo> queryList(${ClassName}Bo bo); |
| | | /** |
| | | * 查询${functionName}列表 |
| | | */ |
| | | List<${ClassName}Vo> queryList(${ClassName}Bo bo); |
| | | |
| | | /** |
| | | * 根据新增业务对象插入${functionName} |
| | | * @param bo ${functionName}新增业务对象 |
| | | * @return |
| | | */ |
| | | Boolean insertByBo(${ClassName}Bo bo); |
| | | /** |
| | | * 新增${functionName} |
| | | */ |
| | | Boolean insertByBo(${ClassName}Bo bo); |
| | | |
| | | /** |
| | | * 根据编辑业务对象修改${functionName} |
| | | * @param bo ${functionName}编辑业务对象 |
| | | * @return |
| | | */ |
| | | Boolean updateByBo(${ClassName}Bo bo); |
| | | /** |
| | | * 修改${functionName} |
| | | */ |
| | | Boolean updateByBo(${ClassName}Bo bo); |
| | | |
| | | /** |
| | | * 校验并删除数据 |
| | | * @param ids 主键集合 |
| | | * @param isValid 是否校验,true-删除前校验,false-不校验 |
| | | * @return |
| | | */ |
| | | Boolean deleteWithValidByIds(Collection<${pkColumn.javaType}> ids, Boolean isValid); |
| | | /** |
| | | * 校验并批量删除${functionName}信息 |
| | | */ |
| | | Boolean deleteWithValidByIds(Collection<${pkColumn.javaType}> ids, Boolean isValid); |
| | | } |