Skip to content

Commit

Permalink
[fix] 修复mybatis-flex的queryByCodeList逻辑删除未生效问题
Browse files Browse the repository at this point in the history
  • Loading branch information
minliuhua committed Nov 25, 2024
1 parent e1f1864 commit cc8fe50
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

import com.mybatisflex.core.query.QueryWrapper;
import org.dromara.warm.flow.core.dao.FlowDefinitionDao;
import org.dromara.warm.flow.core.enums.PublishStatus;
import org.dromara.warm.flow.core.invoker.FrameInvoker;
import org.dromara.warm.flow.orm.entity.FlowDefinition;
import org.dromara.warm.flow.orm.mapper.FlowDefinitionMapper;
Expand Down Expand Up @@ -45,7 +44,7 @@ public FlowDefinition newEntity() {

@Override
public List<FlowDefinition> queryByCodeList(List<String> flowCodeList) {
QueryWrapper queryWrapper = QueryWrapper.create();
QueryWrapper queryWrapper = TenantDeleteUtil.getDefaultWrapper(newEntity());
queryWrapper.in(FlowDefinition::getFlowCode, flowCodeList);
return getMapper().selectListByQueryAs(queryWrapper, FlowDefinition.class);
}
Expand Down

0 comments on commit cc8fe50

Please sign in to comment.