Compare commits

...

4 Commits

Author SHA1 Message Date
芋道源码
7295b6a10d
!122 【修复】多租户使用同一个流程标识key时查询报错
Merge pull request !122 from 今晚打老虎/master-jdk17
2024-06-22 06:24:20 +00:00
芋道源码
7722162bf3
!120 修复后台获取商品 SPU 分页列表数据时,数据会出现错乱问题。
Merge pull request !120 from dongdong.xiang/master_jdk17_page_v20240618
2024-06-22 00:43:25 +00:00
fengjiajie
42634c0e3f fix(bpm): 多租户使用同一个流程标识key时查询报错 2024-06-21 14:59:33 +08:00
dongdong.xiang
634ef9b5a8 bug修复 后台获取商品 SPU 分页列表数据时,数据会出现错乱问题 2024-06-18 22:16:53 +08:00
3 changed files with 9 additions and 3 deletions

View File

@ -262,7 +262,9 @@ public class BpmModelServiceImpl implements BpmModelService {
}
private Model getModelByKey(String key) {
return repositoryService.createModelQuery().modelKey(key).singleResult();
return repositoryService.createModelQuery()
.modelTenantId(FlowableUtils.getTenantId())
.modelKey(key).singleResult();
}
@Override

View File

@ -79,7 +79,9 @@ public class BpmProcessDefinitionServiceImpl implements BpmProcessDefinitionServ
@Override
public ProcessDefinition getActiveProcessDefinition(String key) {
return repositoryService.createProcessDefinitionQuery().processDefinitionKey(key).active().singleResult();
return repositoryService.createProcessDefinitionQuery()
.processDefinitionTenantId(FlowableUtils.getTenantId())
.processDefinitionKey(key).active().singleResult();
}
@Override
@ -172,6 +174,7 @@ public class BpmProcessDefinitionServiceImpl implements BpmProcessDefinitionServ
@Override
public PageResult<ProcessDefinition> getProcessDefinitionPage(BpmProcessDefinitionPageReqVO pageVO) {
ProcessDefinitionQuery query = repositoryService.createProcessDefinitionQuery();
query.processDefinitionTenantId(FlowableUtils.getTenantId());
if (StrUtil.isNotBlank(pageVO.getKey())) {
query.processDefinitionKey(pageVO.getKey());
}

View File

@ -30,7 +30,8 @@ public interface ProductSpuMapper extends BaseMapperX<ProductSpuDO> {
.likeIfPresent(ProductSpuDO::getName, reqVO.getName())
.eqIfPresent(ProductSpuDO::getCategoryId, reqVO.getCategoryId())
.betweenIfPresent(ProductSpuDO::getCreateTime, reqVO.getCreateTime())
.orderByDesc(ProductSpuDO::getSort);
.orderByDesc(ProductSpuDO::getSort)
.orderByDesc(ProductSpuDO::getId);
appendTabQuery(tabType, queryWrapper);
return selectPage(reqVO, queryWrapper);
}