|
@ -33,29 +33,29 @@ |
|
|
sch_base_vehiclematerialgroup.priority |
|
|
sch_base_vehiclematerialgroup.priority |
|
|
FROM |
|
|
FROM |
|
|
sch_base_point |
|
|
sch_base_point |
|
|
inner JOIN sch_base_vehiclematerialgroup ON sch_base_point.vehicle_code = |
|
|
INNER JOIN sch_base_vehiclematerialgroup |
|
|
sch_base_vehiclematerialgroup.vehicle_code |
|
|
ON sch_base_point.vehicle_code = sch_base_vehiclematerialgroup.vehicle_code |
|
|
WHERE |
|
|
WHERE |
|
|
is_lock = FALSE |
|
|
is_lock = FALSE |
|
|
AND sch_base_point.vehicle_code IS NOT NULL |
|
|
AND sch_base_point.vehicle_code IS NOT NULL |
|
|
and sch_base_point.point_status = '2' |
|
|
AND sch_base_point.point_status = '2' |
|
|
and sch_base_vehiclematerialgroup.is_delete = false |
|
|
AND sch_base_vehiclematerialgroup.is_delete = FALSE |
|
|
<if test="vehicle_type != null and vehicle_type != ''"> |
|
|
<if test="vehicle_type != null and vehicle_type != ''"> |
|
|
and sch_base_point.can_vehicle_type = #{vehicle_type} |
|
|
AND sch_base_point.can_vehicle_type = #{vehicle_type} |
|
|
</if> |
|
|
</if> |
|
|
<if test="due_date != null and due_date != ''"> |
|
|
<if test="due_date != null and due_date != ''"> |
|
|
and #{due_date} > sch_base_vehiclematerialgroup.due_date |
|
|
AND #{due_date} > sch_base_vehiclematerialgroup.due_date |
|
|
</if> |
|
|
</if> |
|
|
<if test="region_code != null and region_code != ''"> |
|
|
<if test="region_code != null and region_code != ''"> |
|
|
AND sch_base_vehiclematerialgroup.region_code = #{region_code} |
|
|
AND sch_base_vehiclematerialgroup.region_code = #{region_code} |
|
|
</if> |
|
|
</if> |
|
|
<if test="due_date == null"> |
|
|
|
|
|
and sch_base_vehiclematerialgroup.due_date IS NULL |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="region_code == null"> |
|
|
<if test="region_code == null"> |
|
|
AND sch_base_vehiclematerialgroup.region_code IS NULL |
|
|
AND sch_base_vehiclematerialgroup.region_code = '' |
|
|
AND sch_base_vehiclematerialgroup.create_name = 'Sorting' |
|
|
AND sch_base_vehiclematerialgroup.create_name = 'Sorting' |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="due_date == null"> |
|
|
|
|
|
AND sch_base_vehiclematerialgroup.due_date IS NULL |
|
|
|
|
|
</if> |
|
|
</select> |
|
|
</select> |
|
|
|
|
|
|
|
|
<select id="selectByRegionCode" resultType="java.lang.String"> |
|
|
<select id="selectByRegionCode" resultType="java.lang.String"> |
|
|