ship添加receive和startReceiving checker
This commit is contained in:
parent
2cda2b418b
commit
a2089585b8
|
|
@ -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'
|
||||
}
|
||||
}]
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
];
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue