|  |  | 
 |  |  |     limit 0,1 | 
 |  |  |   </select> | 
 |  |  |  | 
 |  |  |  | 
 |  |  |   <!--根据指定条件获取记录--> | 
 |  |  |   <select id="selectOneBySoilId" resultType="com.dy.pipIrrGlobal.voRm.VoSoilDay"> | 
 |  |  |     select | 
 |  |  | 
 |  |  |     limit 0,1 | 
 |  |  |   </select> | 
 |  |  |  | 
 |  |  |  | 
 |  |  |   <!--根据指定条件获取记录--> | 
 |  |  |   <select id="selectOneMonthBySoilId" resultType="com.dy.pipIrrGlobal.voRm.VoSoilDay"> | 
 |  |  |     select | 
 |  |  |     <include refid="Part_Column_List" /> | 
 |  |  |     from rm_soil_day | 
 |  |  |     <where> | 
 |  |  |       <if test="soilId != null"> | 
 |  |  |         and soil_id = #{soilId} | 
 |  |  |       </if> | 
 |  |  |       <if test="ymdStart != null"> | 
 |  |  |         and ymd >= #{ymdStart} | 
 |  |  |       </if> | 
 |  |  |       <if test="ymdEnd != null"> | 
 |  |  |         and ymd <= #{ymdEnd} | 
 |  |  |       </if> | 
 |  |  |     </where> | 
 |  |  |   </select> | 
 |  |  |  | 
 |  |  |   <!--根据指定条件查询记录数量--> | 
 |  |  |   <select id="selectCount" resultType="java.lang.Long"> |