堆垛机调度初始化

This commit is contained in:
liuhanqing
2025-09-22 16:12:18 +08:00
parent 1b44d350b0
commit baed4a312e
58 changed files with 3486 additions and 1228 deletions

View File

@@ -2,7 +2,7 @@
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.device.agv.mapper.AgvQueueMapper">
<mapper namespace="com.ruoyi.queue.agv.mapper.AgvQueueMapper">
<resultMap type="AgvQueue" id="AgvQueueResult">
<result property="reqCode" column="req_code" />

View File

@@ -0,0 +1,143 @@
<?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.ddj.mapper.MsgDdjMapper">
<resultMap type="MsgDdj" id="MsgDdjResult">
<result property="id" column="id" />
<result property="name" column="name" />
<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="yp" column="yp" />
<result property="yl" column="yl" />
<result property="yc" column="yc" />
<result property="mbp" column="mbp" />
<result property="mbl" column="mbl" />
<result property="mbc" column="mbc" />
<result property="xtxh" column="xtxh" />
<result property="dqxd" column="dqxd" />
<result property="hczt" column="hczt" />
<result property="spare1" column="spare1" />
<result property="spare2" column="spare2" />
<result property="spare3" column="spare3" />
</resultMap>
<sql id="selectMsgDdjVo">
select id, name, rwh, jdbz, sbzt, czfs, yxxf, yp, yl, yc, mbp, mbl, mbc, xtxh, dqxd, hczt, spare1, spare2, spare3 from msg_ddj
</sql>
<select id="selectMsgDdjList" parameterType="MsgDdj" resultMap="MsgDdjResult">
<include refid="selectMsgDdjVo"/>
<where>
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</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="yp != null "> and yp = #{yp}</if>
<if test="yl != null "> and yl = #{yl}</if>
<if test="yc != null "> and yc = #{yc}</if>
<if test="mbp != null "> and mbp = #{mbp}</if>
<if test="mbl != null "> and mbl = #{mbl}</if>
<if test="mbc != null "> and mbc = #{mbc}</if>
<if test="xtxh != null "> and xtxh = #{xtxh}</if>
<if test="dqxd != null "> and dqxd = #{dqxd}</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="selectMsgDdjById" parameterType="Long" resultMap="MsgDdjResult">
<include refid="selectMsgDdjVo"/>
where id = #{id}
</select>
<insert id="insertMsgDdj" parameterType="MsgDdj">
insert into msg_ddj
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">id,</if>
<if test="name != null">name,</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="yp != null">yp,</if>
<if test="yl != null">yl,</if>
<if test="yc != null">yc,</if>
<if test="mbp != null">mbp,</if>
<if test="mbl != null">mbl,</if>
<if test="mbc != null">mbc,</if>
<if test="xtxh != null">xtxh,</if>
<if test="dqxd != null">dqxd,</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="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="yp != null">#{yp},</if>
<if test="yl != null">#{yl},</if>
<if test="yc != null">#{yc},</if>
<if test="mbp != null">#{mbp},</if>
<if test="mbl != null">#{mbl},</if>
<if test="mbc != null">#{mbc},</if>
<if test="xtxh != null">#{xtxh},</if>
<if test="dqxd != null">#{dqxd},</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="updateMsgDdj" parameterType="MsgDdj">
update msg_ddj
<trim prefix="SET" suffixOverrides=",">
<if test="name != null">name = #{name},</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="yp != null">yp = #{yp},</if>
<if test="yl != null">yl = #{yl},</if>
<if test="yc != null">yc = #{yc},</if>
<if test="mbp != null">mbp = #{mbp},</if>
<if test="mbl != null">mbl = #{mbl},</if>
<if test="mbc != null">mbc = #{mbc},</if>
<if test="xtxh != null">xtxh = #{xtxh},</if>
<if test="dqxd != null">dqxd = #{dqxd},</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="deleteMsgDdjById" parameterType="Long">
delete from msg_ddj where id = #{id}
</delete>
<delete id="deleteMsgDdjByIds" parameterType="String">
delete from msg_ddj where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>