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