mybatis if-else用法
<select id="queryRuralCodes" resultType="string" parameterType="map" useCache="false"> select id from <choose> <when test="type == '1'.toString()"> t1 </when> <otherwise> t0 </otherwise> </choose> </select>
<select id="queryRuralCodes" resultType="string" parameterType="map" useCache="false"> select id from <choose> <when test="type == '1'.toString()"> t1 </when> <otherwise> t0 </otherwise> </choose> </select>