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

Commit f8f575ef authored by jiangxiulong's avatar jiangxiulong

delay完善 sql

parent 082e57ab
...@@ -25,11 +25,11 @@ ...@@ -25,11 +25,11 @@
<select id="selectExCodeNum" resultType="com.liquidnet.service.goblin.dto.GoblinNftExCodeNumDto"> <select id="selectExCodeNum" resultType="com.liquidnet.service.goblin.dto.GoblinNftExCodeNumDto">
select gnes.activity_id, gnes.store_id, gnes.spu_id, gnes.sku_id, gnes.unbox, gnes.ex_start_time, gnes.ex_stop_time, count(*) as num, gnec.box_sku_id select gnes.activity_id, gnes.store_id, gnes.spu_id, gnes.sku_id, gnes.unbox, gnes.ex_start_time, gnes.ex_stop_time, count(*) as num, gnec.box_sku_id
from goblin_nft_ex_sku as gnes from goblin_nft_ex_sku as gnes
left join goblin_nft_ex_code as gnec on gnes.activity_id = gnec.activity_id and gnes.activity_id = left join goblin_nft_ex_code as gnec on gnes.activity_id = gnec.activity_id and gnes.sku_id =
gnec.activity_id gnec.sku_id
<where> <where>
gnes.activity_id = #{oldActivityId} gnes.activity_id = #{oldActivityId}
and gnec.state = 3 or (gnec.state = 1 or gnes.ex_stop_time <![CDATA[<]]> NOW()) and (gnec.state = 3 or (gnec.state = 1 and gnes.ex_stop_time <![CDATA[<]]> NOW()))
<if test="unbox != '' "> <if test="unbox != '' ">
and gnes.unbox = #{unbox} and gnes.unbox = #{unbox}
</if> </if>
......
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