| | |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | |
| | | AgentUserMapper agentUserMapper; |
| | | @Autowired |
| | | ISiteSettingService iSiteSettingService; |
| | | @Resource |
| | | UserCashDetailMapper userCashDetailMapper; |
| | | |
| | | @Resource |
| | | SitePayMapper sitePayMapper; |
| | |
| | | @Autowired |
| | | ISiteInfoService iSiteInfoService; |
| | | |
| | | @Resource |
| | | UserAssetsMapper userAssetsMapper; |
| | | public ServerResponse checkInMoney(int maxOrder, Integer userId) { |
| | | int count = this.userRechargeMapper.checkInMoney(0, userId); |
| | | |
| | |
| | | PageInfo pageInfo = new PageInfo(userRecharges); |
| | | |
| | | for (int i = 0; i <userRecharges.size() ; i++) { |
| | | SitePay s = sitePayMapper.selectById(userRecharges.get(i).getPayId()); |
| | | userRecharges.get(i).setAssetsType(EStockType.MX.getSymbol1()); |
| | | userRecharges.get(i).setChannelName(EStockType.MX.getSymbol()); |
| | | //SitePay s = sitePayMapper.selectById(userRecharges.get(i).getPayId()); |
| | | userRecharges.get(i).setAssetsType(EStockType.getDefault().getSymbol1()); |
| | | userRecharges.get(i).setChannelName(EStockType.getDefault().getSymbol()); |
| | | } |
| | | |
| | | return ServerResponse.createBySuccess(pageInfo); |
| | |
| | | userRecharge.setPayTime(new Date()); |
| | | userRecharge.setOrderStatus(Integer.valueOf(1)); |
| | | userRecharge.setPayId(1); |
| | | userAssetsServices.availablebalanceChange(EStockType.MX.getCode(), |
| | | userAssetsServices.availablebalanceChange(EStockType.getDefault().getCode(), |
| | | userId,EUserAssets.TOP_UP,new BigDecimal(amt),"",""); |
| | | int insertCount = this.userRechargeMapper.insert(userRecharge); |
| | | if (insertCount > 0) { |