This commit is contained in:
lijiaqi 2024-09-06 10:11:35 +08:00
parent beda2d25eb
commit f08c36a65c
2 changed files with 13 additions and 0 deletions

View File

@ -83,5 +83,11 @@ public class MfcController extends _BaseController {
public Result<Page<Mfc>> page(@ParameterObject MfcVo vo) { public Result<Page<Mfc>> page(@ParameterObject MfcVo vo) {
return mfcService.getMfcPageList(getPage(), vo); return mfcService.getMfcPageList(getPage(), vo);
} }
@GetMapping("/list")
@Operation(summary = "列表查询")
public Result<List<Mfc>> list() {
return mfcService.getMfcList();
}
} }

View File

@ -12,6 +12,8 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import java.util.List;
/** /**
* 无人机MFC表(Mfc)表服务实现类 * 无人机MFC表(Mfc)表服务实现类
* *
@ -93,5 +95,10 @@ public class MfcService extends BaseService<MfcMapper, Mfc> {
); );
return Result.data(paged); return Result.data(paged);
} }
public Result<List<Mfc>> getMfcList() {
List<Mfc> list = this.list();
return Result.data(list);
}
} }