|
|
@ -35,6 +35,9 @@ public class ${ClassName}ServiceImpl implements I${ClassName}Service {
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 查询${functionName}
|
|
|
|
* 查询${functionName}
|
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
* @param ${pkColumn.javaField} 主键
|
|
|
|
|
|
|
|
* @return ${functionName}
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public ${ClassName}Vo queryById(${pkColumn.javaType} ${pkColumn.javaField}){
|
|
|
|
public ${ClassName}Vo queryById(${pkColumn.javaType} ${pkColumn.javaField}){
|
|
|
@ -43,7 +46,11 @@ public class ${ClassName}ServiceImpl implements I${ClassName}Service {
|
|
|
|
|
|
|
|
|
|
|
|
#if($table.crud)
|
|
|
|
#if($table.crud)
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 查询${functionName}列表
|
|
|
|
* 分页查询${functionName}列表
|
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
* @param bo 查询条件
|
|
|
|
|
|
|
|
* @param pageQuery 分页参数
|
|
|
|
|
|
|
|
* @return ${functionName}分页列表
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public TableDataInfo<${ClassName}Vo> queryPageList(${ClassName}Bo bo, PageQuery pageQuery) {
|
|
|
|
public TableDataInfo<${ClassName}Vo> queryPageList(${ClassName}Bo bo, PageQuery pageQuery) {
|
|
|
@ -54,7 +61,10 @@ public class ${ClassName}ServiceImpl implements I${ClassName}Service {
|
|
|
|
#end
|
|
|
|
#end
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 查询${functionName}列表
|
|
|
|
* 查询符合条件的${functionName}列表
|
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
* @param bo 查询条件
|
|
|
|
|
|
|
|
* @return ${functionName}列表
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public List<${ClassName}Vo> queryList(${ClassName}Bo bo) {
|
|
|
|
public List<${ClassName}Vo> queryList(${ClassName}Bo bo) {
|
|
|
@ -91,6 +101,9 @@ public class ${ClassName}ServiceImpl implements I${ClassName}Service {
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 新增${functionName}
|
|
|
|
* 新增${functionName}
|
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
* @param bo ${functionName}
|
|
|
|
|
|
|
|
* @return 是否新增成功
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public Boolean insertByBo(${ClassName}Bo bo) {
|
|
|
|
public Boolean insertByBo(${ClassName}Bo bo) {
|
|
|
@ -106,6 +119,9 @@ public class ${ClassName}ServiceImpl implements I${ClassName}Service {
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 修改${functionName}
|
|
|
|
* 修改${functionName}
|
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
* @param bo ${functionName}
|
|
|
|
|
|
|
|
* @return 是否修改成功
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public Boolean updateByBo(${ClassName}Bo bo) {
|
|
|
|
public Boolean updateByBo(${ClassName}Bo bo) {
|
|
|
@ -122,7 +138,11 @@ public class ${ClassName}ServiceImpl implements I${ClassName}Service {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 批量删除${functionName}
|
|
|
|
* 校验并批量删除${functionName}信息
|
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
* @param ids 待删除的主键集合
|
|
|
|
|
|
|
|
* @param isValid 是否进行有效性校验
|
|
|
|
|
|
|
|
* @return 是否删除成功
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public Boolean deleteWithValidByIds(Collection<${pkColumn.javaType}> ids, Boolean isValid) {
|
|
|
|
public Boolean deleteWithValidByIds(Collection<${pkColumn.javaType}> ids, Boolean isValid) {
|
|
|
|