修改获取审核状态的接口
This commit is contained in:
parent
e573f5e418
commit
e15b42c84c
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue