|
@@ -1280,18 +1280,16 @@
|
|
|
from public_release where aid=#{aid} and status in (0,1,2)
|
|
from public_release where aid=#{aid} and status in (0,1,2)
|
|
|
and type <5
|
|
and type <5
|
|
|
and (alone in (0,1) or (alone=2 and assist=2))
|
|
and (alone in (0,1) or (alone=2 and assist=2))
|
|
|
- and ( (release_start >= #{start} and release_start <= #{end})
|
|
|
|
|
- or (release_start < #{start} and release_end > #{start})
|
|
|
|
|
- or (release_start < #{end} and release_end > #{end}))
|
|
|
|
|
|
|
+ AND release_end > #{start}
|
|
|
|
|
+ AND release_start < #{end}
|
|
|
</select>
|
|
</select>
|
|
|
<select id="checkTech" resultMap="PublicReleaseMap">
|
|
<select id="checkTech" resultMap="PublicReleaseMap">
|
|
|
select
|
|
select
|
|
|
<include refid="PublicReleaseAllSql"/>
|
|
<include refid="PublicReleaseAllSql"/>
|
|
|
from public_release where status =1 and `type` =0 and assist =1
|
|
from public_release where status =1 and `type` =0 and assist =1
|
|
|
and FIND_IN_SET(#{aid},assist_aid)
|
|
and FIND_IN_SET(#{aid},assist_aid)
|
|
|
- and ( (release_start >= #{start} and release_start <= #{end})
|
|
|
|
|
- or (release_start < #{start} and release_end > #{start})
|
|
|
|
|
- or (release_start < #{end} and release_end > #{end}))
|
|
|
|
|
|
|
+ AND release_end > #{start}
|
|
|
|
|
+ AND release_start < #{end}
|
|
|
</select>
|
|
</select>
|
|
|
<select id="selectByMonth" resultMap="PublicReleaseMap">
|
|
<select id="selectByMonth" resultMap="PublicReleaseMap">
|
|
|
select
|
|
select
|