|
@ -319,7 +319,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
where parent_id!=0 |
|
|
where parent_id!=0 |
|
|
</select> |
|
|
</select> |
|
|
<select id="selectOrganizationEmployees" resultType="java.util.HashMap"> |
|
|
<select id="selectOrganizationEmployees" resultType="java.util.HashMap"> |
|
|
select id, name,contact_number contactNumber from dc_employees where organization_id=#{organizationId} and employees_type=1 |
|
|
select id, name,contact_number contactNumber from dc_employees where organization_id=#{organizationId} |
|
|
</select> |
|
|
</select> |
|
|
<select id="selectShifts" resultType="java.util.HashMap"> |
|
|
<select id="selectShifts" resultType="java.util.HashMap"> |
|
|
select shifts.scheduling,employees.name shiftsName,employees.contact_number shiftsNumber from dc_shifts as shifts |
|
|
select shifts.scheduling,employees.name shiftsName,employees.contact_number shiftsNumber from dc_shifts as shifts |
|
@ -380,7 +380,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
where employees.organization_id = #{organizationId} |
|
|
where employees.organization_id = #{organizationId} |
|
|
and respurce.dispatch_type = 1 |
|
|
and respurce.dispatch_type = 1 |
|
|
and path.event_id = #{eventId}) as t on t.id = dc_employees.id |
|
|
and path.event_id = #{eventId}) as t on t.id = dc_employees.id |
|
|
where organization_id = #{organizationId} and dc_employees.employees_type=1 |
|
|
where organization_id = #{organizationId} |
|
|
</select> |
|
|
</select> |
|
|
<select id="selectVehiclesDispatch" resultType="java.util.HashMap"> |
|
|
<select id="selectVehiclesDispatch" resultType="java.util.HashMap"> |
|
|
select DISTINCT dc_vehicles.id, |
|
|
select DISTINCT dc_vehicles.id, |
|
@ -427,9 +427,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
<select id="vehiclesType" resultType="java.lang.String"> |
|
|
<select id="vehiclesType" resultType="java.lang.String"> |
|
|
select vehicle_type from dc_vehicles where id=#{id} |
|
|
select vehicle_type from dc_vehicles where id=#{id} |
|
|
</select> |
|
|
</select> |
|
|
<select id="selectTrafficPolice" resultType="java.util.HashMap"> |
|
|
|
|
|
select name,contact_number contactNumber from dc_employees where organization_id=#{organizationId} and employees_type=2 |
|
|
|
|
|
</select> |
|
|
|
|
|
<select id="selectDispatchId" resultType="java.util.HashMap"> |
|
|
<select id="selectDispatchId" resultType="java.util.HashMap"> |
|
|
select id dispatchId from dc_dispatch where event_id=#{eventId} |
|
|
select id dispatchId from dc_dispatch where event_id=#{eventId} |
|
|
</select> |
|
|
</select> |
|
|