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

Commit 2154d769 authored by 胡佳晨's avatar 胡佳晨

Merge remote-tracking branch 'origin/hjc_goblin_list_unbox' into hjc_goblin_list_unbox

parents 0a492977 3e05a35f
...@@ -3,16 +3,12 @@ ...@@ -3,16 +3,12 @@
<mapper namespace="com.liquidnet.service.goblin.mapper.GoblinNftOrderMapper"> <mapper namespace="com.liquidnet.service.goblin.mapper.GoblinNftOrderMapper">
<select id="searchList" resultType="com.liquidnet.service.goblin.dto.admin.GoblinNftOrderListDto"> <select id="searchList" resultType="com.liquidnet.service.goblin.dto.admin.GoblinNftOrderListDto">
select select c.trading_at, c.nft_id, a.* from (select
a.user_id,a.order_code,a.order_type,a.pay_type,a.price_actual,a.status,a.pay_time,a.created_at, user_id,order_code,order_id,order_type,pay_type,price_actual,status,pay_time,created_at,sku_title as name
b.name, from goblin_nft_order
c.trading_at, c.nft_id
from goblin_nft_order as a
left join goblin_goods_sku as b on b.sku_id = a.sku_id
left join goblin_user_digital_artwork as c on c.order_id = a.order_id and c.del_flg = '0'
<where> <where>
<if test="name!=''"> <if test="name!=''">
and b.name like concat('%', #{name}, '%') and a.sku_title like concat('%', #{name}, '%')
</if> </if>
<if test="userId!=''"> <if test="userId!=''">
and a.user_id = #{userId} and a.user_id = #{userId}
...@@ -23,9 +19,6 @@ ...@@ -23,9 +19,6 @@
<if test="orderCode!=''"> <if test="orderCode!=''">
and a.order_code = #{orderCode} and a.order_code = #{orderCode}
</if> </if>
<if test="nftId!=''">
and c.nft_id = #{nftId}
</if>
<if test="orderType != null and orderType!=''"> <if test="orderType != null and orderType!=''">
and a.order_type = #{orderType} and a.order_type = #{orderType}
</if> </if>
...@@ -44,7 +37,13 @@ ...@@ -44,7 +37,13 @@
and a.pay_time <![CDATA[<=]]> #{payTimeEnd} and a.pay_time <![CDATA[<=]]> #{payTimeEnd}
</if> </if>
</where> </where>
group by a.order_id order by mid desc
order by a.created_at desc ) as a
left join goblin_user_digital_artwork as c on c.order_id = a.order_id and c.del_flg = '0'
<where>
<if test="nftId!=''">
and c.nft_id = #{nftId}
</if>
</where>
</select> </select>
</mapper> </mapper>
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