修改终审列表

pull/1/head
sunchenliang 1 year ago
parent b96354b5f0
commit 2fd4a6e9ef

@ -167,28 +167,37 @@
</where> </where>
</sql> </sql>
<select id="listFinal" resultType="cn.jyjz.xiaoyao.ocr.dataobject.OcrTaskchildPicture" parameterType="java.util.Map"> <select id="listFinal" resultType="cn.jyjz.xiaoyao.ocr.dataobject.OcrTaskchildPicture" parameterType="java.util.Map">
select tcp.*,pic.field11 reporttime from (
select tcp.*,pic.field11 reporttime from ( select
select tc.*
tc.* from ocr_taskchild_picture tc,OA_USERFINAL_T uf
from ocr_taskchild_picture tc,OA_USERFINAL_T uf where tc.ID = uf.FORMID
where tc.ID = uf.FORMID <if test="thisLoginUserid != null">
<if test="thisLoginUserid != null"> and uf.USERID ${thisLoginUserid.dataOp} ${thisLoginUserid.likestar}#{thisLoginUserid.value}${thisLoginUserid.likeend}</if> and uf.USERID ${thisLoginUserid.dataOp}
UNION ${thisLoginUserid.likestar}#{thisLoginUserid.value}${thisLoginUserid.likeend}
select </if>
tc.* UNION
from ocr_taskchild_picture tc select
where tc.STATES = 5 tc.*
) as tcp,ocr_picture pic from ocr_taskchild_picture tc
where tcp.PICTUREID = pic.ID where tc.STATES = 5
<include refid="Base_Where_union"></include> ) as tcp left join ocr_picture pic
<if test="fromuptimeStart != null"> and tcp.fromuptime &gt;= ${fromuptimeStart} </if> on tcp.PICTUREID = pic.ID
<if test="fromuptimeEnd != null"> and tcp.fromuptime &lt;= ${fromuptimeEnd} </if> <include refid="Base_Where_union">
<if test="page != null"> </include>
<if test="page.sortname != null"> order by tcp.${page.sortname} ${page.sortorder}</if> <if test="fromuptimeStart != null">
limit ${page.start}, ${page.Pagesize} and tcp.fromuptime &gt;= ${fromuptimeStart}
</if> </if>
</select> <if test="fromuptimeEnd != null">
and tcp.fromuptime &lt;= ${fromuptimeEnd}
</if>
<if test="page != null">
<if test="page.sortname != null">
order by tcp.${page.sortname} ${page.sortorder}
</if>
limit ${page.start}, ${page.Pagesize}
</if>
</select>
<select id="listFinalCount" resultType="java.lang.Long" parameterType="java.util.Map"> <select id="listFinalCount" resultType="java.lang.Long" parameterType="java.util.Map">
select count(tcp.ID) from ( select count(tcp.ID) from (
select select

Loading…
Cancel
Save