init
This commit is contained in:
parent
beda2d25eb
commit
f08c36a65c
|
@ -83,5 +83,11 @@ public class MfcController extends _BaseController {
|
|||
public Result<Page<Mfc>> page(@ParameterObject MfcVo vo) {
|
||||
return mfcService.getMfcPageList(getPage(), vo);
|
||||
}
|
||||
|
||||
@GetMapping("/list")
|
||||
@Operation(summary = "列表查询")
|
||||
public Result<List<Mfc>> list() {
|
||||
return mfcService.getMfcList();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -12,6 +12,8 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 无人机MFC表(Mfc)表服务实现类
|
||||
*
|
||||
|
@ -93,5 +95,10 @@ public class MfcService extends BaseService<MfcMapper, Mfc> {
|
|||
);
|
||||
return Result.data(paged);
|
||||
}
|
||||
|
||||
public Result<List<Mfc>> getMfcList() {
|
||||
List<Mfc> list = this.list();
|
||||
return Result.data(list);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue