Merge branch 'local_20221104' into huacheng_test
| | |
| | | .ge(ConvenientElevatingPointDO::getLat, minLng) |
| | | .le(ConvenientElevatingPointDO::getLat, maxLng) |
| | | .ge(ConvenientElevatingPointDO::getLon, minLat) |
| | | .le(ConvenientElevatingPointDO::getLon, maxLat)); |
| | | .le(ConvenientElevatingPointDO::getLon, maxLat) |
| | | .eq(ConvenientElevatingPointDO::getBusinessStatus,1)); |
| | | List<ConvenientElevatingPointVO> convenientElevatingPointVOS = new ArrayList<>(); |
| | | convenientElevatingPointDOS.forEach(f -> { |
| | | ConvenientElevatingPointVO convenientElevatingPointVO = new ConvenientElevatingPointVO(); |
| | |
| | | LEFT JOIN com_shop_flower_order csfo ON ccep.id = csfo.point_id |
| | | LEFT JOIN com_shop_flower_order_goods og ON og.order_id = csfo.id |
| | | WHERE |
| | | csfo.`status` = 1 |
| | | csfo.`status` = 1 and ccep.business_status = 1 |
| | | <if test="pageComFlowerOrderDeliveryDTO.storeId != null"> |
| | | and csfo.store_id = #{pageComFlowerOrderDeliveryDTO.storeId} |
| | | </if> |
| | |
| | | LEFT JOIN com_shop_flower_order csfo ON ccep.id = csfo.point_id |
| | | LEFT JOIN com_shop_flower_order_goods og ON og.order_id = csfo.id |
| | | WHERE |
| | | csfo.`status` = 1 |
| | | csfo.`status` = 1 and ccep.business_status = 1 |
| | | <if test="pageComFlowerOrderListDTO.storeId != null"> |
| | | and csfo.store_id = #{pageComFlowerOrderListDTO.storeId} |
| | | </if> |
| | |
| | | union all |
| | | SELECT count(1) count_num ,'kddd' as count_name FROM `com_shop_flower_order` WHERE delivery_type =2 and delete_status = 1 and pay_status = 2 and store_id = #{storeId} and `status` != 0 |
| | | union all |
| | | SELECT count(1) count_num ,'tkdd' as count_name FROM `com_shop_flower_order` WHERE delete_status = 1 and pay_status = 2 and `status` in (6,7) and store_id = #{storeId} and `status` != 0 |
| | | SELECT count(1) count_num ,'tkdd' as count_name FROM `com_shop_flower_order` WHERE delete_status = 1 and pay_status = 2 and `status` = 7 and store_id = #{storeId} and `status` != 0 |
| | | union all |
| | | SELECT IFNULL(sum(pay_amount),0) count_num ,'yysr' as count_name FROM `com_shop_flower_order` WHERE `status` not in (6,7) and store_id = #{storeId} and `status` != 0 |
| | | union all |
| | | SELECT IFNULL(sum(pay_amount),0) count_num ,'tkje' as count_name FROM `com_shop_flower_order` WHERE `status` in (6,7) and store_id = #{storeId} and `status` != 0 |
| | | SELECT IFNULL(sum(pay_amount),0) count_num ,'tkje' as count_name FROM `com_shop_flower_order` WHERE `status` =7 and store_id = #{storeId} and `status` != 0 |
| | | union all |
| | | SELECT IFNULL(sum(pay_amount),0) count_num ,'ktxje' as count_name FROM `com_shop_flower_order` WHERE `status` in (4,5) and create_at <= date_sub(now(), INTERVAL 15 DAY) and store_id = #{storeId} and `status` != 0 |
| | | |