| | |
| | | List<VipPaymentListVO> vipPaymentListVOS = new ArrayList<>(); |
| | | |
| | | List<Integer> payStatus = new ArrayList<>(); |
| | | payStatus.add(2); |
| | | LambdaQueryWrapper<VipPayment> vipPaymentLambdaQueryWrapper = new LambdaQueryWrapper<>(); |
| | | vipPaymentLambdaQueryWrapper.in(vipPaymentDto.getUserIds()!=null&&!vipPaymentDto.getUserIds().isEmpty(),VipPayment::getAppUserId, vipPaymentDto.getUserIds()); |
| | | vipPaymentLambdaQueryWrapper.in(vipPaymentDto.getVipIds()!=null&&!vipPaymentDto.getVipIds().isEmpty(),VipPayment::getVipId, vipPaymentDto.getVipIds()); |
| | | vipPaymentLambdaQueryWrapper.in(VipPayment::getPayStatus,payStatus); |
| | | vipPaymentLambdaQueryWrapper.ge(StringUtils.hasLength(vipPaymentDto.getStartTime()), VipPayment::getInsertTime, vipPaymentDto.getStartTime()); |
| | | vipPaymentLambdaQueryWrapper.le(StringUtils.hasLength(vipPaymentDto.getEndTime()), VipPayment::getInsertTime, vipPaymentDto.getEndTime()); |
| | | if (vipPaymentDto.getIsRefund()==null){ |
| | | payStatus.add(3); |
| | | payStatus.add(2); |
| | | } |
| | | if (vipPaymentDto.getIsRefund()!=null&&vipPaymentDto.getIsRefund()==1){ |
| | | payStatus.add(3); |
| | | } |
| | | if (vipPaymentDto.getIsRefund()!=null&&vipPaymentDto.getIsRefund()==2){ |
| | | payStatus.add(2); |
| | | } |
| | | vipPaymentLambdaQueryWrapper.in(VipPayment::getPayStatus,payStatus); |
| | | |
| | | vipPaymentLambdaQueryWrapper.orderByDesc(VipPayment::getInsertTime); |
| | | List<VipPayment> list = vipPaymentService.list(vipPaymentLambdaQueryWrapper); |
| | | // 使用 Stream + 手动拷贝提升性能和可读性(或使用 MapStruct) |
| | |
| | | @ApiModelProperty(value = "是否退款 0否1时") |
| | | private Integer isRefund; |
| | | @ApiModelProperty(value = "备注") |
| | | private Integer remark; |
| | | private String remark; |
| | | |
| | | /** |
| | | * 支付方式(1=微信,2=支付宝) |
| | |
| | | private String key = "6f5e0c2dcabfa9c27b5da5836a362fef";//微信商户号 |
| | | |
| | | // private String callbackPath = "https://online.daowepark.com:443/account";//支付回调网关地址 |
| | | private String callbackPath = "https://y6cgd7wo3ooa.guyubao.com/account";//支付回调网关地址 |
| | | private String callbackPath = "http://221.182.45.100:1234/account";//支付回调网关地址 |
| | | |
| | | private String app_cert_path = "C:/cert/alipay/user/app_cert_path.crt";//应用公钥证书路径 |
| | | |
| | |
| | | @ApiModelProperty(value = "是否退款 0否1时") |
| | | private Integer isRefund; |
| | | @ApiModelProperty(value = "备注") |
| | | private Integer remark; |
| | | private String remark; |
| | | |
| | | /** |
| | | * 支付方式(1=微信,2=支付宝) |
| | |
| | | 是否退费 |
| | | </button> |
| | | </div> |
| | | <select class="form-control" id="type" > |
| | | <select class="form-control" id="isRefund" > |
| | | <option value="">全部</option> |
| | | <option value="1">是</option> |
| | | <option value="2">否</option> |
| | |
| | | var index = layer.load(1,{ |
| | | type: 1 |
| | | , title: '会员退费' |
| | | , area: ['800px', '600px'] |
| | | , area: ['600px', '550px'] |
| | | , offset: 'auto' //具体配置参考:http://www.layui.com/doc/modules/layer.html#offset |
| | | , id: 'layerDemo' //防止重复弹出cge |
| | | , content: '<div class="form-horizontal" style="padding-top: 20px;">' + |
| | |
| | | '<div class="col-sm-9">'+ |
| | | '<input style="width: 300px" class="form-control" id="vipEndTime" name="vipEndTime" type="date">'+ |
| | | '</div>'+ |
| | | |
| | | ' </div>' + |
| | | ' </div>' + |
| | | ' <div class="form-group refusal" >\n' + |
| | | ' <label class="col-sm-3 control-label">备注:</label>\n' + |
| | | ' <div class="col-sm-9">\n' + |
| | | ' <textarea id="refusal" class="form-control" style="width: 100%;height: 200px"></textarea>'+ |
| | | ' <textarea id="refusal" class="form-control" style="width: 100%;height: 120px"></textarea>'+ |
| | | ' </div>\n' + |
| | | ' </div>\n' + |
| | | ' </div>' + |
| | | ' </div>' + |
| | | '</div>' |
| | | , btn: ['保存', '关闭'] |
| | | , btnAlign: 'c' //按钮居中 |