feat: 已推送金蝶的认领不允许作废——后端硬校验拦截,列表带出流水推送状态

This commit is contained in:
刘泉佳
2026-09-29 11:58:20 +08:00
parent 331ea0466f
commit 82fab4b76a
4 changed files with 9 additions and 6 deletions
@@ -36,6 +36,7 @@
f.summary,
f.transaction_time,
f.detail_serial_no,
f.push_status,
(SELECT GROUP_CONCAT(rcs.formal_settlement_no ORDER BY rcs.id SEPARATOR ',')
FROM blade_receipt_claim_settlement rcs
WHERE rcs.receipt_claim_id = c.id AND rcs.is_deleted = 0) AS associated_settlement_nos
@@ -203,6 +203,10 @@ public class ReceiptClaimRecordServiceImpl extends BaseServiceImpl<ReceiptClaimM
if (flow == null || Objects.equals(flow.getIsDeleted(), 1)) {
throw new ServiceException("关联收款流水不存在");
}
// 已推送金蝶的认领不允许作废:金蝶收款单已生成,冲销/调整由人工在金蝶处置
if (KingdeeBfiConstant.RECEIPT_CLAIM_PUSH_PUSHED.equals(flow.getPushStatus())) {
throw new ServiceException("该认领已推送金蝶,不允许作废,请在金蝶侧人工处置");
}
List<ReceiptClaimSettlement> relations = claimSettlementMapper.selectList(
Wrappers.<ReceiptClaimSettlement>lambdaQuery()