| | |
| | | <!--根据指定条件获取控制器记录--> |
| | | <select id="selectControllers" resultType="com.dy.pipIrrGlobal.voPr.VoController"> |
| | | SELECT |
| | | CAST(con.id AS char) AS id, |
| | | CAST(rc.id AS char) AS id, |
| | | con.rtuAddr AS rtuAddr, |
| | | inta.name AS intakeName, |
| | | con.protocol, |
| | |
| | | where task_id = #{taskId,jdbcType=BIGINT} |
| | | </select> |
| | | |
| | | <select id="selectAllRtuAddrByTask" parameterType="java.lang.Long" resultType="java.lang.String"> |
| | | <!--@mbg.generated--> |
| | | select |
| | | rtu_addr |
| | | from ug_rtu_controller |
| | | where task_id = #{taskId,jdbcType=BIGINT} |
| | | </select> |
| | | |
| | | <select id="selectCountByTaskAndCon" resultType="java.lang.Long"> |
| | | <!--@mbg.generated--> |
| | | select |
| | |
| | | delete from ug_rtu_controller |
| | | where id = #{id,jdbcType=BIGINT} |
| | | </delete> |
| | | <delete id="deleteByTaskId" parameterType="java.lang.Long"> |
| | | delete from ug_rtu_controller |
| | | where task_id = #{taskId,jdbcType=BIGINT} |
| | | </delete> |
| | | |
| | | <insert id="insert" parameterType="com.dy.pipIrrGlobal.pojoRm.UgRtuController"> |
| | | <!--@mbg.generated--> |
| | | insert into ug_rtu_controller (id, task_id, controller_id, |