diff --git a/mallinkService/src/main/resources/mapper/WxCarCmdLogMapper.xml b/mallinkService/src/main/resources/mapper/WxCarCmdLogMapper.xml
index 3a7a3fe42..6ffdca2be 100644
--- a/mallinkService/src/main/resources/mapper/WxCarCmdLogMapper.xml
+++ b/mallinkService/src/main/resources/mapper/WxCarCmdLogMapper.xml
@@ -79,7 +79,7 @@
from
(
SELECT * from wx_car_cmd_log${tenantEntity.shardTableSuffix}
- ) where cmd_type=#{cmdType}
+ ) wx_car_cmd_log where cmd_type=#{cmdType}
and `tenant_id` = #{tenantId}
@@ -96,7 +96,7 @@
select id,DATE_FORMAT(DATE_ADD(create_date,INTERVAL 1 HOUR),'%H:00') create_time
from (
SELECT * from wx_car_cmd_log${tenantEntity.shardTableSuffix}
- ) where cmd_type=#{cmdType}
+ ) wx_car_cmd_log where cmd_type=#{cmdType}
and `tenant_id` = #{tenantId}
@@ -111,7 +111,7 @@
select count(id)
from (
SELECT * from wx_car_cmd_log${tenantEntity.shardTableSuffix}
- ) where cmd_type=#{cmdType}
+ ) wx_car_cmd_log where cmd_type=#{cmdType}
and `tenant_id` = #{tenantId}
@@ -126,7 +126,7 @@
select id,DATE_FORMAT(create_date,'%m/%d') create_time,CONVERT(JSON_EXTRACT(cmd_json,'$.fee'), Decimal(16,2)) fee
from (
SELECT * from wx_car_cmd_log${tenantEntity.shardTableSuffix}
- ) where cmd_type=#{cmdType}
+ ) wx_car_cmd_log where cmd_type=#{cmdType}
and `tenant_id` = #{tenantId}
diff --git a/mallinkService/src/main/resources/mapper/WxCouponActionLogMapper.xml b/mallinkService/src/main/resources/mapper/WxCouponActionLogMapper.xml
index 0464b9faf..d76397a28 100644
--- a/mallinkService/src/main/resources/mapper/WxCouponActionLogMapper.xml
+++ b/mallinkService/src/main/resources/mapper/WxCouponActionLogMapper.xml
@@ -137,7 +137,7 @@
) as orderSendCount
from (
SELECT * from wx_coupon_action_log${tenantEntity.shardTableSuffix}
- )
+ ) wx_coupon_action_log
where channel_type in (2,3,4,5)
and `tenant_id` = #{tenantId}
@@ -155,7 +155,7 @@
select create_time_md as xTime, channel_type, count(create_time_md + '' + channel_type) as count
from (
SELECT * from wx_coupon_action_log${tenantEntity.shardTableSuffix}
- )
+ ) wx_coupon_action_log
where channel_type in (2,3,4,5)
and `tenant_id` = #{tenantId}
@@ -209,7 +209,7 @@
Count(*) as sendCount
from (
SELECT * from wx_coupon_action_log${tenantEntity.shardTableSuffix}
- )
+ ) wx_coupon_action_log
where channel_type=#{channelType}
and `tenant_id` = #{tenantId}
@@ -256,7 +256,7 @@