|
|
|
@ -530,19 +530,21 @@
|
|
|
|
|
archive_collect_task a
|
|
|
|
|
INNER JOIN archive_detail ON archive_detail.MasterID = a.MasterID
|
|
|
|
|
<where>
|
|
|
|
|
archive_detail.source in ('1','3')
|
|
|
|
|
<if test="mid != null and mid != ''">
|
|
|
|
|
and archive_detail.MasterID = #{mid,jdbcType=NVARCHAR}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="c1 != null and c1 != ''">
|
|
|
|
|
and archive_detail.Title like '%${c1}%'
|
|
|
|
|
</if>
|
|
|
|
|
<if test="sysflag != null">
|
|
|
|
|
and archive_detail.Source = #{sysflag,jdbcType=INTEGER}
|
|
|
|
|
<if test="source != null and source != ''" >
|
|
|
|
|
and archive_detail.Source = #{source}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="statusflag != null">
|
|
|
|
|
and a.state = #{statusflag,jdbcType=INTEGER}
|
|
|
|
|
<if test="source == null || source == ''">
|
|
|
|
|
and archive_detail.source in ('1','3')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="statusflag != null">
|
|
|
|
|
and a.state = #{statusflag,jdbcType=INTEGER}
|
|
|
|
|
</if>
|
|
|
|
|
</where>
|
|
|
|
|
) temp
|
|
|
|
|
LEFT JOIN archive_detail ON temp.DID = archive_detail.id
|
|
|
|
|