2025-03-11 22:51:12 +08:00
|
|
|
<?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.app.mapper.AppPmsOrderOutBakMapper">
|
|
|
|
|
|
|
|
|
|
<resultMap type="AppPmsOrderOutBak" id="AppPmsOrderOutBakResult">
|
|
|
|
|
<result property="recordId" column="record_id" />
|
|
|
|
|
<result property="orderId" column="order_id" />
|
|
|
|
|
<result property="listId" column="list_id" />
|
|
|
|
|
<result property="orderType" column="order_type" />
|
|
|
|
|
<result property="customerId" column="customer_id" />
|
|
|
|
|
<result property="goodsId" column="goods_id" />
|
|
|
|
|
<result property="goodsNum" column="goods_num" />
|
|
|
|
|
<result property="pickNum" column="pick_num" />
|
|
|
|
|
<result property="trNum" column="tr_num" />
|
|
|
|
|
<result property="shelvesNum" column="shelves_num" />
|
|
|
|
|
<result property="stockNum" column="stock_num" />
|
|
|
|
|
<result property="goodsDesc" column="goods_desc" />
|
|
|
|
|
<result property="spare1" column="spare1" />
|
|
|
|
|
<result property="spare2" column="spare2" />
|
|
|
|
|
<result property="orderStatus" column="order_status" />
|
|
|
|
|
<result property="isLock" column="is_lock" />
|
|
|
|
|
<result property="createTime" column="create_time" />
|
|
|
|
|
<result property="createBy" column="create_by" />
|
|
|
|
|
<result property="updateTime" column="update_time" />
|
2025-03-13 11:01:16 +08:00
|
|
|
<result property="generateWave" column="generate_wave" />
|
|
|
|
|
<result property="orderWave" column="order_wave" />
|
2025-03-11 22:51:12 +08:00
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<sql id="selectAppPmsOrderOutBakVo">
|
2025-03-13 11:01:16 +08:00
|
|
|
select record_id, order_id, list_id, order_type, customer_id, goods_id, goods_num, pick_num, tr_num, shelves_num, stock_num, goods_desc, spare1, spare2, order_status, is_lock, create_time, create_by, update_time ,
|
|
|
|
|
generate_wave, order_wave from app_pms_order_out_bak
|
2025-03-11 22:51:12 +08:00
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
<select id="selectAppPmsOrderOutBakList" parameterType="AppPmsOrderOutBak" resultMap="AppPmsOrderOutBakResult">
|
|
|
|
|
<include refid="selectAppPmsOrderOutBakVo"/>
|
|
|
|
|
<where>
|
|
|
|
|
<if test="orderId != null and orderId != ''"> and order_id = #{orderId}</if>
|
|
|
|
|
<if test="listId != null and listId != ''"> and list_id = #{listId}</if>
|
|
|
|
|
<if test="orderType != null "> and order_type = #{orderType}</if>
|
|
|
|
|
<if test="goodsDesc != null and goodsDesc != ''"> and goods_desc = #{goodsDesc}</if>
|
2025-03-13 11:01:16 +08:00
|
|
|
<if test="orderWave != null and orderWave != ''"> and order_wave = #{orderWave}</if>
|
2025-03-11 22:51:12 +08:00
|
|
|
</where>
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="selectAppPmsOrderOutBakByRecordId" parameterType="String" resultMap="AppPmsOrderOutBakResult">
|
|
|
|
|
<include refid="selectAppPmsOrderOutBakVo"/>
|
|
|
|
|
where record_id = #{recordId}
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<insert id="insertAppPmsOrderOutBak" parameterType="AppPmsOrderOutBak">
|
|
|
|
|
insert into app_pms_order_out_bak
|
|
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="recordId != null">record_id,</if>
|
|
|
|
|
<if test="orderId != null">order_id,</if>
|
|
|
|
|
<if test="listId != null and listId != ''">list_id,</if>
|
|
|
|
|
<if test="orderType != null">order_type,</if>
|
|
|
|
|
<if test="customerId != null">customer_id,</if>
|
|
|
|
|
<if test="goodsId != null and goodsId != ''">goods_id,</if>
|
|
|
|
|
<if test="goodsNum != null">goods_num,</if>
|
|
|
|
|
<if test="pickNum != null">pick_num,</if>
|
|
|
|
|
<if test="trNum != null">tr_num,</if>
|
|
|
|
|
<if test="shelvesNum != null">shelves_num,</if>
|
|
|
|
|
<if test="stockNum != null">stock_num,</if>
|
|
|
|
|
<if test="goodsDesc != null and goodsDesc != ''">goods_desc,</if>
|
|
|
|
|
<if test="spare1 != null">spare1,</if>
|
|
|
|
|
<if test="spare2 != null">spare2,</if>
|
|
|
|
|
<if test="orderStatus != null">order_status,</if>
|
|
|
|
|
<if test="isLock != null">is_lock,</if>
|
|
|
|
|
<if test="createTime != null">create_time,</if>
|
|
|
|
|
<if test="createBy != null">create_by,</if>
|
|
|
|
|
<if test="updateTime != null">update_time,</if>
|
2025-03-13 11:01:16 +08:00
|
|
|
<if test="generateWave != null">generate_wave,</if>
|
|
|
|
|
<if test="orderWave != null">order_wave,</if>
|
2025-03-11 22:51:12 +08:00
|
|
|
</trim>
|
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="recordId != null">#{recordId},</if>
|
|
|
|
|
<if test="orderId != null">#{orderId},</if>
|
|
|
|
|
<if test="listId != null and listId != ''">#{listId},</if>
|
|
|
|
|
<if test="orderType != null">#{orderType},</if>
|
|
|
|
|
<if test="customerId != null">#{customerId},</if>
|
|
|
|
|
<if test="goodsId != null and goodsId != ''">#{goodsId},</if>
|
|
|
|
|
<if test="goodsNum != null">#{goodsNum},</if>
|
|
|
|
|
<if test="pickNum != null">#{pickNum},</if>
|
|
|
|
|
<if test="trNum != null">#{trNum},</if>
|
|
|
|
|
<if test="shelvesNum != null">#{shelvesNum},</if>
|
|
|
|
|
<if test="stockNum != null">#{stockNum},</if>
|
|
|
|
|
<if test="goodsDesc != null and goodsDesc != ''">#{goodsDesc},</if>
|
|
|
|
|
<if test="spare1 != null">#{spare1},</if>
|
|
|
|
|
<if test="spare2 != null">#{spare2},</if>
|
|
|
|
|
<if test="orderStatus != null">#{orderStatus},</if>
|
|
|
|
|
<if test="isLock != null">#{isLock},</if>
|
|
|
|
|
<if test="createTime != null">#{createTime},</if>
|
|
|
|
|
<if test="createBy != null">#{createBy},</if>
|
|
|
|
|
<if test="updateTime != null">#{updateTime},</if>
|
2025-03-13 11:01:16 +08:00
|
|
|
<if test="generateWave != null">#{generateWave},</if>
|
|
|
|
|
<if test="orderWave != null">#{orderWave},</if>
|
2025-03-11 22:51:12 +08:00
|
|
|
</trim>
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
<update id="updateAppPmsOrderOutBak" parameterType="AppPmsOrderOutBak">
|
|
|
|
|
update app_pms_order_out_bak
|
|
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
|
|
<if test="orderId != null">order_id = #{orderId},</if>
|
|
|
|
|
<if test="listId != null and listId != ''">list_id = #{listId},</if>
|
|
|
|
|
<if test="orderType != null">order_type = #{orderType},</if>
|
|
|
|
|
<if test="customerId != null">customer_id = #{customerId},</if>
|
|
|
|
|
<if test="goodsId != null and goodsId != ''">goods_id = #{goodsId},</if>
|
|
|
|
|
<if test="goodsNum != null">goods_num = #{goodsNum},</if>
|
|
|
|
|
<if test="pickNum != null">pick_num = #{pickNum},</if>
|
|
|
|
|
<if test="trNum != null">tr_num = #{trNum},</if>
|
|
|
|
|
<if test="shelvesNum != null">shelves_num = #{shelvesNum},</if>
|
|
|
|
|
<if test="stockNum != null">stock_num = #{stockNum},</if>
|
|
|
|
|
<if test="goodsDesc != null and goodsDesc != ''">goods_desc = #{goodsDesc},</if>
|
|
|
|
|
<if test="spare1 != null">spare1 = #{spare1},</if>
|
|
|
|
|
<if test="spare2 != null">spare2 = #{spare2},</if>
|
|
|
|
|
<if test="orderStatus != null">order_status = #{orderStatus},</if>
|
|
|
|
|
<if test="isLock != null">is_lock = #{isLock},</if>
|
|
|
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
|
|
|
<if test="createBy != null">create_by = #{createBy},</if>
|
|
|
|
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
2025-03-13 11:01:16 +08:00
|
|
|
<if test="generateWave != null">generate_wave = #{generateWave},</if>
|
|
|
|
|
<if test="orderWave != null">order_wave = #{orderWave},</if>
|
2025-03-11 22:51:12 +08:00
|
|
|
</trim>
|
|
|
|
|
where record_id = #{recordId}
|
|
|
|
|
</update>
|
|
|
|
|
|
|
|
|
|
<delete id="deleteAppPmsOrderOutBakByRecordId" parameterType="String">
|
|
|
|
|
delete from app_pms_order_out_bak where record_id = #{recordId}
|
|
|
|
|
</delete>
|
|
|
|
|
|
|
|
|
|
<delete id="deleteAppPmsOrderOutBakByRecordIds" parameterType="String">
|
|
|
|
|
delete from app_pms_order_out_bak where record_id in
|
|
|
|
|
<foreach item="recordId" collection="array" open="(" separator="," close=")">
|
|
|
|
|
#{recordId}
|
|
|
|
|
</foreach>
|
|
|
|
|
</delete>
|
|
|
|
|
</mapper>
|