Просмотр исходного кода

报价配置-协议调度 添加动作后,动作无法删除bug修复(h后台代码)

lipf 4 месяцев назад
Родитель
Сommit
b89cd87d22

+ 1 - 1
tenant/organization/src/main/java/com/jzg/organization/service/impl/PtlAgreementDispatchServiceImpl.java

@@ -298,7 +298,7 @@ public class PtlAgreementDispatchServiceImpl extends ServiceImpl<PtlAgreementDis
     public HttpResult<String> deleteAfterActionById(String afterActionId) {
         log.info("删除后置处理操作:afterActionId=[{}]",afterActionId);
         PtlAgreementDispatchAfterAction ptlAgreementDispatchAfterAction = afterActionMapper.selectById(afterActionId);
-        if(ptlAgreementDispatchAfterAction != null) {
+        if(ptlAgreementDispatchAfterAction == null) {
             log.info("要删除的后置操作不存在. afterActionId=[{}]",afterActionId);
             return HttpResult.error("要删除的后置操作不存在");
         }