## Opt - 退款明细
This commit is contained in:
parent
8badf9dfb1
commit
59317ea591
|
@ -19,6 +19,7 @@ import com.hzs.common.domain.sale.ext.SaOrderExt;
|
|||
import com.hzs.common.domain.sale.ext.SaOrderItemsExt;
|
||||
import com.hzs.common.domain.sale.order.SaOrder;
|
||||
import com.hzs.common.domain.sale.order.SaOrderItems;
|
||||
import com.hzs.common.domain.third.pay.ext.TOnlineRefundExt;
|
||||
import com.hzs.common.security.auth.AuthMemberUtil;
|
||||
import com.hzs.common.security.utils.SecurityUtils;
|
||||
import com.hzs.common.util.TransactionUtils;
|
||||
|
@ -226,6 +227,15 @@ public class ApiOrderController extends BaseController {
|
|||
return tableDataInfo;
|
||||
}
|
||||
|
||||
@GetMapping("/refund-list")
|
||||
public TableDataInfo refundList() {
|
||||
// 返回结果
|
||||
startPage();
|
||||
List<TOnlineRefundExt> list = iSaOrderService.queryRefundList();
|
||||
TableDataInfo tableDataInfo = getDataTable(list);
|
||||
tableDataInfo.setRows(list);
|
||||
return tableDataInfo;
|
||||
}
|
||||
/**
|
||||
* 订单详情
|
||||
*
|
||||
|
|
|
@ -5,6 +5,7 @@ import com.hzs.common.domain.sale.ext.SaDeliverItemsExt;
|
|||
import com.hzs.common.domain.sale.ext.SaOrderExt;
|
||||
import com.hzs.common.domain.sale.ext.SaOrderItemsExt;
|
||||
import com.hzs.common.domain.sale.order.SaOrder;
|
||||
import com.hzs.common.domain.third.pay.ext.TOnlineRefundExt;
|
||||
import com.hzs.sale.deliver.param.DeliverSecondParam;
|
||||
import com.hzs.sale.deliver.vo.DeliverSecondVO;
|
||||
import com.hzs.sale.order.param.*;
|
||||
|
@ -138,6 +139,8 @@ public interface SaOrderMapper extends BaseMapper<SaOrder> {
|
|||
@Param("memberId") Long memberId,
|
||||
@Param("pkCountry") Integer pkCountry);
|
||||
|
||||
List<TOnlineRefundExt> queryRefundList(@Param("userId") Long userId);
|
||||
|
||||
/**
|
||||
* 自助撤单列表
|
||||
**/
|
||||
|
|
|
@ -9,6 +9,7 @@ import com.hzs.common.domain.member.ext.CuMemberExt;
|
|||
import com.hzs.common.domain.sale.ext.*;
|
||||
import com.hzs.common.domain.sale.order.SaOrder;
|
||||
import com.hzs.common.domain.sale.order.SaOrderItems;
|
||||
import com.hzs.common.domain.third.pay.ext.TOnlineRefundExt;
|
||||
import com.hzs.sale.deliver.param.DeliverSecondParam;
|
||||
import com.hzs.sale.deliver.vo.DeliverSecondVO;
|
||||
import com.hzs.sale.order.param.*;
|
||||
|
@ -412,6 +413,7 @@ public interface ISaOrderService extends IService<SaOrder> {
|
|||
*/
|
||||
List<SaOrderExt> myOrderList(MyOrderParam param, Long memberId, Integer pkCountry);
|
||||
|
||||
List<TOnlineRefundExt> queryRefundList();
|
||||
/**
|
||||
* 自助撤单列表
|
||||
**/
|
||||
|
|
|
@ -37,6 +37,7 @@ import com.hzs.common.domain.system.base.BdCountry;
|
|||
import com.hzs.common.domain.system.base.ext.BdProductStorehouseExt;
|
||||
import com.hzs.common.domain.system.config.BdAwards;
|
||||
import com.hzs.common.domain.third.pay.TOnlinePayment;
|
||||
import com.hzs.common.domain.third.pay.ext.TOnlineRefundExt;
|
||||
import com.hzs.common.security.service.UserTokenService;
|
||||
import com.hzs.common.security.utils.SecurityUtils;
|
||||
import com.hzs.common.util.TransactionUtils;
|
||||
|
@ -1778,6 +1779,11 @@ public class SaOrderServiceImpl extends ServiceImpl<SaOrderMapper, SaOrder> impl
|
|||
return baseMapper.myOrderList(param, memberId, pkCountry);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<TOnlineRefundExt> queryRefundList() {
|
||||
return baseMapper.queryRefundList(SecurityUtils.getUserId());
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 自助撤单列表
|
||||
**/
|
||||
|
|
|
@ -1799,5 +1799,30 @@
|
|||
on od.pk_rate = bc.pk_id
|
||||
order by pay_time
|
||||
</select>
|
||||
<select id="queryRefundList" resultType="com.hzs.common.domain.third.pay.ext.TOnlineRefundExt">
|
||||
select cm.member_code,
|
||||
cm.member_name,
|
||||
top.business_type pay_business_type,
|
||||
top.business_code pay_business_code,
|
||||
tor.business_code,
|
||||
tor.refund_status,
|
||||
tor.refund_money,
|
||||
tor.finish_money,
|
||||
tor.creation_time,
|
||||
tor.finish_time,
|
||||
tor.refund_channel,
|
||||
tor.refund_code,
|
||||
tor.error_msg
|
||||
from T_ONLINE_REFUND tor
|
||||
inner join T_ONLINE_PAYMENT top
|
||||
on top.pk_id = tor.pk_online_payment
|
||||
left join cu_member cm
|
||||
on cm.pk_id = top.pk_creator
|
||||
where tor.del_flag = 0
|
||||
<if test="userId != null">
|
||||
and tor.PK_CREATOR = #{userId}
|
||||
</if>
|
||||
order by creation_time desc
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
|
|
Loading…
Reference in New Issue