wcs项目初始化

This commit is contained in:
liuhanqing
2025-09-17 14:11:04 +08:00
commit 1b44d350b0
726 changed files with 108835 additions and 0 deletions

View File

@@ -0,0 +1,91 @@
<?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.bas.fluent.mapper.BasFluentFrameMapper">
<resultMap type="BasFluentFrame" id="BasFluentFrameResult">
<result property="id" column="id" />
<result property="locationName" column="location_name" />
<result property="type" column="type" />
<result property="frameId" column="frame_id" />
<result property="boxNum" column="box_num" />
<result property="trayCode" column="tray_code" />
<result property="groupId" column="group_id" />
<result property="allotNum" column="allot_num" />
</resultMap>
<sql id="selectBasFluentFrameVo">
select id, location_name, type, frame_id, box_num, tray_code, group_id, allot_num from bas_fluent_frame
</sql>
<select id="selectBasFluentFrameList" parameterType="BasFluentFrame" resultMap="BasFluentFrameResult">
<include refid="selectBasFluentFrameVo"/>
<where>
<if test="locationName != null and locationName != ''"> and location_name like concat('%', #{locationName}, '%')</if>
<if test="type != null and type != ''"> and type = #{type}</if>
<if test="frameId != null and frameId != ''"> and frame_id = #{frameId}</if>
<if test="boxNum != null "> and box_num = #{boxNum}</if>
<if test="trayCode != null and trayCode != ''"> and tray_code = #{trayCode}</if>
<if test="groupId != null and groupId != ''"> and group_id = #{groupId}</if>
<if test="allotNum != null "> and allot_num = #{allotNum}</if>
</where>
</select>
<select id="selectBasFluentFrameById" parameterType="Long" resultMap="BasFluentFrameResult">
<include refid="selectBasFluentFrameVo"/>
where id = #{id}
</select>
<select id="selectBasFluentFrameOrderByAllotNum" resultMap="BasFluentFrameResult">
select TOP 1 id, location_name, type, frame_id, box_num, tray_code, group_id, allot_num from bas_fluent_frame
where frame_id = #{frameId} and type = '1' and allot_num = 0
order by order_num asc
</select>
<insert id="insertBasFluentFrame" parameterType="BasFluentFrame" useGeneratedKeys="true" keyProperty="id">
insert into bas_fluent_frame
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="locationName != null">location_name,</if>
<if test="type != null">type,</if>
<if test="frameId != null">frame_id,</if>
<if test="boxNum != null">box_num,</if>
<if test="trayCode != null">tray_code,</if>
<if test="groupId != null">group_id,</if>
<if test="allotNum != null">allot_num,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="locationName != null">#{locationName},</if>
<if test="type != null">#{type},</if>
<if test="frameId != null">#{frameId},</if>
<if test="boxNum != null">#{boxNum},</if>
<if test="trayCode != null">#{trayCode},</if>
<if test="groupId != null">#{groupId},</if>
<if test="allotNum != null">#{allotNum},</if>
</trim>
</insert>
<update id="updateBasFluentFrame" parameterType="BasFluentFrame">
update bas_fluent_frame
<trim prefix="SET" suffixOverrides=",">
<if test="locationName != null">location_name = #{locationName},</if>
<if test="type != null">type = #{type},</if>
<if test="frameId != null">frame_id = #{frameId},</if>
<if test="boxNum != null">box_num = #{boxNum},</if>
<if test="trayCode != null">tray_code = #{trayCode},</if>
<if test="groupId != null">group_id = #{groupId},</if>
<if test="allotNum != null">allot_num = #{allotNum},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteBasFluentFrameById" parameterType="Long">
delete from bas_fluent_frame where id = #{id}
</delete>
<delete id="deleteBasFluentFrameByIds" parameterType="String">
delete from bas_fluent_frame where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@@ -0,0 +1,95 @@
<?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.bas.port.mapper.WcsPortMapper">
<resultMap type="WcsPort" id="WcsPortResult">
<result property="id" column="id" />
<result property="portCode" column="port_code" />
<result property="portName" column="port_name" />
<result property="portType" column="port_type" />
<result property="portRegion" column="port_region" />
<result property="spare1" column="spare1" />
<result property="spare2" column="spare2" />
<result property="spare3" column="spare3" />
<result property="status" column="status" />
</resultMap>
<sql id="selectWcsPortVo">
select id, port_code, port_name, port_type, port_region, spare1, spare2, spare3, status from wcs_port
</sql>
<select id="selectWcsPortList" parameterType="WcsPort" resultMap="WcsPortResult">
<include refid="selectWcsPortVo"/>
<where>
<if test="portCode != null and portCode != ''"> and port_code = #{portCode}</if>
<if test="portName != null and portName != ''"> and port_name like concat('%', #{portName}, '%')</if>
<if test="portType != null and portType != ''"> and port_type = #{portType}</if>
<if test="portRegion != null and portRegion != ''"> and port_region = #{portRegion}</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="status != null and status != ''"> and status = #{status}</if>
</where>
</select>
<select id="selectWcsPortById" parameterType="Long" resultMap="WcsPortResult">
<include refid="selectWcsPortVo"/>
where id = #{id}
</select>
<select id="selectWcsPortByPortCode" resultMap="WcsPortResult">
<include refid="selectWcsPortVo"/>
where port_code = #{portCode}
</select>
<insert id="insertWcsPort" parameterType="WcsPort" useGeneratedKeys="true" keyProperty="id">
insert into wcs_port
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="portCode != null">port_code,</if>
<if test="portName != null">port_name,</if>
<if test="portType != null">port_type,</if>
<if test="portRegion != null">port_region,</if>
<if test="spare1 != null">spare1,</if>
<if test="spare2 != null">spare2,</if>
<if test="spare3 != null">spare3,</if>
<if test="status != null">status,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="portCode != null">#{portCode},</if>
<if test="portName != null">#{portName},</if>
<if test="portType != null">#{portType},</if>
<if test="portRegion != null">#{portRegion},</if>
<if test="spare1 != null">#{spare1},</if>
<if test="spare2 != null">#{spare2},</if>
<if test="spare3 != null">#{spare3},</if>
<if test="status != null">#{status},</if>
</trim>
</insert>
<update id="updateWcsPort" parameterType="WcsPort">
update wcs_port
<trim prefix="SET" suffixOverrides=",">
<if test="portCode != null">port_code = #{portCode},</if>
<if test="portName != null">port_name = #{portName},</if>
<if test="portType != null">port_type = #{portType},</if>
<if test="portRegion != null">port_region = #{portRegion},</if>
<if test="spare1 != null">spare1 = #{spare1},</if>
<if test="spare2 != null">spare2 = #{spare2},</if>
<if test="spare3 != null">spare3 = #{spare3},</if>
<if test="status != null">status = #{status},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteWcsPortById" parameterType="Long">
delete from wcs_port where id = #{id}
</delete>
<delete id="deleteWcsPortByIds" parameterType="String">
delete from wcs_port where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>