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

Commit 4704bc73 authored by jiangxiulong's avatar jiangxiulong

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

parent e4fb3a94
...@@ -21,6 +21,8 @@ public class GoblinNftOrderListParam { ...@@ -21,6 +21,8 @@ public class GoblinNftOrderListParam {
@ApiModelProperty(value = "藏品名称") @ApiModelProperty(value = "藏品名称")
private String name; private String name;
@ApiModelProperty(value = "短订单编号")
private String shortOrderCode;
@ApiModelProperty(value = "订单编号") @ApiModelProperty(value = "订单编号")
private String orderCode; private String orderCode;
@ApiModelProperty(value = "发放HASH") @ApiModelProperty(value = "发放HASH")
......
...@@ -21,6 +21,8 @@ public class GoblinNftOrderRefundListParam { ...@@ -21,6 +21,8 @@ public class GoblinNftOrderRefundListParam {
@ApiModelProperty(value = "藏品名称") @ApiModelProperty(value = "藏品名称")
private String name; private String name;
@ApiModelProperty(value = "短订单编号")
private String shortOrderCode;
@ApiModelProperty(value = "订单编号") @ApiModelProperty(value = "订单编号")
private String orderCode; private String orderCode;
@ApiModelProperty(value = "发放HASH") @ApiModelProperty(value = "发放HASH")
......
...@@ -33,14 +33,13 @@ public class GoblinNftOrderController extends BaseController { ...@@ -33,14 +33,13 @@ public class GoblinNftOrderController extends BaseController {
private GoblinNftOrderAdminServiceImpl goblinNftOrderAdminService; private GoblinNftOrderAdminServiceImpl goblinNftOrderAdminService;
// NFT订单列表 // NFT订单列表
@RequiresPermissions("goblin:nftOrder:list:view")
@GetMapping("/orderView") @GetMapping("/orderView")
public String orderView() { public String orderView() {
return prefix + "/orderView"; return prefix + "/orderView";
} }
@Log(title = "NFT订单", businessType = BusinessType.LIST) @Log(title = "NFT订单", businessType = BusinessType.LIST)
@RequiresPermissions("goblin:nftOrder:list:data") @RequiresPermissions("goblin:nftOrder:list")
@PostMapping("/orderList") @PostMapping("/orderList")
@ResponseBody @ResponseBody
public TableDataInfo orderList(GoblinNftOrderListParam listParam) { public TableDataInfo orderList(GoblinNftOrderListParam listParam) {
...@@ -50,14 +49,13 @@ public class GoblinNftOrderController extends BaseController { ...@@ -50,14 +49,13 @@ public class GoblinNftOrderController extends BaseController {
} }
// NFT订单列表退款 // NFT订单列表退款
@RequiresPermissions("goblin:nftOrderRefund:list:view")
@GetMapping("/orderRefundView") @GetMapping("/orderRefundView")
public String orderRefundView() { public String orderRefundView() {
return prefix + "/orderRefundView"; return prefix + "/orderRefundView";
} }
@Log(title = "NFT订单", businessType = BusinessType.LIST) @Log(title = "NFT退款订单", businessType = BusinessType.LIST)
@RequiresPermissions("goblin:nftOrderRefund:list:data") @RequiresPermissions("goblin:nftOrderRefund:list")
@PostMapping("/refundList") @PostMapping("/refundList")
@ResponseBody @ResponseBody
public TableDataInfo refundList(GoblinNftOrderRefundListParam listParam) { public TableDataInfo refundList(GoblinNftOrderRefundListParam listParam) {
......
...@@ -9,15 +9,18 @@ ...@@ -9,15 +9,18 @@
c.release_at, c.trading_txhash c.release_at, c.trading_txhash
from goblin_nft_order as a from goblin_nft_order as a
join goblin_goods_sku as b on b.sku_id = a.sku_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> <where>
<if test="name != null and name!=''"> <if test="name!=''">
and b.name like concat('%', #{name}, '%') and b.name like concat('%', #{name}, '%')
</if> </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} and b.order_code = #{orderCode}
</if> </if>
<if test="tradingTxhash != null and tradingTxhash!=''"> <if test="tradingTxhash!=''">
and b.trading_txhash = #{tradingTxhash} and b.trading_txhash = #{tradingTxhash}
</if> </if>
<if test="orderType != null and orderType!=''"> <if test="orderType != null and orderType!=''">
......
...@@ -9,17 +9,20 @@ ...@@ -9,17 +9,20 @@
b.name, b.name,
c.release_at, c.trading_txhash c.release_at, c.trading_txhash
from goblin_nft_order_refund as d 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_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> <where>
<if test="name != null and name!=''"> <if test="name!=''">
and b.name like concat('%', #{name}, '%') and b.name like concat('%', #{name}, '%')
</if> </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} and b.order_code = #{orderCode}
</if> </if>
<if test="tradingTxhash != null and tradingTxhash!=''"> <if test="tradingTxhash!=''">
and b.trading_txhash = #{tradingTxhash} and b.trading_txhash = #{tradingTxhash}
</if> </if>
<if test="orderType != null and orderType!=''"> <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