修改获取审核状态的接口

This commit is contained in:
weiweiw 2024-12-01 18:35:23 +08:00
parent e573f5e418
commit e15b42c84c
2 changed files with 8 additions and 6 deletions

View File

@ -304,11 +304,9 @@ public class AnnotationTaskServiceImpl implements AnnotationTaskService {
public int audit(AnnotationTaskAnnotatorEntity subTask){ public int audit(AnnotationTaskAnnotatorEntity subTask){
try { try {
if (StringUtils.isEmpty(subTask.getAuditFailedReason())){ if (StringUtils.isEmpty(subTask.getAuditFailedReason())){
subTask.setAuditFailedReason("");
}
else {
subTask.setAnnotationStatus("2"); subTask.setAnnotationStatus("2");
} }
return annotationTaskMapper.updateAnnotationInfo(subTask); return annotationTaskMapper.updateAnnotationInfo(subTask);
}catch(Exception e){ }catch(Exception e){
e.printStackTrace(); e.printStackTrace();

View File

@ -298,13 +298,17 @@
review_time = sysdate(), review_time = sysdate(),
annotation_status = '3', annotation_status = '3',
</when> </when>
<when test="annotationStatus != null and annotationStatus == '2'"> <when test="annotationStatus != null and annotationStatus != ''">
annotation_status = #{annotationStatus}, annotation_status = #{annotationStatus},
review_time = sysdate(), review_time = sysdate(),
</when> </when>
</choose> </choose>
<if test="annotationResource != null and annotationResource != ''">annotation_resource = #{annotationResource},</if> <if test="annotationResource != null and annotationResource != ''">
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if> annotation_resource = #{annotationResource}
</if>
<if test="updateBy != null and updateBy != ''">
update_by = #{updateBy},
</if>
</set> </set>
WHERE task_id = #{taskId} and file_id = #{fileId} WHERE task_id = #{taskId} and file_id = #{fileId}
</update> </update>