|  |  |  | 
|---|
|  |  |  | group by abd.dev_no | 
|---|
|  |  |  | </select> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <select id="getCrnAvailableOutSite" resultType="java.lang.Integer"> | 
|---|
|  |  |  | select | 
|---|
|  |  |  | abd.dev_no | 
|---|
|  |  |  | from asr_bas_devp abd | 
|---|
|  |  |  | left join asr_sta_desc asd on abd.dev_no = asd.stn_no | 
|---|
|  |  |  | where 1=1 | 
|---|
|  |  |  | and asd.type_no = #{typeNo} | 
|---|
|  |  |  | and asd.crn_no in (1,2) | 
|---|
|  |  |  | -- and abd.out_enable = 'Y' | 
|---|
|  |  |  | group by abd.dev_no | 
|---|
|  |  |  | </select> | 
|---|
|  |  |  | <select id="getShuttleAvailableOutSite" resultType="java.lang.Integer"> | 
|---|
|  |  |  | select | 
|---|
|  |  |  | abd.dev_no | 
|---|
|  |  |  | from asr_bas_devp abd | 
|---|
|  |  |  | left join asr_sta_desc asd on abd.dev_no = asd.stn_no | 
|---|
|  |  |  | where 1=1 | 
|---|
|  |  |  | and asd.type_no = #{typeNo} | 
|---|
|  |  |  | and asd.crn_no in (7) | 
|---|
|  |  |  | -- and abd.out_enable = 'Y' | 
|---|
|  |  |  | group by abd.dev_no | 
|---|
|  |  |  | </select> | 
|---|
|  |  |  | <select id="getCtuAvailableOutSite" resultType="java.lang.Integer"> | 
|---|
|  |  |  | select | 
|---|
|  |  |  | abd.dev_no | 
|---|
|  |  |  | from asr_bas_devp abd | 
|---|
|  |  |  | left join asr_sta_desc asd on abd.dev_no = asd.stn_no | 
|---|
|  |  |  | where 1=1 | 
|---|
|  |  |  | and asd.type_no = #{typeNo} | 
|---|
|  |  |  | and asd.crn_no in (8,9) | 
|---|
|  |  |  | -- and abd.out_enable = 'Y' | 
|---|
|  |  |  | group by abd.dev_no | 
|---|
|  |  |  | </select> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | </mapper> | 
|---|