|
|
|
@ -5,14 +5,14 @@
@@ -5,14 +5,14 @@
|
|
|
|
|
<select id="getTaskPresetPointByCourierUserId" parameterType="String" resultType="MapLogisticPoint"> |
|
|
|
|
select * |
|
|
|
|
from common_map_logistic_point lp |
|
|
|
|
where (select count(1) from common_map_task_preset tp where lp.map_task_id != tp.id) = 0 |
|
|
|
|
where (select count(1) from common_map_task_preset tp where lp.map_task_id = tp.id) > 0 |
|
|
|
|
and lp.courier_user_id = #{courierUserId} |
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
<select id="getTaskPointByCourierUserId" parameterType="String" resultType="MapLogisticPoint"> |
|
|
|
|
select * |
|
|
|
|
from common_map_logistic_point lp |
|
|
|
|
where (select count(1) from common_map_task t where lp.map_task_id != t.id) = 0 |
|
|
|
|
where (select count(1) from common_map_task t where lp.map_task_id = t.id) > 0 |
|
|
|
|
and lp.courier_user_id = #{courierUserId} |
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
|