fix: 修改任务终审

pull/138/head
sunchenliang 1 year ago
parent 8ac28d6b65
commit dd5b553c74

@ -995,8 +995,11 @@
<select id="listFinalTask" resultType="cn.jyjz.xiaoyao.ocr.dataobject.OcrTaskchildPicture"
parameterType="java.util.Map">
select tcp.*, pic.field11 reporttime, pic.similarity_score similarityscore,pic.server_thumbnail_url serverThumbnailUrl,
pic.imgUrl imgUrl
select tcp.*,
pic.field11 reporttime,
pic.similarity_score similarityscore,
pic.server_thumbnail_url serverThumbnailUrl,
pic.imgUrl imgUrl
from ocr_taskchild_picture tcp
left join ocr_picture pic
on tcp.PICTUREID = pic.ID
@ -1004,12 +1007,14 @@
</include>
and tcp.ISFINAIL = 1
and pic.suspiciousfile = 0
<if test="thisLoginUserid != null and isFail ==null">
and tcp.ASSIGNEE ${thisLoginUserid.dataOp} ${thisLoginUserid.likestar}#{thisLoginUserid.value}${thisLoginUserid.likeend}
<if test="thisLoginUserid != null and isFail == null">
and FIND_IN_SET(#{thisLoginUserid.value}
, tcp.ASSIGNEE)
</if>
<if test="thisLoginUserid != null and isFail !=null">
and (tcp.ASSIGNEE ${thisLoginUserid.dataOp} ${thisLoginUserid.likestar}#{thisLoginUserid.value}${thisLoginUserid.likeend}
or tcp.STATES = 5)
<if test="thisLoginUserid != null and isFail != null">
and (FIND_IN_SET(#{thisLoginUserid.value}
, tcp.ASSIGNEE)
or tcp.STATES = 5)
</if>
<if test="fromuptimeStart != null">
@ -1022,16 +1027,18 @@
<if test="page.sortname != null">
<choose>
<when test="page.sortname == 'states'">
ORDER BY tcp.${page.sortname} ${page.sortorder} , pic.similarity_score desc
ORDER BY tcp.${page.sortname} ${page.sortorder}, pic.similarity_score desc
</when>
<when test="page.sortname == 'field1'">
ORDER BY CONVERT(pic.${page.sortname} USING gbk) COLLATE gbk_chinese_ci ${page.sortorder}
</when>
<otherwise>
ORDER BY pic.${page.sortname} ${page.sortorder}
</otherwise>
</choose>
</if>
limit ${page.start}, ${page.Pagesize}
</if>
</select>

Loading…
Cancel
Save