工单负责人驳回修改
This commit is contained in:
parent
ad256a82c2
commit
40d34676ed
|
|
@ -382,6 +382,9 @@ public class QmsIssueTicketControllerService {
|
||||||
issueTicketToDoService.save(todoItem);
|
issueTicketToDoService.save(todoItem);
|
||||||
} else {
|
} else {
|
||||||
// 通过:按现有流程处理
|
// 通过:按现有流程处理
|
||||||
|
VUtil.trueThrowBusinessError(CollectionUtil.isEmpty(request.getHandlerUserIds()))
|
||||||
|
.throwMessage("处理人列表不能为空");
|
||||||
|
|
||||||
// 校验不能分配给自己
|
// 校验不能分配给自己
|
||||||
if (request.getHandlerUserIds().contains(currentUserId)) {
|
if (request.getHandlerUserIds().contains(currentUserId)) {
|
||||||
throw new NflgException(STATE.BusinessError, "不能将工单分配给自己");
|
throw new NflgException(STATE.BusinessError, "不能将工单分配给自己");
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,5 @@
|
||||||
package com.nflg.wms.common.pojo.qo;
|
package com.nflg.wms.common.pojo.qo;
|
||||||
|
|
||||||
import jakarta.validation.constraints.NotEmpty;
|
|
||||||
import jakarta.validation.constraints.NotNull;
|
import jakarta.validation.constraints.NotNull;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
|
|
@ -21,7 +20,6 @@ public class QmsIssueTicketDispatchMultipleQO {
|
||||||
/**
|
/**
|
||||||
* 处理人ID列表
|
* 处理人ID列表
|
||||||
*/
|
*/
|
||||||
@NotEmpty(message = "处理人列表不能为空")
|
|
||||||
private List<Long> handlerUserIds;
|
private List<Long> handlerUserIds;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue