2024-04-22 08:45:46 +08:00
|
|
|
package ${packageName}.service.impl;
|
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
|
import ${packageName}.mapper.${ClassName}Mapper;
|
|
|
|
import ${packageName}.domain.${ClassName};
|
|
|
|
import ${packageName}.service.I${ClassName}Service;
|
|
|
|
import org.springframework.stereotype.Service;
|
2024-04-23 10:23:51 +08:00
|
|
|
import java.util.List;
|
2024-04-23 09:01:15 +08:00
|
|
|
import javax.annotation.Resource;
|
|
|
|
|
2024-04-22 08:45:46 +08:00
|
|
|
/**
|
|
|
|
* ${functionName}Service业务层处理
|
|
|
|
*
|
|
|
|
* @author ${author}
|
|
|
|
* @date ${datetime}
|
|
|
|
*/
|
|
|
|
@Service
|
|
|
|
public class ${ClassName}ServiceImpl extends ServiceImpl<${ClassName}Mapper, ${ClassName}> implements I${ClassName}Service {
|
|
|
|
|
2024-04-23 09:01:15 +08:00
|
|
|
@Resource
|
|
|
|
private ${ClassName}Mapper ${className}Mapper;
|
|
|
|
|
|
|
|
/**
|
2024-04-23 10:23:51 +08:00
|
|
|
* 查询${functionName}分页列表
|
2024-04-23 09:01:15 +08:00
|
|
|
*
|
2024-04-23 10:23:51 +08:00
|
|
|
* @param ${className} ${functionName}
|
2024-04-23 09:01:15 +08:00
|
|
|
* @return ${functionName}
|
|
|
|
*/
|
|
|
|
@Override
|
2024-04-23 10:23:51 +08:00
|
|
|
public List<${ClassName}> select${ClassName}List(${ClassName} ${className})
|
2024-04-23 09:01:15 +08:00
|
|
|
{
|
2024-04-23 10:23:51 +08:00
|
|
|
return ${className}Mapper.select${ClassName}List(${className});
|
2024-04-23 09:01:15 +08:00
|
|
|
}
|
2024-04-22 08:45:46 +08:00
|
|
|
}
|