| | |
| | | |
| | | import com.github.pagehelper.PageInfo; |
| | | import com.nq.common.ServerResponse; |
| | | import com.nq.pojo.User; |
| | | import com.nq.pojo.UserRecharge; |
| | | import com.nq.service.IUserRechargeService; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | |
| | | import com.nq.service.IUserService; |
| | | import com.nq.utils.KeyUtils; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.ResponseBody; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | |
| | | |
| | | @Controller |
| | |
| | | |
| | | @Autowired |
| | | IUserRechargeService iUserRechargeService; |
| | | |
| | | @Autowired |
| | | IUserService iUserService; |
| | | |
| | | //分页查询所有充值记录 |
| | | @RequestMapping({"list.do"}) |
| | |
| | | public ServerResponse inMoney(String amt, String payType, HttpServletRequest request) { |
| | | return this.iUserRechargeService.inMoney(amt, payType, request); |
| | | } |
| | | } |
| | | |
| | | @RequestMapping("saveUserRecharge.do") |
| | | @ResponseBody |
| | | public ServerResponse saveUserRecharge( |
| | | @RequestParam("amt") String amt, |
| | | HttpServletRequest request |
| | | |
| | | ){ |
| | | User user = this.iUserService.getCurrentRefreshUser(request); |
| | | return iUserRechargeService.saveUserRecharge(user.getId(),amt,request); |
| | | } |
| | | } |