fix: 修复批量执行按钮无效的bug

This commit is contained in:
xiaojunnuo
2026-03-20 12:08:55 +08:00
parent 3332d2288f
commit 49703f08e5

View File

@@ -1071,6 +1071,7 @@ export class PipelineService extends BaseService<PipelineEntity> {
if (!isPlus()) {
throw new NeedVIPException("此功能需要升级专业版");
}
//允许管理员修改userId=null
const query: any = {}
if (userId && userId > 0) {
query.userId = userId;
@@ -1123,6 +1124,7 @@ export class PipelineService extends BaseService<PipelineEntity> {
if (!isPlus()) {
throw new NeedVIPException("此功能需要升级专业版");
}
//允许管理员修改userId=null
const query: any = {}
if (userId && userId > 0) {
query.userId = userId;
@@ -1161,9 +1163,9 @@ export class PipelineService extends BaseService<PipelineEntity> {
if (!isPlus()) {
throw new NeedVIPException("此功能需要升级专业版");
}
if (userId == null || ids.length === 0) {
return;
//允许userId为空为空则为管理员触发
if (ids.length === 0) {
throw new Error("参数错误 ids 不能为空");
}
const where: any = {
id: In(ids),