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

Loading…
Cancel
Save