1
zj
2024-07-26 ffd6930343008031dd8c663a5503d7e90c0cecf5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package com.nq.controller;
 
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.nq.common.ServerResponse;
import com.nq.dao.RechargeAddressMapper;
import com.nq.pojo.RechargeAddress;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
 
import javax.servlet.http.HttpServletRequest;
 
/**
 * @program: dabaogp
 * @description:
 * @create: 2024-07-26 11:06
 **/
@Controller
@RequestMapping({"/api/rechargeAddress/"})
public class RechargeAddressController {
 
    @Autowired
    private RechargeAddressMapper mapper;
 
    @RequestMapping(value = {"select.do"})
    @ResponseBody
    public ServerResponse select(@RequestParam("currency") String currency) {
        return ServerResponse.createBySuccess(mapper.selectList(new LambdaQueryWrapper<RechargeAddress>().eq(RechargeAddress::getCurrency,currency)));
    }
 
}