记得上下班打卡 | git大法好,push需谨慎

Commit 4704bc73 authored by jiangxiulong's avatar jiangxiulong

admin NFT订单管理增加短订单号查询

parent e4fb3a94
......@@ -21,6 +21,8 @@ public class GoblinNftOrderListParam {
@ApiModelProperty(value = "藏品名称")
private String name;
@ApiModelProperty(value = "短订单编号")
private String shortOrderCode;
@ApiModelProperty(value = "订单编号")
private String orderCode;
@ApiModelProperty(value = "发放HASH")
......
......@@ -21,6 +21,8 @@ public class GoblinNftOrderRefundListParam {
@ApiModelProperty(value = "藏品名称")
private String name;
@ApiModelProperty(value = "短订单编号")
private String shortOrderCode;
@ApiModelProperty(value = "订单编号")
private String orderCode;
@ApiModelProperty(value = "发放HASH")
......
......@@ -33,14 +33,13 @@ public class GoblinNftOrderController extends BaseController {
private GoblinNftOrderAdminServiceImpl goblinNftOrderAdminService;
// NFT订单列表
@RequiresPermissions("goblin:nftOrder:list:view")
@GetMapping("/orderView")
public String orderView() {
return prefix + "/orderView";
}
@Log(title = "NFT订单", businessType = BusinessType.LIST)
@RequiresPermissions("goblin:nftOrder:list:data")
@RequiresPermissions("goblin:nftOrder:list")
@PostMapping("/orderList")
@ResponseBody
public TableDataInfo orderList(GoblinNftOrderListParam listParam) {
......@@ -50,14 +49,13 @@ public class GoblinNftOrderController extends BaseController {
}
// NFT订单列表退款
@RequiresPermissions("goblin:nftOrderRefund:list:view")
@GetMapping("/orderRefundView")
public String orderRefundView() {
return prefix + "/orderRefundView";
}
@Log(title = "NFT订单", businessType = BusinessType.LIST)
@RequiresPermissions("goblin:nftOrderRefund:list:data")
@Log(title = "NFT退款订单", businessType = BusinessType.LIST)
@RequiresPermissions("goblin:nftOrderRefund:list")
@PostMapping("/refundList")
@ResponseBody
public TableDataInfo refundList(GoblinNftOrderRefundListParam listParam) {
......
......@@ -9,15 +9,18 @@
c.release_at, c.trading_txhash
from goblin_nft_order as a
join goblin_goods_sku as b on b.sku_id = a.sku_id
join goblin_digital_artwork as c on c.order_id = a.order_id
join goblin_user_digital_artwork as c on c.order_id = a.order_id
<where>
<if test="name != null and name!=''">
<if test="name!=''">
and b.name like concat('%', #{name}, '%')
</if>
<if test="orderCode != null and orderCode!=''">
<if test="shortOrderCode!=''">
and b.order_code like concat('%', #{shortOrderCode}, '%')
</if>
<if test="orderCode!=''">
and b.order_code = #{orderCode}
</if>
<if test="tradingTxhash != null and tradingTxhash!=''">
<if test="tradingTxhash!=''">
and b.trading_txhash = #{tradingTxhash}
</if>
<if test="orderType != null and orderType!=''">
......
......@@ -9,17 +9,20 @@
b.name,
c.release_at, c.trading_txhash
from goblin_nft_order_refund as d
join goblin_nft_order as a on b.order_id = d.order_id
join goblin_nft_order as a on a.order_id = d.order_id
join goblin_goods_sku as b on b.sku_id = a.sku_id
join goblin_digital_artwork as c on c.order_id = a.order_id
join goblin_user_digital_artwork as c on c.order_id = a.order_id
<where>
<if test="name != null and name!=''">
<if test="name!=''">
and b.name like concat('%', #{name}, '%')
</if>
<if test="orderCode != null and orderCode!=''">
<if test="shortOrderCode!=''">
and b.order_code like concat('%', #{shortOrderCode}, '%')
</if>
<if test="orderCode!=''">
and b.order_code = #{orderCode}
</if>
<if test="tradingTxhash != null and tradingTxhash!=''">
<if test="tradingTxhash!=''">
and b.trading_txhash = #{tradingTxhash}
</if>
<if test="orderType != null and orderType!=''">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment