From c16f945a56dbedbfd5778a6de7b124298588607c Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Thu, 22 Dec 2022 12:15:00 +0800 Subject: [PATCH] 20221221 --- src/main/java/cc/mrbird/febs/mall/dto/OrderListDto.java | 3 +++ src/main/resources/templates/febs/views/modules/mallMember/chargeFlowList.html | 12 +++++------- src/main/resources/mapper/modules/MallOrderInfoMapper.xml | 6 ++++++ src/main/java/cc/mrbird/febs/mall/vo/AdminMoneyChargeListVo.java | 1 + src/main/resources/mapper/modules/MallMoneyFlowMapper.xml | 2 ++ 5 files changed, 17 insertions(+), 7 deletions(-) diff --git a/src/main/java/cc/mrbird/febs/mall/dto/OrderListDto.java b/src/main/java/cc/mrbird/febs/mall/dto/OrderListDto.java index 7a900a0..c958d1e 100644 --- a/src/main/java/cc/mrbird/febs/mall/dto/OrderListDto.java +++ b/src/main/java/cc/mrbird/febs/mall/dto/OrderListDto.java @@ -21,6 +21,9 @@ @ApiModelProperty(value = "搜索参数", example = "1") private String query; + @ApiModelProperty(value = "订单全状态", example = "全部不用传 2-进行中 3-已完成") + private Integer allStatus; + @ApiModelProperty(value = "订单状态", example = "0-全部 1-待付款 2-待发货 3-待收货 4-已完成 5-已取消") private Integer status; diff --git a/src/main/java/cc/mrbird/febs/mall/vo/AdminMoneyChargeListVo.java b/src/main/java/cc/mrbird/febs/mall/vo/AdminMoneyChargeListVo.java index 49df3af..0aec161 100644 --- a/src/main/java/cc/mrbird/febs/mall/vo/AdminMoneyChargeListVo.java +++ b/src/main/java/cc/mrbird/febs/mall/vo/AdminMoneyChargeListVo.java @@ -30,4 +30,5 @@ private String bindPhone; private String remark; + private String bankNo; } diff --git a/src/main/resources/mapper/modules/MallMoneyFlowMapper.xml b/src/main/resources/mapper/modules/MallMoneyFlowMapper.xml index 50f65bc..e53d53f 100644 --- a/src/main/resources/mapper/modules/MallMoneyFlowMapper.xml +++ b/src/main/resources/mapper/modules/MallMoneyFlowMapper.xml @@ -77,9 +77,11 @@ a.status status, b.name, b.bind_phone bindPhone, + c.bank_no bankNo, b.phone from mall_member_withdraw a inner join mall_member b on a.member_id=b.id + inner join mall_member_bank c on c.member_id=b.id <where> <if test="record != null" > <if test="record.name!=null and record.name!=''"> diff --git a/src/main/resources/mapper/modules/MallOrderInfoMapper.xml b/src/main/resources/mapper/modules/MallOrderInfoMapper.xml index 9d53ee9..a010fc4 100644 --- a/src/main/resources/mapper/modules/MallOrderInfoMapper.xml +++ b/src/main/resources/mapper/modules/MallOrderInfoMapper.xml @@ -164,6 +164,12 @@ <if test="record.orderType != null"> and a.order_type=#{record.orderType} </if> + <if test="record.allStatus == 2"> + and a.status <![CDATA[<= ]]> 4 + </if> + <if test="record.allStatus == 3"> + and a.status <![CDATA[>= ]]> 4 + </if> </where> order by a.created_time desc </select> diff --git a/src/main/resources/templates/febs/views/modules/mallMember/chargeFlowList.html b/src/main/resources/templates/febs/views/modules/mallMember/chargeFlowList.html index 03d6a16..d166530 100644 --- a/src/main/resources/templates/febs/views/modules/mallMember/chargeFlowList.html +++ b/src/main/resources/templates/febs/views/modules/mallMember/chargeFlowList.html @@ -122,16 +122,15 @@ {field: 'withdrawNo', title: '编号', minWidth: 100,align:'left'}, {field: 'name', title: '名称', minWidth: 100,align:'left'}, {field: 'phone', title: '账号', minWidth: 150,align:'left'}, - {field: 'bindPhone', title: '手机号', minWidth: 150,align:'left'}, {field: 'amount', title: '金额', minWidth: 150,align:'left'}, {field: 'amountFee', title: '手续费', minWidth: 150,align:'left'}, - {field: 'remark', title: '错误信息', minWidth: 150,align:'left'}, + {field: 'bankNo', title: '地址', minWidth: 300,align:'left'}, {field: 'status', title: '状态', templet: function (d) { if (d.status === 1) { - return '<span style="color:green;">提现中</span>' + return '<span style="color:blue;">提现中</span>' } else if (d.status === 2) { - return '<span style="color:red;">成功</span>' + return '<span style="color:green;">成功</span>' } else if (d.status === 3) { return '<span style="color:red;">拒绝</span>' } else{ @@ -144,11 +143,10 @@ if (d.status === 1) { return '<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="chargeAgree" shiro:hasPermission="user:update">同意</button>' +'<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="chargeDisagree" shiro:hasPermission="user:update">拒绝</button>' - +'<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="paymentInfo" shiro:hasPermission="user:update">查看收款方式</button>' }else{ - return '<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="paymentInfo" shiro:hasPermission="user:update">查看收款方式</button>' + return '' } - },minWidth: 300,align:'center'} + },minWidth: 200,align:'center'} ]] }); } -- Gitblit v1.9.1