| | |
| | | </select> |
| | | |
| | | <!--根据控制器地址获取控制器列表--> |
| | | <select id="getControllersByRtuAddrAndIntakeNotNull" parameterType="java.lang.String" resultMap="PartResultMap"> |
| | | SELECT |
| | | <include refid="Part_Column_List"> |
| | | </include> |
| | | FROM pr_controller WHERE deleted = 0 AND intakeId is not null AND rtuAddr=#{rtuAddr,jdbcType=VARCHAR} |
| | | <select id="getControllersByRtuAddrAndIntakeNotNull" parameterType="java.lang.String" resultType="com.dy.pipIrrGlobal.pojoPr.PrController"> |
| | | SELECT tb.id id, |
| | | tb.rtuAddr rtuAddr, |
| | | tb.intakeId intakeId, |
| | | itb.name intakeName |
| | | FROM pr_controller tb |
| | | INNER JOIN pr_intake itb on tb.intakeId=itb.id |
| | | WHERE deleted = 0 AND intakeId is not null AND rtuAddr=#{rtuAddr,jdbcType=VARCHAR} |
| | | </select> |
| | | |
| | | <!--根据控制器编号逻辑删除控制--> |