|
|
@@ -2,6 +2,7 @@ package ${package}.${moduleName}.biz.dao;
|
|
|
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
import org.springframework.stereotype.Repository;
|
|
|
import ${package}.${moduleName}.biz.po.${className}ListPO;
|
|
|
import ${package}.${moduleName}.biz.po.${className}PagePO;
|
|
|
@@ -19,7 +20,7 @@ import java.util.List;
|
|
|
*/
|
|
|
|
|
|
@Repository
|
|
|
-public class ${className}DAO {
|
|
|
+public class ${className}DAO extends ServiceImpl<${className}EntityMapper, ${className}Entity> {
|
|
|
|
|
|
@Resource
|
|
|
private ${className}EntityMapper entityMapper;
|
|
|
@@ -42,7 +43,7 @@ public class ${className}DAO {
|
|
|
return entityMapper.selectPage(new Page<>(param.getPageNum(), param.getSize()), wrapper);
|
|
|
}
|
|
|
|
|
|
- public Long save(${className}Entity entity) {
|
|
|
+ public Long insert(${className}Entity entity) {
|
|
|
entityMapper.insert(entity);
|
|
|
return entity.getId();
|
|
|
}
|