ship添加receive和startReceiving checker

This commit is contained in:
lxy 2025-03-19 17:10:46 +08:00
parent 2cda2b418b
commit a2089585b8
1 changed files with 47 additions and 0 deletions

View File

@ -61,6 +61,53 @@ const checkers: Checker<EntityDict, 'ship', RuntimeCxt>[] = [
data.receiveAt = now;
}
}
},
{
entity: 'ship',
type: 'row',
action: ['startReceiving', 'succeedReceiving'],
filter: {
shipOrder$ship: {
order: {
pay$order: {
$and: [{
wpProduct: {
needReceiving: true
}
}, {
iState: {
$ne: 'closed'
}
}]
}
}
}
}
},
{
entity: 'ship',
type: 'row',
action: 'receive',
filter: {
shipOrder$ship: {
'#sqp': 'all',
order: {
pay$order: {
'#sqp': 'not in',
$and: [{
wpProduct: {
needReceiving: true
}
}, {
iState: {
$ne: 'closed'
}
}]
}
}
}
}
}
];