提升机调度相关逻辑
This commit is contained in:
163
ruoyi-admin/src/main/resources/mapper/device/DeviceTsjMapper.xml
Normal file
163
ruoyi-admin/src/main/resources/mapper/device/DeviceTsjMapper.xml
Normal file
@@ -0,0 +1,163 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.device.tsj.mapper.DeviceTsjMapper">
|
||||
|
||||
<resultMap type="DeviceTsj" id="DeviceTsjResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="name" column="name" />
|
||||
<result property="ip" column="ip" />
|
||||
<result property="port" column="port" />
|
||||
<result property="plcDbReadAddress" column="plc_db_read_address" />
|
||||
<result property="plcDbWriteAddress" column="plc_db_write_address" />
|
||||
<result property="rwh" column="rwh" />
|
||||
<result property="jdbz" column="jdbz" />
|
||||
<result property="sbzt" column="sbzt" />
|
||||
<result property="czfs" column="czfs" />
|
||||
<result property="yxxf" column="yxxf" />
|
||||
<result property="yph" column="yph" />
|
||||
<result property="ylh" column="ylh" />
|
||||
<result property="ych" column="ych" />
|
||||
<result property="mbph" column="mbph" />
|
||||
<result property="mblh" column="mblh" />
|
||||
<result property="mbch" column="mbch" />
|
||||
<result property="xtxh" column="xtxh" />
|
||||
<result property="dqcs" column="dqcs" />
|
||||
<result property="hczt" column="hczt" />
|
||||
<result property="spare1" column="spare1" />
|
||||
<result property="spare2" column="spare2" />
|
||||
<result property="spare3" column="spare3" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectDeviceTsjVo">
|
||||
select id, name, ip, port, plc_db_read_address, plc_db_write_address, rwh, jdbz, sbzt, czfs, yxxf, yph, ylh, ych, mbph, mblh, mbch, xtxh, dqcs, hczt, spare1, spare2, spare3 from device_tsj
|
||||
</sql>
|
||||
|
||||
<select id="selectDeviceTsjList" parameterType="DeviceTsj" resultMap="DeviceTsjResult">
|
||||
<include refid="selectDeviceTsjVo"/>
|
||||
<where>
|
||||
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
|
||||
<if test="ip != null and ip != ''"> and ip = #{ip}</if>
|
||||
<if test="port != null and port != ''"> and port = #{port}</if>
|
||||
<if test="plcDbReadAddress != null and plcDbReadAddress != ''"> and plc_db_read_address = #{plcDbReadAddress}</if>
|
||||
<if test="plcDbWriteAddress != null and plcDbWriteAddress != ''"> and plc_db_write_address = #{plcDbWriteAddress}</if>
|
||||
<if test="rwh != null "> and rwh = #{rwh}</if>
|
||||
<if test="jdbz != null "> and jdbz = #{jdbz}</if>
|
||||
<if test="sbzt != null "> and sbzt = #{sbzt}</if>
|
||||
<if test="czfs != null "> and czfs = #{czfs}</if>
|
||||
<if test="yxxf != null "> and yxxf = #{yxxf}</if>
|
||||
<if test="yph != null "> and yph = #{yph}</if>
|
||||
<if test="ylh != null "> and ylh = #{ylh}</if>
|
||||
<if test="ych != null "> and ych = #{ych}</if>
|
||||
<if test="mbph != null "> and mbph = #{mbph}</if>
|
||||
<if test="mblh != null "> and mblh = #{mblh}</if>
|
||||
<if test="mbch != null "> and mbch = #{mbch}</if>
|
||||
<if test="xtxh != null "> and xtxh = #{xtxh}</if>
|
||||
<if test="dqcs != null "> and dqcs = #{dqcs}</if>
|
||||
<if test="hczt != null "> and hczt = #{hczt}</if>
|
||||
<if test="spare1 != null "> and spare1 = #{spare1}</if>
|
||||
<if test="spare2 != null "> and spare2 = #{spare2}</if>
|
||||
<if test="spare3 != null "> and spare3 = #{spare3}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectDeviceTsjById" parameterType="Long" resultMap="DeviceTsjResult">
|
||||
<include refid="selectDeviceTsjVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertDeviceTsj" parameterType="DeviceTsj">
|
||||
insert into device_tsj
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="name != null">name,</if>
|
||||
<if test="ip != null">ip,</if>
|
||||
<if test="port != null">port,</if>
|
||||
<if test="plcDbReadAddress != null">plc_db_read_address,</if>
|
||||
<if test="plcDbWriteAddress != null">plc_db_write_address,</if>
|
||||
<if test="rwh != null">rwh,</if>
|
||||
<if test="jdbz != null">jdbz,</if>
|
||||
<if test="sbzt != null">sbzt,</if>
|
||||
<if test="czfs != null">czfs,</if>
|
||||
<if test="yxxf != null">yxxf,</if>
|
||||
<if test="yph != null">yph,</if>
|
||||
<if test="ylh != null">ylh,</if>
|
||||
<if test="ych != null">ych,</if>
|
||||
<if test="mbph != null">mbph,</if>
|
||||
<if test="mblh != null">mblh,</if>
|
||||
<if test="mbch != null">mbch,</if>
|
||||
<if test="xtxh != null">xtxh,</if>
|
||||
<if test="dqcs != null">dqcs,</if>
|
||||
<if test="hczt != null">hczt,</if>
|
||||
<if test="spare1 != null">spare1,</if>
|
||||
<if test="spare2 != null">spare2,</if>
|
||||
<if test="spare3 != null">spare3,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
<if test="name != null">#{name},</if>
|
||||
<if test="ip != null">#{ip},</if>
|
||||
<if test="port != null">#{port},</if>
|
||||
<if test="plcDbReadAddress != null">#{plcDbReadAddress},</if>
|
||||
<if test="plcDbWriteAddress != null">#{plcDbWriteAddress},</if>
|
||||
<if test="rwh != null">#{rwh},</if>
|
||||
<if test="jdbz != null">#{jdbz},</if>
|
||||
<if test="sbzt != null">#{sbzt},</if>
|
||||
<if test="czfs != null">#{czfs},</if>
|
||||
<if test="yxxf != null">#{yxxf},</if>
|
||||
<if test="yph != null">#{yph},</if>
|
||||
<if test="ylh != null">#{ylh},</if>
|
||||
<if test="ych != null">#{ych},</if>
|
||||
<if test="mbph != null">#{mbph},</if>
|
||||
<if test="mblh != null">#{mblh},</if>
|
||||
<if test="mbch != null">#{mbch},</if>
|
||||
<if test="xtxh != null">#{xtxh},</if>
|
||||
<if test="dqcs != null">#{dqcs},</if>
|
||||
<if test="hczt != null">#{hczt},</if>
|
||||
<if test="spare1 != null">#{spare1},</if>
|
||||
<if test="spare2 != null">#{spare2},</if>
|
||||
<if test="spare3 != null">#{spare3},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateDeviceTsj" parameterType="DeviceTsj">
|
||||
update device_tsj
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="name != null">name = #{name},</if>
|
||||
<if test="ip != null">ip = #{ip},</if>
|
||||
<if test="port != null">port = #{port},</if>
|
||||
<if test="plcDbReadAddress != null">plc_db_read_address = #{plcDbReadAddress},</if>
|
||||
<if test="plcDbWriteAddress != null">plc_db_write_address = #{plcDbWriteAddress},</if>
|
||||
<if test="rwh != null">rwh = #{rwh},</if>
|
||||
<if test="jdbz != null">jdbz = #{jdbz},</if>
|
||||
<if test="sbzt != null">sbzt = #{sbzt},</if>
|
||||
<if test="czfs != null">czfs = #{czfs},</if>
|
||||
<if test="yxxf != null">yxxf = #{yxxf},</if>
|
||||
<if test="yph != null">yph = #{yph},</if>
|
||||
<if test="ylh != null">ylh = #{ylh},</if>
|
||||
<if test="ych != null">ych = #{ych},</if>
|
||||
<if test="mbph != null">mbph = #{mbph},</if>
|
||||
<if test="mblh != null">mblh = #{mblh},</if>
|
||||
<if test="mbch != null">mbch = #{mbch},</if>
|
||||
<if test="xtxh != null">xtxh = #{xtxh},</if>
|
||||
<if test="dqcs != null">dqcs = #{dqcs},</if>
|
||||
<if test="hczt != null">hczt = #{hczt},</if>
|
||||
<if test="spare1 != null">spare1 = #{spare1},</if>
|
||||
<if test="spare2 != null">spare2 = #{spare2},</if>
|
||||
<if test="spare3 != null">spare3 = #{spare3},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteDeviceTsjById" parameterType="Long">
|
||||
delete from device_tsj where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteDeviceTsjByIds" parameterType="String">
|
||||
delete from device_tsj where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
@@ -0,0 +1,158 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.queue.tsj.mapper.TsjDeviceExecutionQueueFinishMapper">
|
||||
|
||||
<resultMap type="TsjDeviceExecutionQueueFinish" id="TsjDeviceExecutionQueueFinishResult">
|
||||
<result property="guid" column="guid" />
|
||||
<result property="deviceId" column="device_id" />
|
||||
<result property="deviceName" column="device_name" />
|
||||
<result property="taskNo" column="task_no" />
|
||||
<result property="srcRow" column="src_row" />
|
||||
<result property="srcColumn" column="src_column" />
|
||||
<result property="srcLayer" column="src_layer" />
|
||||
<result property="tarRow" column="tar_row" />
|
||||
<result property="tarColumn" column="tar_column" />
|
||||
<result property="tarLayer" column="tar_layer" />
|
||||
<result property="srcSite" column="src_site" />
|
||||
<result property="tarSite" column="tar_site" />
|
||||
<result property="sendFlag" column="send_flag" />
|
||||
<result property="sendType" column="send_type" />
|
||||
<result property="taskType" column="task_type" />
|
||||
<result property="createDate" column="create_date" />
|
||||
<result property="startDate" column="start_date" />
|
||||
<result property="finishDate" column="finish_date" />
|
||||
<result property="spare1" column="spare1" />
|
||||
<result property="spare2" column="spare2" />
|
||||
<result property="spare3" column="spare3" />
|
||||
<result property="rwlx" column="rwlx" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectTsjDeviceExecutionQueueFinishVo">
|
||||
select guid, device_id, device_name, task_no, src_row, src_column, src_layer, tar_row, tar_column, tar_layer, src_site, tar_site, send_flag, send_type, task_type, create_date, start_date, finish_date, spare1, spare2, spare3, rwlx from tsj_device_execution_queue_finish
|
||||
</sql>
|
||||
|
||||
<select id="selectTsjDeviceExecutionQueueFinishList" parameterType="TsjDeviceExecutionQueueFinish" resultMap="TsjDeviceExecutionQueueFinishResult">
|
||||
<include refid="selectTsjDeviceExecutionQueueFinishVo"/>
|
||||
<where>
|
||||
<if test="deviceId != null "> and device_id = #{deviceId}</if>
|
||||
<if test="deviceName != null and deviceName != ''"> and device_name like concat('%', #{deviceName}, '%')</if>
|
||||
<if test="taskNo != null "> and task_no = #{taskNo}</if>
|
||||
<if test="srcRow != null and srcRow != ''"> and src_row = #{srcRow}</if>
|
||||
<if test="srcColumn != null and srcColumn != ''"> and src_column = #{srcColumn}</if>
|
||||
<if test="srcLayer != null and srcLayer != ''"> and src_layer = #{srcLayer}</if>
|
||||
<if test="tarRow != null and tarRow != ''"> and tar_row = #{tarRow}</if>
|
||||
<if test="tarColumn != null and tarColumn != ''"> and tar_column = #{tarColumn}</if>
|
||||
<if test="tarLayer != null and tarLayer != ''"> and tar_layer = #{tarLayer}</if>
|
||||
<if test="srcSite != null and srcSite != ''"> and src_site = #{srcSite}</if>
|
||||
<if test="tarSite != null and tarSite != ''"> and tar_site = #{tarSite}</if>
|
||||
<if test="sendFlag != null and sendFlag != ''"> and send_flag = #{sendFlag}</if>
|
||||
<if test="sendType != null and sendType != ''"> and send_type = #{sendType}</if>
|
||||
<if test="taskType != null and taskType != ''"> and task_type = #{taskType}</if>
|
||||
<if test="createDate != null and createDate != ''"> and create_date = #{createDate}</if>
|
||||
<if test="startDate != null and startDate != ''"> and start_date = #{startDate}</if>
|
||||
<if test="finishDate != null and finishDate != ''"> and finish_date = #{finishDate}</if>
|
||||
<if test="spare1 != null and spare1 != ''"> and spare1 = #{spare1}</if>
|
||||
<if test="spare2 != null and spare2 != ''"> and spare2 = #{spare2}</if>
|
||||
<if test="spare3 != null and spare3 != ''"> and spare3 = #{spare3}</if>
|
||||
<if test="rwlx != null and rwlx != ''"> and rwlx = #{rwlx}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectTsjDeviceExecutionQueueFinishByGuid" parameterType="String" resultMap="TsjDeviceExecutionQueueFinishResult">
|
||||
<include refid="selectTsjDeviceExecutionQueueFinishVo"/>
|
||||
where guid = #{guid}
|
||||
</select>
|
||||
|
||||
<insert id="insertTsjDeviceExecutionQueueFinish" parameterType="TsjDeviceExecutionQueueFinish">
|
||||
insert into tsj_device_execution_queue_finish
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="guid != null">guid,</if>
|
||||
<if test="deviceId != null">device_id,</if>
|
||||
<if test="deviceName != null">device_name,</if>
|
||||
<if test="taskNo != null">task_no,</if>
|
||||
<if test="srcRow != null">src_row,</if>
|
||||
<if test="srcColumn != null">src_column,</if>
|
||||
<if test="srcLayer != null">src_layer,</if>
|
||||
<if test="tarRow != null">tar_row,</if>
|
||||
<if test="tarColumn != null">tar_column,</if>
|
||||
<if test="tarLayer != null">tar_layer,</if>
|
||||
<if test="srcSite != null">src_site,</if>
|
||||
<if test="tarSite != null">tar_site,</if>
|
||||
<if test="sendFlag != null">send_flag,</if>
|
||||
<if test="sendType != null">send_type,</if>
|
||||
<if test="taskType != null">task_type,</if>
|
||||
<if test="createDate != null">create_date,</if>
|
||||
<if test="startDate != null">start_date,</if>
|
||||
<if test="finishDate != null">finish_date,</if>
|
||||
<if test="spare1 != null">spare1,</if>
|
||||
<if test="spare2 != null">spare2,</if>
|
||||
<if test="spare3 != null">spare3,</if>
|
||||
<if test="rwlx != null">rwlx,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="guid != null">#{guid},</if>
|
||||
<if test="deviceId != null">#{deviceId},</if>
|
||||
<if test="deviceName != null">#{deviceName},</if>
|
||||
<if test="taskNo != null">#{taskNo},</if>
|
||||
<if test="srcRow != null">#{srcRow},</if>
|
||||
<if test="srcColumn != null">#{srcColumn},</if>
|
||||
<if test="srcLayer != null">#{srcLayer},</if>
|
||||
<if test="tarRow != null">#{tarRow},</if>
|
||||
<if test="tarColumn != null">#{tarColumn},</if>
|
||||
<if test="tarLayer != null">#{tarLayer},</if>
|
||||
<if test="srcSite != null">#{srcSite},</if>
|
||||
<if test="tarSite != null">#{tarSite},</if>
|
||||
<if test="sendFlag != null">#{sendFlag},</if>
|
||||
<if test="sendType != null">#{sendType},</if>
|
||||
<if test="taskType != null">#{taskType},</if>
|
||||
<if test="createDate != null">#{createDate},</if>
|
||||
<if test="startDate != null">#{startDate},</if>
|
||||
<if test="finishDate != null">#{finishDate},</if>
|
||||
<if test="spare1 != null">#{spare1},</if>
|
||||
<if test="spare2 != null">#{spare2},</if>
|
||||
<if test="spare3 != null">#{spare3},</if>
|
||||
<if test="rwlx != null">#{rwlx},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateTsjDeviceExecutionQueueFinish" parameterType="TsjDeviceExecutionQueueFinish">
|
||||
update tsj_device_execution_queue_finish
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="deviceId != null">device_id = #{deviceId},</if>
|
||||
<if test="deviceName != null">device_name = #{deviceName},</if>
|
||||
<if test="taskNo != null">task_no = #{taskNo},</if>
|
||||
<if test="srcRow != null">src_row = #{srcRow},</if>
|
||||
<if test="srcColumn != null">src_column = #{srcColumn},</if>
|
||||
<if test="srcLayer != null">src_layer = #{srcLayer},</if>
|
||||
<if test="tarRow != null">tar_row = #{tarRow},</if>
|
||||
<if test="tarColumn != null">tar_column = #{tarColumn},</if>
|
||||
<if test="tarLayer != null">tar_layer = #{tarLayer},</if>
|
||||
<if test="srcSite != null">src_site = #{srcSite},</if>
|
||||
<if test="tarSite != null">tar_site = #{tarSite},</if>
|
||||
<if test="sendFlag != null">send_flag = #{sendFlag},</if>
|
||||
<if test="sendType != null">send_type = #{sendType},</if>
|
||||
<if test="taskType != null">task_type = #{taskType},</if>
|
||||
<if test="createDate != null">create_date = #{createDate},</if>
|
||||
<if test="startDate != null">start_date = #{startDate},</if>
|
||||
<if test="finishDate != null">finish_date = #{finishDate},</if>
|
||||
<if test="spare1 != null">spare1 = #{spare1},</if>
|
||||
<if test="spare2 != null">spare2 = #{spare2},</if>
|
||||
<if test="spare3 != null">spare3 = #{spare3},</if>
|
||||
<if test="rwlx != null">rwlx = #{rwlx},</if>
|
||||
</trim>
|
||||
where guid = #{guid}
|
||||
</update>
|
||||
|
||||
<delete id="deleteTsjDeviceExecutionQueueFinishByGuid" parameterType="String">
|
||||
delete from tsj_device_execution_queue_finish where guid = #{guid}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteTsjDeviceExecutionQueueFinishByGuids" parameterType="String">
|
||||
delete from tsj_device_execution_queue_finish where guid in
|
||||
<foreach item="guid" collection="array" open="(" separator="," close=")">
|
||||
#{guid}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
@@ -0,0 +1,162 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.queue.tsj.mapper.TsjDeviceExecutionQueueMapper">
|
||||
|
||||
<resultMap type="TsjDeviceExecutionQueue" id="TsjDeviceExecutionQueueResult">
|
||||
<result property="guid" column="guid" />
|
||||
<result property="deviceId" column="device_id" />
|
||||
<result property="deviceName" column="device_name" />
|
||||
<result property="taskNo" column="task_no" />
|
||||
<result property="srcRow" column="src_row" />
|
||||
<result property="srcColumn" column="src_column" />
|
||||
<result property="srcLayer" column="src_layer" />
|
||||
<result property="tarRow" column="tar_row" />
|
||||
<result property="tarColumn" column="tar_column" />
|
||||
<result property="tarLayer" column="tar_layer" />
|
||||
<result property="srcSite" column="src_site" />
|
||||
<result property="tarSite" column="tar_site" />
|
||||
<result property="sendFlag" column="send_flag" />
|
||||
<result property="sendType" column="send_type" />
|
||||
<result property="taskType" column="task_type" />
|
||||
<result property="createDate" column="create_date" />
|
||||
<result property="startDate" column="start_date" />
|
||||
<result property="finishDate" column="finish_date" />
|
||||
<result property="spare1" column="spare1" />
|
||||
<result property="spare2" column="spare2" />
|
||||
<result property="spare3" column="spare3" />
|
||||
<result property="rwlx" column="rwlx" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectTsjDeviceExecutionQueueVo">
|
||||
select guid, device_id, device_name, task_no, src_row, src_column, src_layer, tar_row, tar_column, tar_layer, src_site, tar_site, send_flag, send_type, task_type, create_date, start_date, finish_date, spare1, spare2, spare3, rwlx from tsj_device_execution_queue
|
||||
</sql>
|
||||
|
||||
<select id="selectTsjDeviceExecutionQueueList" parameterType="TsjDeviceExecutionQueue" resultMap="TsjDeviceExecutionQueueResult">
|
||||
<include refid="selectTsjDeviceExecutionQueueVo"/>
|
||||
<where>
|
||||
<if test="deviceId != null "> and device_id = #{deviceId}</if>
|
||||
<if test="deviceName != null and deviceName != ''"> and device_name like concat('%', #{deviceName}, '%')</if>
|
||||
<if test="taskNo != null "> and task_no = #{taskNo}</if>
|
||||
<if test="srcRow != null and srcRow != ''"> and src_row = #{srcRow}</if>
|
||||
<if test="srcColumn != null and srcColumn != ''"> and src_column = #{srcColumn}</if>
|
||||
<if test="srcLayer != null and srcLayer != ''"> and src_layer = #{srcLayer}</if>
|
||||
<if test="tarRow != null and tarRow != ''"> and tar_row = #{tarRow}</if>
|
||||
<if test="tarColumn != null and tarColumn != ''"> and tar_column = #{tarColumn}</if>
|
||||
<if test="tarLayer != null and tarLayer != ''"> and tar_layer = #{tarLayer}</if>
|
||||
<if test="srcSite != null and srcSite != ''"> and src_site = #{srcSite}</if>
|
||||
<if test="tarSite != null and tarSite != ''"> and tar_site = #{tarSite}</if>
|
||||
<if test="sendFlag != null and sendFlag != ''"> and send_flag = #{sendFlag}</if>
|
||||
<if test="sendType != null and sendType != ''"> and send_type = #{sendType}</if>
|
||||
<if test="taskType != null and taskType != ''"> and task_type = #{taskType}</if>
|
||||
<if test="createDate != null and createDate != ''"> and create_date = #{createDate}</if>
|
||||
<if test="startDate != null and startDate != ''"> and start_date = #{startDate}</if>
|
||||
<if test="finishDate != null and finishDate != ''"> and finish_date = #{finishDate}</if>
|
||||
<if test="spare1 != null and spare1 != ''"> and spare1 = #{spare1}</if>
|
||||
<if test="spare2 != null and spare2 != ''"> and spare2 = #{spare2}</if>
|
||||
<if test="spare3 != null and spare3 != ''"> and spare3 = #{spare3}</if>
|
||||
<if test="rwlx != null and rwlx != ''"> and rwlx = #{rwlx}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectTsjDeviceExecutionQueueByGuid" parameterType="String" resultMap="TsjDeviceExecutionQueueResult">
|
||||
<include refid="selectTsjDeviceExecutionQueueVo"/>
|
||||
where guid = #{guid}
|
||||
</select>
|
||||
<select id="selectTsjDeviceExecutionQueueByRwh" resultMap="TsjDeviceExecutionQueueResult">
|
||||
<include refid="selectTsjDeviceExecutionQueueVo"/>
|
||||
where task_no = #{taskNo}
|
||||
</select>
|
||||
|
||||
<insert id="insertTsjDeviceExecutionQueue" parameterType="TsjDeviceExecutionQueue">
|
||||
insert into tsj_device_execution_queue
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="guid != null">guid,</if>
|
||||
<if test="deviceId != null">device_id,</if>
|
||||
<if test="deviceName != null">device_name,</if>
|
||||
<if test="taskNo != null">task_no,</if>
|
||||
<if test="srcRow != null">src_row,</if>
|
||||
<if test="srcColumn != null">src_column,</if>
|
||||
<if test="srcLayer != null">src_layer,</if>
|
||||
<if test="tarRow != null">tar_row,</if>
|
||||
<if test="tarColumn != null">tar_column,</if>
|
||||
<if test="tarLayer != null">tar_layer,</if>
|
||||
<if test="srcSite != null">src_site,</if>
|
||||
<if test="tarSite != null">tar_site,</if>
|
||||
<if test="sendFlag != null">send_flag,</if>
|
||||
<if test="sendType != null">send_type,</if>
|
||||
<if test="taskType != null">task_type,</if>
|
||||
<if test="createDate != null">create_date,</if>
|
||||
<if test="startDate != null">start_date,</if>
|
||||
<if test="finishDate != null">finish_date,</if>
|
||||
<if test="spare1 != null">spare1,</if>
|
||||
<if test="spare2 != null">spare2,</if>
|
||||
<if test="spare3 != null">spare3,</if>
|
||||
<if test="rwlx != null">rwlx,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="guid != null">#{guid},</if>
|
||||
<if test="deviceId != null">#{deviceId},</if>
|
||||
<if test="deviceName != null">#{deviceName},</if>
|
||||
<if test="taskNo != null">#{taskNo},</if>
|
||||
<if test="srcRow != null">#{srcRow},</if>
|
||||
<if test="srcColumn != null">#{srcColumn},</if>
|
||||
<if test="srcLayer != null">#{srcLayer},</if>
|
||||
<if test="tarRow != null">#{tarRow},</if>
|
||||
<if test="tarColumn != null">#{tarColumn},</if>
|
||||
<if test="tarLayer != null">#{tarLayer},</if>
|
||||
<if test="srcSite != null">#{srcSite},</if>
|
||||
<if test="tarSite != null">#{tarSite},</if>
|
||||
<if test="sendFlag != null">#{sendFlag},</if>
|
||||
<if test="sendType != null">#{sendType},</if>
|
||||
<if test="taskType != null">#{taskType},</if>
|
||||
<if test="createDate != null">#{createDate},</if>
|
||||
<if test="startDate != null">#{startDate},</if>
|
||||
<if test="finishDate != null">#{finishDate},</if>
|
||||
<if test="spare1 != null">#{spare1},</if>
|
||||
<if test="spare2 != null">#{spare2},</if>
|
||||
<if test="spare3 != null">#{spare3},</if>
|
||||
<if test="rwlx != null">#{rwlx},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateTsjDeviceExecutionQueue" parameterType="TsjDeviceExecutionQueue">
|
||||
update tsj_device_execution_queue
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="deviceId != null">device_id = #{deviceId},</if>
|
||||
<if test="deviceName != null">device_name = #{deviceName},</if>
|
||||
<if test="taskNo != null">task_no = #{taskNo},</if>
|
||||
<if test="srcRow != null">src_row = #{srcRow},</if>
|
||||
<if test="srcColumn != null">src_column = #{srcColumn},</if>
|
||||
<if test="srcLayer != null">src_layer = #{srcLayer},</if>
|
||||
<if test="tarRow != null">tar_row = #{tarRow},</if>
|
||||
<if test="tarColumn != null">tar_column = #{tarColumn},</if>
|
||||
<if test="tarLayer != null">tar_layer = #{tarLayer},</if>
|
||||
<if test="srcSite != null">src_site = #{srcSite},</if>
|
||||
<if test="tarSite != null">tar_site = #{tarSite},</if>
|
||||
<if test="sendFlag != null">send_flag = #{sendFlag},</if>
|
||||
<if test="sendType != null">send_type = #{sendType},</if>
|
||||
<if test="taskType != null">task_type = #{taskType},</if>
|
||||
<if test="createDate != null">create_date = #{createDate},</if>
|
||||
<if test="startDate != null">start_date = #{startDate},</if>
|
||||
<if test="finishDate != null">finish_date = #{finishDate},</if>
|
||||
<if test="spare1 != null">spare1 = #{spare1},</if>
|
||||
<if test="spare2 != null">spare2 = #{spare2},</if>
|
||||
<if test="spare3 != null">spare3 = #{spare3},</if>
|
||||
<if test="rwlx != null">rwlx = #{rwlx},</if>
|
||||
</trim>
|
||||
where guid = #{guid}
|
||||
</update>
|
||||
|
||||
<delete id="deleteTsjDeviceExecutionQueueByGuid" parameterType="String">
|
||||
delete from tsj_device_execution_queue where guid = #{guid}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteTsjDeviceExecutionQueueByGuids" parameterType="String">
|
||||
delete from tsj_device_execution_queue where guid in
|
||||
<foreach item="guid" collection="array" open="(" separator="," close=")">
|
||||
#{guid}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user