fix(qms): 修复COA审核查询逻辑
- 在查询条件中添加状态小于3的限制 - 防止已审核完成的记录被重复查询 - 确保审核流程的状态控制正确性
This commit is contained in:
parent
9d6a08f7dd
commit
76c3ee5a74
|
|
@ -104,6 +104,7 @@ public class QmsCoaReviewServiceImpl extends ServiceImpl<QmsCoaReviewMapper, Qms
|
|||
.eq(QmsCoaReview::getTaskId, task.getId())
|
||||
.eq(QmsCoaReview::getPurchaseNo, qo.getPurchaseNo())
|
||||
.eq(QmsCoaReview::getBatchNo, qo.getBatchNo())
|
||||
.lt(QmsCoaReview::getStatus, 3)
|
||||
.ne(QmsCoaReview::getDeleted, true)
|
||||
.exists();
|
||||
if (exists) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue