| | |
| | | |
| | | </resultMap> |
| | | |
| | | <!-- todo:luxiaotao asd.crn_no = alm.crn_no --> |
| | | <select id="queryOutStaNosByLocNo" resultType="java.lang.Integer"> |
| | | select |
| | | distinct asd.stn_no |
| | |
| | | <if test="typeNo != null and typeNo !=''"> |
| | | and asd.type_no = #{typeNo} |
| | | </if> |
| | | </select> |
| | | |
| | | <select id="queryOutStaNosByCrnNo" resultType="java.lang.Integer"> |
| | | select |
| | | distinct asd.stn_no |
| | | from asr_sta_desc asd |
| | | where 1=1 |
| | | and asd.crn_no = #{crnNo} |
| | | and asd.type_no = #{typeNo} |
| | | </select> |
| | | |
| | | <select id="queryCrnStn" resultMap="BaseResultMap"> |
| | | select top 1 * from asr_sta_desc |
| | | where 1=1 |
| | | and crn_no = #{crnNo} |
| | | and type_no = 1 |
| | | </select> |
| | | |
| | | </mapper> |