| | |
| | | dealIntegralRequest.setIntegralObjType(Constants.IntegralObjType.WITHDRAW_APPLY_BACK); |
| | | dealIntegralRequest.setIntegralNum(model.getAmount()); |
| | | dealIntegralRequest.setObjId(withdrawRecord.getId()); |
| | | dealIntegralRequest.setOrderCode(withdrawRecord.getCode().toString()); |
| | | dealIntegralRequest.setOrderCode(withdrawRecord.getCode()!=null?withdrawRecord.getCode().toString():""); |
| | | dealIntegralRequest.setMemberId(model.getMemberId()); |
| | | dealIntegralRequest.setDealType(Constants.ZERO); |
| | | integralService.dealShopAmount(dealIntegralRequest); |
| | |
| | | if (Objects.isNull(withdrawRecord) ) { |
| | | throw new BusinessException(ResponseStatus.DATA_EMPTY); |
| | | } |
| | | withdrawRecord.setBankInfo(Constants.getBankInfo(withdrawRecord.getBankName(),withdrawRecord.getBankAccount())); |
| | | if(!Constants.equalsInteger(withdrawRecord.getStatus(), Constants.ZERO)){ |
| | | String path = systemDictDataBiz.queryByCode(Constants.OSS, Constants.RESOURCE_PATH).getCode() + |
| | | systemDictDataBiz.queryByCode(Constants.OSS, Constants.TRANSFER_FILE).getCode(); |
| | |
| | | .le(pageWrap.getModel().getEndtime() != null,WithdrawRecord::getCreateDate, pageWrap.getModel().getEndtime()) |
| | | .like(pageWrap.getModel().getShopName() != null,Shop::getName, pageWrap.getModel().getShopName()) |
| | | .eq(WithdrawRecord::getIsdeleted,Constants.ZERO) |
| | | .in(WithdrawRecord::getStatus,Constants.ZERO,Constants.ONE) |
| | | .eq(pageWrap.getModel().getStatus()!=null,WithdrawRecord::getStatus,pageWrap.getModel().getStatus()) |
| | | ); |
| | | if(count == null){ |
| | |
| | | |
| | | |
| | | @Override |
| | | public void withdrawApply(WithdrawApplyRequest request, IntegralService integralService){ |
| | | public Integer withdrawApply(WithdrawApplyRequest request, IntegralService integralService){ |
| | | if (Objects.isNull( request) |
| | | || request.getMemberId() == null |
| | | || request.getBankId() == null |
| | |
| | | dealIntegralRequest.setMemberId(request.getMemberId()); |
| | | dealIntegralRequest.setDealType(Constants.ONE); |
| | | integralService.dealShopAmount(dealIntegralRequest); |
| | | return withdrawRecord.getId(); |
| | | } |
| | | |
| | | |