| | |
| | | public List<Extract> list(ExtractQuery extractQuery, int page, int pageSize) { |
| | | DaoQuery daoQuery = new DaoQuery(); |
| | | daoQuery.uid = extractQuery.getUid(); |
| | | daoQuery.state = extractQuery.getState(); |
| | | daoQuery.minCreateTime = extractQuery.toStartTime(); |
| | | daoQuery.maxCreateTime = extractQuery.toEndTime(); |
| | | daoQuery.sortList = Arrays.asList(new String[]{"create_time desc"}); |
| | |
| | | public long count(ExtractQuery extractQuery) { |
| | | DaoQuery daoQuery = new DaoQuery(); |
| | | daoQuery.uid = extractQuery.getUid(); |
| | | daoQuery.state = extractQuery.getState(); |
| | | daoQuery.minCreateTime = extractQuery.toStartTime(); |
| | | daoQuery.maxCreateTime = extractQuery.toEndTime(); |
| | | return extractMapper.count(daoQuery); |
| | |
| | | |
| | | @Transactional(rollbackFor = Exception.class) |
| | | @Override |
| | | public void passExtract(Long id, Long adminId) throws ExtractException { |
| | | public void passExtract(Long id, String adminId) throws ExtractException { |
| | | Extract extract = extractMapper.selectByPrimaryKeyForUpdate(id); |
| | | if (extract == null) { |
| | | throw new ExtractException(ExtractException.CODE_NOT_EXIST, "提现记录不存在"); |
| | |
| | | |
| | | @Transactional(rollbackFor = Exception.class) |
| | | @Override |
| | | public void rejectExtract(Long id, Long adminId, String reason) throws ExtractException, UserMoneyBalanceException, ParamsException { |
| | | public void rejectExtract(Long id, String adminId, String reason) throws ExtractException, UserMoneyBalanceException, ParamsException { |
| | | Extract extract = extractMapper.selectByPrimaryKeyForUpdate(id); |
| | | if (extract == null) { |
| | | throw new ExtractException(ExtractException.CODE_NOT_EXIST, "提现记录不存在"); |
| | |
| | | * @param extract |
| | | * @param adminId |
| | | */ |
| | | private void transferByAlipay(Extract extract, Long adminId) { |
| | | private void transferByAlipay(Extract extract, String adminId) { |
| | | //获取用户的系统 |
| | | UserInfo user = userInfoService.get(extract.getUser().getId()); |
| | | String appName = user.getSystem().getName(); |
| | |
| | | } |
| | | } |
| | | |
| | | private void transferByWX(Extract extract, Long adminId, String wxAPPId) { |
| | | private void transferByWX(Extract extract, String adminId, String wxAPPId) { |
| | | //获取用户的系统 |
| | | UserInfo user = userInfoService.get(extract.getUser().getId()); |
| | | String appName = user.getSystem().getName(); |