فهرست منبع

自定义流程接口-入库申请加入版本号控制

wangliang 3 سال پیش
والد
کامیت
ec98c56044

+ 1 - 1
distributed-print-business/src/main/java/com/qmth/distributed/print/business/service/impl/ExamTaskServiceImpl.java

@@ -1635,7 +1635,7 @@ public class ExamTaskServiceImpl extends ServiceImpl<ExamTaskMapper, ExamTask> i
         TFCustomFlow tfCustomFlow = tfCustomFlowService.getById(customFlowId);
         TFCustomFlow tfCustomFlow = tfCustomFlowService.getById(customFlowId);
         Optional.ofNullable(tfCustomFlow).orElseThrow(() -> ExceptionResultEnum.ERROR.exception("未找到自定义流程数据"));
         Optional.ofNullable(tfCustomFlow).orElseThrow(() -> ExceptionResultEnum.ERROR.exception("未找到自定义流程数据"));
 
 
-        if (tfCustomFlow.getVersion().intValue() > version.intValue()) {
+        if (tfCustomFlow.getVersion().intValue() != version.intValue()) {
             Optional.ofNullable(tfCustomFlow).orElseThrow(() -> ExceptionResultEnum.ERROR.exception("自定义流程数据已发生改变,请刷新重试"));
             Optional.ofNullable(tfCustomFlow).orElseThrow(() -> ExceptionResultEnum.ERROR.exception("自定义流程数据已发生改变,请刷新重试"));
         }
         }