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