|
|
|
@ -68,6 +68,7 @@
|
|
|
|
|
<result column="photo_date_timestamp" property="photoDateTimestamp" jdbcType="VARCHAR"/>
|
|
|
|
|
<result column="suspiciousfile" property="suspiciousfile" jdbcType="INTEGER"/>
|
|
|
|
|
<result column="STATES" property="states" jdbcType="INTEGER"/>
|
|
|
|
|
<result column="TASKID" property="taskId" jdbcType="VARCHAR"/>
|
|
|
|
|
<result column="historyStates" property="historyStates" jdbcType="INTEGER"/>
|
|
|
|
|
|
|
|
|
|
<association property="pictureInfo" javaType="cn.jyjz.xiaoyao.ocr.dataobject.OcrPictureInfo">
|
|
|
|
@ -224,7 +225,7 @@
|
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
<select id="getPackagePictureInfo" resultMap="BaseResultMap">
|
|
|
|
|
SELECT t2.*,t3.*,ifnull(t5.STATSHIS, 1) historyStates,T4.STATES
|
|
|
|
|
SELECT t2.*,t3.*,ifnull(t5.STATSHIS, 1) historyStates,t4.STATES,t4.TASKID
|
|
|
|
|
FROM ocr_check_duplicate_result t1
|
|
|
|
|
LEFT JOIN ocr_picture t2 ON t1.picture_id = t2.ID
|
|
|
|
|
left join ocr_picture_info t3 on t2.ID=t3.picture_id
|
|
|
|
@ -234,7 +235,7 @@
|
|
|
|
|
<if test="pictureId != null and pictureId != ''">
|
|
|
|
|
and t1.picture_id = #{pictureId}
|
|
|
|
|
</if>
|
|
|
|
|
ORDER BY t1.max_similarity desc,t1.similarity_group_order asc, t2.create_time DESC
|
|
|
|
|
ORDER BY t1.max_similarity desc,t1.similarity_group_order asc, t2.submit_date_timestamp DESC
|
|
|
|
|
LIMIT 1
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|