diff --git a/src/main/java/com/mini/mybigscreen/biz/controller/ErpAccountController.java b/src/main/java/com/mini/mybigscreen/biz/controller/ErpAccountController.java index 9b5f824..5740d08 100644 --- a/src/main/java/com/mini/mybigscreen/biz/controller/ErpAccountController.java +++ b/src/main/java/com/mini/mybigscreen/biz/controller/ErpAccountController.java @@ -1,8 +1,15 @@ package com.mini.mybigscreen.biz.controller; +import com.mini.mybigscreen.Model.Result; +import com.mini.mybigscreen.biz.domain.ErpAccount; +import com.mini.mybigscreen.biz.service.ErpAccountService; +import jakarta.annotation.Resource; +import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; +import java.util.List; + /** *
* 账户信息 前端控制器
@@ -15,4 +22,11 @@ import org.springframework.web.bind.annotation.RestController;
@RequestMapping("/biz/erpAccount")
public class ErpAccountController {
+ @Resource
+ private ErpAccountService accountService;
+
+ @GetMapping("list")
+ public Result> getList() {
+ return Result.success(accountService.list());
+ }
}