|
@@ -170,12 +170,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<!-- 物流轨迹省份查询流出-->
|
|
<!-- 物流轨迹省份查询流出-->
|
|
|
<select id="queryLogisticsTrajectoryOutflow" parameterType="java.util.Map" resultType="java.util.HashMap" >
|
|
<select id="queryLogisticsTrajectoryOutflow" parameterType="java.util.Map" resultType="java.util.HashMap" >
|
|
|
SELECT
|
|
SELECT
|
|
|
- receiver_province provinceName,
|
|
|
|
|
- lng,
|
|
|
|
|
- lat,count(1) num
|
|
|
|
|
|
|
+ d.receiver_province provinceName,
|
|
|
|
|
+ b.lng,
|
|
|
|
|
+ b.lat,
|
|
|
|
|
+ count(1) num,
|
|
|
|
|
+ IFNULL(SUM(IFNULL(c.adjust_amount, c.rate_amount)), 0.00) amt
|
|
|
FROM
|
|
FROM
|
|
|
biz_waybill_order d
|
|
biz_waybill_order d
|
|
|
LEFT JOIN sys_city b ON d.receiver_province = b.NAME
|
|
LEFT JOIN sys_city b ON d.receiver_province = b.NAME
|
|
|
|
|
+ LEFT JOIN biz_waybill_cost_details c ON d.waybill_id = c.waybill_id
|
|
|
WHERE
|
|
WHERE
|
|
|
b.LEVEL = 0
|
|
b.LEVEL = 0
|
|
|
and d.order_status != 6
|
|
and d.order_status != 6
|
|
@@ -195,17 +198,20 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
and d.sender_province = #{searchProvince}
|
|
and d.sender_province = #{searchProvince}
|
|
|
</if>
|
|
</if>
|
|
|
${params.dataScope}
|
|
${params.dataScope}
|
|
|
- group by receiver_province
|
|
|
|
|
|
|
+ group by d.receiver_province
|
|
|
</select>
|
|
</select>
|
|
|
<!-- 物流轨迹省份查询流入-->
|
|
<!-- 物流轨迹省份查询流入-->
|
|
|
<select id="queryLogisticsTrajectoryinflow" parameterType="java.util.Map" resultType="java.util.HashMap" >
|
|
<select id="queryLogisticsTrajectoryinflow" parameterType="java.util.Map" resultType="java.util.HashMap" >
|
|
|
SELECT
|
|
SELECT
|
|
|
- sender_province provinceName,
|
|
|
|
|
- lng,
|
|
|
|
|
- lat ,count(1) num
|
|
|
|
|
|
|
+ d.sender_province provinceName,
|
|
|
|
|
+ b.lng,
|
|
|
|
|
+ b.lat,
|
|
|
|
|
+ count(1) num,
|
|
|
|
|
+ IFNULL(SUM(IFNULL(c.adjust_amount, c.rate_amount)), 0.00) amt
|
|
|
FROM
|
|
FROM
|
|
|
biz_waybill_order d
|
|
biz_waybill_order d
|
|
|
LEFT JOIN sys_city b ON d.sender_province = b.NAME
|
|
LEFT JOIN sys_city b ON d.sender_province = b.NAME
|
|
|
|
|
+ LEFT JOIN biz_waybill_cost_details c ON d.waybill_id = c.waybill_id
|
|
|
WHERE
|
|
WHERE
|
|
|
b.LEVEL = 0
|
|
b.LEVEL = 0
|
|
|
and d.order_status != 6
|
|
and d.order_status != 6
|
|
@@ -225,7 +231,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
and d.receiver_province = #{searchProvince}
|
|
and d.receiver_province = #{searchProvince}
|
|
|
</if>
|
|
</if>
|
|
|
${params.dataScope}
|
|
${params.dataScope}
|
|
|
- group by sender_province
|
|
|
|
|
|
|
+ group by d.sender_province
|
|
|
|
|
|
|
|
</select>
|
|
</select>
|
|
|
<!-- 按照快递快运区分统计-->
|
|
<!-- 按照快递快运区分统计-->
|