|  |  |  | 
|---|
|  |  |  | from pr_st_manure | 
|---|
|  |  |  | where deleted != 1 ; | 
|---|
|  |  |  | </select> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <select id="selectOne" parameterType="java.lang.Long" resultType="com.dy.pipIrrGlobal.voPr.VoManure"> | 
|---|
|  |  |  | <!--@mbg.generated--> | 
|---|
|  |  |  | SELECT tb.id, | 
|---|
|  |  |  | tb.fbox_id AS fboxId, | 
|---|
|  |  |  | tb.`no`, | 
|---|
|  |  |  | tb.`name`, | 
|---|
|  |  |  | tb.lng, | 
|---|
|  |  |  | tb.lat, | 
|---|
|  |  |  | tb.remark | 
|---|
|  |  |  | FROM pr_st_manure tb | 
|---|
|  |  |  | where id = #{id,jdbcType=BIGINT} | 
|---|
|  |  |  | </select> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <!--根据指定条件查询总数--> | 
|---|
|  |  |  | <select id="totalCount" parameterType="java.util.Map" resultType="java.lang.Long"> | 
|---|
|  |  |  | SELECT COUNT(*) AS recordCount | 
|---|
|  |  |  | FROM pr_st_manure tb | 
|---|
|  |  |  | <where> | 
|---|
|  |  |  | tb.deleted != 1 | 
|---|
|  |  |  | <if test="name != null and name != ''"> | 
|---|
|  |  |  | AND tb.name LIKE CONCAT('%', #{name}, '%') | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | </where> | 
|---|
|  |  |  | </select> | 
|---|
|  |  |  | <!--根据指定条件查询--> | 
|---|
|  |  |  | <select id="selectSome" parameterType="java.util.Map" resultType="com.dy.pipIrrGlobal.voPr.VoManure"> | 
|---|
|  |  |  | SELECT tb.id, | 
|---|
|  |  |  | tb.fbox_id AS fboxId, | 
|---|
|  |  |  | tb.`no`, | 
|---|
|  |  |  | tb.`name`, | 
|---|
|  |  |  | tb.lng, | 
|---|
|  |  |  | tb.lat, | 
|---|
|  |  |  | tb.remark | 
|---|
|  |  |  | FROM pr_st_manure tb | 
|---|
|  |  |  | <where> | 
|---|
|  |  |  | tb.deleted != 1 | 
|---|
|  |  |  | <if test="name != null and name != ''"> | 
|---|
|  |  |  | AND tb.name LIKE CONCAT('%', #{name}, '%') | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | </where> | 
|---|
|  |  |  | ORDER BY tb.id DESC | 
|---|
|  |  |  | <trim prefix="limit "> | 
|---|
|  |  |  | <if test="start != null and count != null"> | 
|---|
|  |  |  | #{start,javaType=Integer,jdbcType=INTEGER}, #{count,javaType=Integer,jdbcType=INTEGER} | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | </trim> | 
|---|
|  |  |  | </select> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <!--根据FBox序列号得到实体列表--> | 
|---|
|  |  |  | <select id="selectStPoByFBoxIdAndNo" resultMap="BaseResultMap"> | 
|---|
|  |  |  | select | 
|---|
|  |  |  | <include refid="part_Column_List" /> | 
|---|
|  |  |  | FROM pr_st_manure | 
|---|
|  |  |  | WHERE deleted != 1 AND fbox_id=#{fbox_id,jdbcType=VARCHAR} AND no=#{no,jdbcType=INTEGER} | 
|---|
|  |  |  | </select> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> | 
|---|
|  |  |  | <!--@mbg.generated--> | 
|---|
|  |  |  | delete from pr_st_manure | 
|---|