修改获取审核状态的接口

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){
try {
if (StringUtils.isEmpty(subTask.getAuditFailedReason())){
subTask.setAuditFailedReason("");
}
else {
subTask.setAnnotationStatus("2");
}
return annotationTaskMapper.updateAnnotationInfo(subTask);
}catch(Exception e){
e.printStackTrace();

View File

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