运输路线
parent
7f44aea2b5
commit
261ba3d295
|
|
@ -325,11 +325,10 @@
|
||||||
WHERE user_id = #{userId}
|
WHERE user_id = #{userId}
|
||||||
</select>
|
</select>
|
||||||
<select id="paymentContext" resultType="com.njzscloud.supervisory.order.pojo.result.PaymentContextResult">
|
<select id="paymentContext" resultType="com.njzscloud.supervisory.order.pojo.result.PaymentContextResult">
|
||||||
SELECT
|
SELECT a.id AS orderId,
|
||||||
a.id AS orderId,
|
|
||||||
a.trans_company_id AS transCompanyId,
|
a.trans_company_id AS transCompanyId,
|
||||||
a.sn,
|
a.sn,
|
||||||
a.settlement_way as oi_pay_way,
|
a.settlement_way AS oi_pay_way,
|
||||||
a.out_trade_no,
|
a.out_trade_no,
|
||||||
bc.user_id AS companyUserId,
|
bc.user_id AS companyUserId,
|
||||||
ma1.id AS companyAccountId,
|
ma1.id AS companyAccountId,
|
||||||
|
|
@ -359,18 +358,19 @@
|
||||||
</select>
|
</select>
|
||||||
<select id="gpsLastOnlineTime"
|
<select id="gpsLastOnlineTime"
|
||||||
resultType="com.njzscloud.supervisory.device.pojo.entity.DeviceLocalizerEntity">
|
resultType="com.njzscloud.supervisory.device.pojo.entity.DeviceLocalizerEntity">
|
||||||
select *
|
SELECT *
|
||||||
from device_localizer
|
FROM device_localizer
|
||||||
where terminal_id = #{gpsId}
|
WHERE terminal_id = #{gpsId}
|
||||||
and deleted = 0
|
AND deleted = 0
|
||||||
</select>
|
</select>
|
||||||
<select id="getRoute" resultType="java.lang.String">
|
<select id="getRoute" resultType="java.lang.String">
|
||||||
SELECT b.name route_name
|
SELECT b.name route_name
|
||||||
FROM order_route a
|
FROM order_route a
|
||||||
INNER JOIN order_route_detail b ON a.id = b.order_route_id
|
INNER JOIN order_route_detail b ON a.id = b.order_route_id AND b.deleted = 0
|
||||||
WHERE a.order_id = #{id}
|
WHERE a.order_id = #{id}
|
||||||
AND b.name IS NOT NULL
|
AND b.name IS NOT NULL
|
||||||
AND TRIM(b.name) != ''
|
AND TRIM(b.name) != ''
|
||||||
|
AND a.deleted = 0
|
||||||
ORDER BY b.sort, b.create_time, b.id
|
ORDER BY b.sort, b.create_time, b.id
|
||||||
</select>
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue