代码生成器及其结构更改
parent
370b596374
commit
496ce76280
|
@ -17,7 +17,7 @@ import com.ruoyi.common.core.controller.BaseController;
|
|||
import com.ruoyi.common.core.domain.Result;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import ${packageName}.domain.${ClassName};
|
||||
import ${packageName}.service.I${ClassName}Service;
|
||||
import ${packageName}.service.${ClassName}Service;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
#if($table.crud || $table.sub)
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
@ -34,7 +34,7 @@ import com.ruoyi.common.core.page.TableDataInfo;
|
|||
@RequestMapping("/${moduleName}/${businessName}")
|
||||
public class ${ClassName}Controller extends BaseController {
|
||||
@Autowired
|
||||
private I${ClassName}Service ${className}Service;
|
||||
private ${ClassName}Service ${className}Service;
|
||||
|
||||
/**
|
||||
* 查询${functionName}列表
|
||||
|
|
|
@ -2,6 +2,7 @@ package ${packageName}.service;
|
|||
|
||||
import java.util.List;
|
||||
import ${packageName}.domain.${ClassName};
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* ${functionName}Service接口
|
||||
|
@ -9,7 +10,7 @@ import ${packageName}.domain.${ClassName};
|
|||
* @author ${author}
|
||||
* @date ${datetime}
|
||||
*/
|
||||
public interface ${ClassName}Service {
|
||||
public interface ${ClassName}Service extends IService<${ClassName}> {
|
||||
/**
|
||||
* 查询${functionName}
|
||||
*
|
||||
|
|
|
@ -27,7 +27,7 @@ import ${packageName}.service.${ClassName}Service;
|
|||
* @date ${datetime}
|
||||
*/
|
||||
@Service
|
||||
public class ${ClassName}ServiceImpl implements ${ClassName}Service {
|
||||
public class ${ClassName}ServiceImpl extends ServiceImpl<${ClassName}Mapper, ${ClassName}> implements ${ClassName}Service {
|
||||
@Autowired
|
||||
private ${ClassName}Mapper ${className}Mapper;
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ import com.ruoyi.common.core.controller.BaseController;
|
|||
import com.ruoyi.common.core.domain.Result;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.book.domain.BookInfo;
|
||||
import com.ruoyi.book.service.IBookInfoService;
|
||||
import com.ruoyi.book.service.BookInfoService;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
|
@ -25,13 +25,13 @@ import com.ruoyi.common.core.page.TableDataInfo;
|
|||
* 书籍信息Controller
|
||||
*
|
||||
* @author DongZeLiang
|
||||
* @date 2023-10-08
|
||||
* @date 2023-10-09
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/book/info")
|
||||
public class BookInfoController extends BaseController {
|
||||
@Autowired
|
||||
private IBookInfoService bookInfoService;
|
||||
private BookInfoService bookInfoService;
|
||||
|
||||
/**
|
||||
* 查询书籍信息列表
|
||||
|
@ -90,7 +90,7 @@ public class BookInfoController extends BaseController {
|
|||
*/
|
||||
@PreAuthorize("@ss.hasPermi('book:info:remove')")
|
||||
@Log(title = "书籍信息", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
@DeleteMapping("/{ids}")
|
||||
public Result remove(@PathVariable Long[] ids) {
|
||||
return toAjax(bookInfoService.deleteBookInfoByIds(ids));
|
||||
}
|
||||
|
|
|
@ -2,6 +2,7 @@ package com.ruoyi.book.service;
|
|||
|
||||
import java.util.List;
|
||||
import com.ruoyi.book.domain.BookInfo;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* 书籍信息Service接口
|
||||
|
@ -9,7 +10,7 @@ import com.ruoyi.book.domain.BookInfo;
|
|||
* @author DongZeLiang
|
||||
* @date 2023-10-09
|
||||
*/
|
||||
public interface BookInfoService {
|
||||
public interface BookInfoService extends IService<BookInfo> {
|
||||
/**
|
||||
* 查询书籍信息
|
||||
*
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
package com.ruoyi.book.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.ruoyi.common.utils.DateUtils;
|
||||
import com.ruoyi.common.utils.SecurityUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
|
@ -16,7 +18,7 @@ import com.ruoyi.book.service.BookInfoService;
|
|||
* @date 2023-10-09
|
||||
*/
|
||||
@Service
|
||||
public class BookInfoServiceImpl implements BookInfoService {
|
||||
public class BookInfoServiceImpl extends ServiceImpl<BookInfoMapper, BookInfo> implements BookInfoService {
|
||||
@Autowired
|
||||
private BookInfoMapper bookInfoMapper;
|
||||
|
||||
|
|
Loading…
Reference in New Issue