select tc.*, uf.COMMENTHIS, uf.TASKNAME as TASKNAMEHIS, uf.TASKINDEX,uf.STATSHIS, uf.TASKNO, op.field6 as fromCustomerLevel, op.releaseArea as fromCity, op.is_repeat, tc.is_repeated_nodules as isRepeatedNodules
select
tc.*, uf.COMMENTHIS, uf.TASKNAME as TASKNAMEHIS, uf.STATSHIS, uf.TASKNO, uf.TASKINDEX as taskNodeIndex, op.field6 as fromCustomerLevel, op.releaseArea as fromCity, op.is_repeat, tc.is_repeated_nodules as isRepeatedNodules
from ocr_taskchild_picture tc, OA_USERAPPROVE_T uf, ocr_picture op
from ocr_taskchild_picture tc, OA_USERAPPROVE_T uf, ocr_picture op
where tc.ID = uf.FORMID
where tc.ID = uf.FORMID
and tc.PICTUREID = op.ID
and tc.PICTUREID = op.ID
@ -763,7 +763,9 @@
t1.photo_date_timestamp photoDateTimestamp,
t1.photo_date_timestamp photoDateTimestamp,
t1.similarity_score similarityScore,
t1.similarity_score similarityScore,
t1.server_thumbnail_url serverThumbnailUrl,
t1.server_thumbnail_url serverThumbnailUrl,
IF(EXISTS (SELECT STATSHIS FROM oa_userapprove_t WHERE FORMID = t2.ID and STATSHIS = 3), 3,
IF(EXISTS (SELECT STATSHIS
FROM oa_userapprove_t
WHERE FORMID = t2.ID and STATSHIS = 3 and TASKINDEX = #{taskNode}), 3,