接口记录表 wcs对外接口 绑定料架接口
This commit is contained in:
@@ -0,0 +1,76 @@
|
||||
<?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.out.submit.mapper.OutPickSubmitMapper">
|
||||
|
||||
<resultMap type="OutPickSubmit" id="OutPickSubmitResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="trayCode" column="tray_code" />
|
||||
<result property="jobId" column="job_id" />
|
||||
<result property="jobDetailId" column="job_detail_id" />
|
||||
<result property="productId" column="product_id" />
|
||||
<result property="quantit" column="quantit" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectOutPickSubmitVo">
|
||||
select id, tray_code, job_id, job_detail_id, product_id, quantit from out_pick_submit
|
||||
</sql>
|
||||
|
||||
<select id="selectOutPickSubmitList" parameterType="OutPickSubmit" resultMap="OutPickSubmitResult">
|
||||
<include refid="selectOutPickSubmitVo"/>
|
||||
<where>
|
||||
<if test="trayCode != null and trayCode != ''"> and tray_code = #{trayCode}</if>
|
||||
<if test="jobId != null and jobId != ''"> and job_id = #{jobId}</if>
|
||||
<if test="jobDetailId != null and jobDetailId != ''"> and job_detail_id = #{jobDetailId}</if>
|
||||
<if test="productId != null and productId != ''"> and product_id = #{productId}</if>
|
||||
<if test="quantit != null and quantit != ''"> and quantit = #{quantit}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectOutPickSubmitById" parameterType="Long" resultMap="OutPickSubmitResult">
|
||||
<include refid="selectOutPickSubmitVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertOutPickSubmit" parameterType="OutPickSubmit" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into out_pick_submit
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="trayCode != null">tray_code,</if>
|
||||
<if test="jobId != null">job_id,</if>
|
||||
<if test="jobDetailId != null">job_detail_id,</if>
|
||||
<if test="productId != null">product_id,</if>
|
||||
<if test="quantit != null">quantit,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="trayCode != null">#{trayCode},</if>
|
||||
<if test="jobId != null">#{jobId},</if>
|
||||
<if test="jobDetailId != null">#{jobDetailId},</if>
|
||||
<if test="productId != null">#{productId},</if>
|
||||
<if test="quantit != null">#{quantit},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateOutPickSubmit" parameterType="OutPickSubmit">
|
||||
update out_pick_submit
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="trayCode != null">tray_code = #{trayCode},</if>
|
||||
<if test="jobId != null">job_id = #{jobId},</if>
|
||||
<if test="jobDetailId != null">job_detail_id = #{jobDetailId},</if>
|
||||
<if test="productId != null">product_id = #{productId},</if>
|
||||
<if test="quantit != null">quantit = #{quantit},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteOutPickSubmitById" parameterType="Long">
|
||||
delete from out_pick_submit where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteOutPickSubmitByIds" parameterType="String">
|
||||
delete from out_pick_submit where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user