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().eq(RechargeAddress::getCurrency,currency))); } }