|
|
@@ -1,6 +1,9 @@
|
|
|
package me.zhengjie.application.admin.controller;
|
|
|
|
|
|
+import java.util.ArrayList;
|
|
|
+import java.util.HashMap;
|
|
|
import java.util.List;
|
|
|
+import java.util.Map;
|
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
@@ -10,6 +13,7 @@ import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
import me.zhengjie.base.AppBaseResponse;
|
|
|
import me.zhengjie.base.util.FileUploadUtil;
|
|
|
+import me.zhengjie.dao.mybatis.entity.BankEntity;
|
|
|
import me.zhengjie.application.admin.controller.vo.BankCreateReq;
|
|
|
import me.zhengjie.application.admin.controller.vo.BankQueryReq;
|
|
|
import me.zhengjie.application.admin.controller.vo.BankQueryRsp;
|
|
|
@@ -46,6 +50,21 @@ public class BankController {
|
|
|
*
|
|
|
* @return
|
|
|
*/
|
|
|
+ @RequestMapping("/all")
|
|
|
+ public AppBaseResponse<?> all() {
|
|
|
+ Map<Integer, String> map = new HashMap<>();
|
|
|
+ List<BankEntity> banks = bankService.list();
|
|
|
+ for (BankEntity b : banks) {
|
|
|
+ map.put(b.getId(), b.getBankName());
|
|
|
+ }
|
|
|
+ return AppBaseResponse.succ(map);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 银行 查询
|
|
|
+ *
|
|
|
+ * @return
|
|
|
+ */
|
|
|
@RequestMapping("/detail")
|
|
|
public AppBaseResponse<BankQueryRsp> detail(@RequestBody BankQueryReq req) {
|
|
|
AppBaseResponse<BankQueryRsp> response = new AppBaseResponse<>();
|