|
|
@@ -221,16 +221,19 @@ void checkUnpaidThirdPartyOrders() {
|
|
|
entity.data.data.forEach((element) {
|
|
|
myShopUIDs.add(element.shopUid);
|
|
|
});
|
|
|
+ var conditions = [
|
|
|
+ "state == $orderStateUnpaid",
|
|
|
+ 'buyer_uid==0',
|
|
|
+ 'buyer_name LIKE ${MyCookie().getName()}',
|
|
|
+ ];
|
|
|
+ if(myShopUIDs.length>0){
|
|
|
+ conditions.add('shop_uid IN $myShopUIDs');
|
|
|
+ }
|
|
|
MyDio().query({
|
|
|
"key": "order",
|
|
|
"filters": {
|
|
|
"or": true,
|
|
|
- "conditions": [
|
|
|
- "state == $orderStateUnpaid",
|
|
|
- 'buyer_uid==0',
|
|
|
- 'buyer_name LIKE ${MyCookie().getName()}',
|
|
|
- 'shop_uid IN $myShopUIDs'
|
|
|
- ],
|
|
|
+ "conditions": conditions,
|
|
|
"filters": [
|
|
|
{
|
|
|
"conditions": [
|