| | |
| | | <!--@mbg.generated--> |
| | | id, monitoringId, flowmeterId, operateType, remarks, `operator`, operateDt |
| | | </sql> |
| | | <sql id="Base_Column_List_NoId"> |
| | | <!--@mbg.generated--> |
| | | monitoringId, flowmeterId, operateType, remarks, `operator`, operateDt |
| | | </sql> |
| | | <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> |
| | | <!--@mbg.generated--> |
| | | select |
| | |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | <!--根据 流量监测站编号 获取 绑定记录 按操作时间降序--> |
| | | <select id="getBingRecordsByMonitoringId" parameterType="_long" resultType="java.util.Map"> |
| | | select (@i:=@i+1) AS id, |
| | | <include refid="Base_Column_List_NoId" /> |
| | | from pr_monitoring_flowmeter |
| | | ,(SELECT @i:=0) AS itable |
| | | where |
| | | monitoringId=#{monitoringId,jdbcType=BIGINT} |
| | | order by operateDt desc |
| | | </select> |
| | | </mapper> |