修改终审列表

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

@ -167,25 +167,34 @@
</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"> and uf.USERID ${thisLoginUserid.dataOp} ${thisLoginUserid.likestar}#{thisLoginUserid.value}${thisLoginUserid.likeend}</if> <if test="thisLoginUserid != null">
and uf.USERID ${thisLoginUserid.dataOp}
${thisLoginUserid.likestar}#{thisLoginUserid.value}${thisLoginUserid.likeend}
</if>
UNION UNION
select select
tc.* tc.*
from ocr_taskchild_picture tc from ocr_taskchild_picture tc
where tc.STATES = 5 where tc.STATES = 5
) as tcp,ocr_picture pic ) as tcp left join ocr_picture pic
where tcp.PICTUREID = pic.ID on tcp.PICTUREID = pic.ID
<include refid="Base_Where_union"></include> <include refid="Base_Where_union">
<if test="fromuptimeStart != null"> and tcp.fromuptime &gt;= ${fromuptimeStart} </if> </include>
<if test="fromuptimeEnd != null"> and tcp.fromuptime &lt;= ${fromuptimeEnd} </if> <if test="fromuptimeStart != null">
and tcp.fromuptime &gt;= ${fromuptimeStart}
</if>
<if test="fromuptimeEnd != null">
and tcp.fromuptime &lt;= ${fromuptimeEnd}
</if>
<if test="page != null"> <if test="page != null">
<if test="page.sortname != null"> order by tcp.${page.sortname} ${page.sortorder}</if> <if test="page.sortname != null">
order by tcp.${page.sortname} ${page.sortorder}
</if>
limit ${page.start}, ${page.Pagesize} limit ${page.start}, ${page.Pagesize}
</if> </if>
</select> </select>

Loading…
Cancel
Save