|
|
|
@@ -124,7 +124,7 @@ |
|
|
|
|
|
|
|
<select id="queryTenantIdBySynId" parameterType="hashmap" resultType="String"> |
|
|
|
select `tenant_id` from wx_car_cmd_log |
|
|
|
where cmd_type = 601 and json_extract(cmd_json, "$.synId") = #{synId} |
|
|
|
where cmd_type = 601 and syn_id = #{synId} |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="countPaidInfoByOrderId" parameterType="hashmap" resultType="Long"> |
|
|
|
@@ -135,14 +135,14 @@ |
|
|
|
and tenant_id = #{tenantId} |
|
|
|
</if> |
|
|
|
<if test=" null != orderId"> |
|
|
|
and json_extract(cmd_json, "$.orderId") = #{orderId} |
|
|
|
and order_id = #{orderId} |
|
|
|
</if> |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="countBySynId" parameterType="hashmap" resultType="Long"> |
|
|
|
select count(id) |
|
|
|
from wx_car_cmd_log |
|
|
|
where |
|
|
|
where 1=1 |
|
|
|
<if test=" null != tenantId"> |
|
|
|
and tenant_id = #{tenantId} |
|
|
|
</if> |
|
|
|
@@ -150,7 +150,7 @@ |
|
|
|
and cmd_type = #{cmdType} |
|
|
|
</if> |
|
|
|
<if test=" null != synId"> |
|
|
|
and json_extract(cmd_json, "$.synId") = #{synId} |
|
|
|
and syn_id = #{synId} |
|
|
|
</if> |
|
|
|
</select> |
|
|
|
|
|
|
|
|