fix(qms): 修复COA审核查询逻辑

- 在查询条件中添加状态小于3的限制
- 防止已审核完成的记录被重复查询
- 确保审核流程的状态控制正确性
This commit is contained in:
曹鹏飞 2026-06-10 14:51:59 +08:00
parent 9d6a08f7dd
commit 76c3ee5a74
1 changed files with 1 additions and 0 deletions

View File

@ -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) {