| | |
| | | public class ${ClassName}ServiceImpl extends ServiceImpl<${ClassName}Mapper, ${ClassName}> implements I${ClassName}Service { |
| | | |
| | | |
| | | |
| | | /** |
| | | * 查询列表 |
| | | */ |
| | | @Override//列表查询 |
| | | public List<${ClassName}Vo> queryList(${ClassName}QueryBo bo) |
| | | { |
| | |
| | | return Convert.toList(${ClassName}Vo.class , list); |
| | | } |
| | | |
| | | /** |
| | | * 查询单个 |
| | | * @return ${ClassName}Vo |
| | | */ |
| | | @Override//id查询 |
| | | public ${ClassName}Vo queryById(${pkColumn.javaType} ${pkColumn.javaField}) |
| | | { |
| | |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 新增 ${functionName} |
| | | * @param bo ${functionName}新增业务对象 |
| | | * @return true成功 false失败 |
| | | */ |
| | | @Override//添加 |
| | | @Transactional |
| | | public Boolean insertByBo(${ClassName}Bo bo) |
| | |
| | | return this.save(add); |
| | | } |
| | | |
| | | @Override//修改 |
| | | /** |
| | | * 修改 ${functionName} |
| | | * @param bo ${functionName}编辑业务对象 |
| | | * @return true成功 false失败 |
| | | */ |
| | | @Override |
| | | @Transactional |
| | | public Boolean updateByBo(${ClassName}Bo bo) |
| | | { |
| | |
| | | return this.updateById(update); |
| | | } |
| | | |
| | | @Override//删除 |
| | | /** |
| | | * 删除 |
| | | * @param ids 主键集合 |
| | | * @return true成功 false失败 |
| | | */ |
| | | @Override |
| | | @Transactional |
| | | public Boolean deleteByIds(Collection<Long> ids) |
| | | { |