出库单据
This commit is contained in:
@@ -41,6 +41,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<result property="spec" column="spec" />
|
||||
<result property="unit" column="unit" />
|
||||
<result property="productName" column="product_name" />
|
||||
<result property="trayCode" column="tray_code" />
|
||||
</resultMap>
|
||||
|
||||
<select id="selectMydoJobDetailList" parameterType="MydoJobDetail" resultMap="MydoJobDetailResult">
|
||||
@@ -324,4 +325,53 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<delete id="deleteMydoJobDetailByJobId">
|
||||
delete from mydo_job_detail where job_id = #{jobId}
|
||||
</delete>
|
||||
|
||||
<select id="selectMydoJobDetailListByExit" parameterType="MydoJob" resultMap="MydoJobDetailResult">
|
||||
select mjd.job_detail_id,
|
||||
mjd.job_id,
|
||||
mjd.stock_id,
|
||||
mjd.lot_no,
|
||||
mjd.in_date,
|
||||
mjd.in_or_out_id,
|
||||
mjd.in_or_out_d_id,
|
||||
mjd.product_guid,
|
||||
mjd.product_id,
|
||||
mjd.stock_status,
|
||||
mjd.in_quantity,
|
||||
mjd.stock_quantity,
|
||||
mjd.out_quantity,
|
||||
mjd.layer_quantity,
|
||||
mjd.out_layer_quantity,
|
||||
mjd.give_num,
|
||||
mjd.stockin_id,
|
||||
mjd.stacking_id,
|
||||
mjd.exit_id,
|
||||
mjd.print_date,
|
||||
mjd.customer_id,
|
||||
mjd.supplier_id,
|
||||
mjd.spare1,
|
||||
mjd.spare2,
|
||||
mjd.spare3,
|
||||
mjd.spare4,
|
||||
mjd.pick_quantity,
|
||||
mjd.out_quantity-mjd.pick_quantity as pick_quantity_real,
|
||||
bp.product_name,
|
||||
mjd.spare5,
|
||||
mjd.spare6,
|
||||
mjd.spare7,
|
||||
mjd.spare8,
|
||||
mjd.spare9,
|
||||
mjd.spec,
|
||||
mjd.unit,
|
||||
mj.tray_code
|
||||
|
||||
from mydo_job_detail mjd
|
||||
left join bas_product bp on mjd.product_id = bp.product_id
|
||||
left join mydo_job mj on mjd.job_id = mj.job_id
|
||||
where mj.exit_id=#{exitId}
|
||||
and mj.status='3'
|
||||
and mjd.product_id=#{productId}
|
||||
and mj.in_or_out>=20
|
||||
|
||||
</select>
|
||||
</mapper>
|
||||
|
||||
@@ -1,101 +0,0 @@
|
||||
<?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.tagTask.mapper.TagTaskMapper">
|
||||
|
||||
<resultMap type="TagTask" id="TagTaskResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="tagId" column="tag_id" />
|
||||
<result property="jobDetailId" column="job_detail_id" />
|
||||
<result property="productId" column="product_id" />
|
||||
<result property="num" column="num" />
|
||||
<result property="status" column="status" />
|
||||
<result property="color" column="color" />
|
||||
<result property="floor" column="floor" />
|
||||
<result property="spare1" column="spare1" />
|
||||
<result property="spare2" column="spare2" />
|
||||
<result property="spare3" column="spare3" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectTagTaskVo">
|
||||
select id, tag_id, job_detail_id, product_id, num, status, color, floor, spare1, spare2, spare3 from tag_task
|
||||
</sql>
|
||||
|
||||
<select id="selectTagTaskList" parameterType="TagTask" resultMap="TagTaskResult">
|
||||
<include refid="selectTagTaskVo"/>
|
||||
<where>
|
||||
<if test="tagId != null "> and tag_id = #{tagId}</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="num != null and num != ''"> and num = #{num}</if>
|
||||
<if test="status != null and status != ''"> and status = #{status}</if>
|
||||
<if test="color != null and color != ''"> and color = #{color}</if>
|
||||
<if test="floor != null and floor != ''"> and floor = #{floor}</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>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectTagTaskById" parameterType="Long" resultMap="TagTaskResult">
|
||||
<include refid="selectTagTaskVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertTagTask" parameterType="TagTask" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into tag_task
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="tagId != null">tag_id,</if>
|
||||
<if test="jobDetailId != null">job_detail_id,</if>
|
||||
<if test="productId != null">product_id,</if>
|
||||
<if test="num != null">num,</if>
|
||||
<if test="status != null">status,</if>
|
||||
<if test="color != null">color,</if>
|
||||
<if test="floor != null">floor,</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="tagId != null">#{tagId},</if>
|
||||
<if test="jobDetailId != null">#{jobDetailId},</if>
|
||||
<if test="productId != null">#{productId},</if>
|
||||
<if test="num != null">#{num},</if>
|
||||
<if test="status != null">#{status},</if>
|
||||
<if test="color != null">#{color},</if>
|
||||
<if test="floor != null">#{floor},</if>
|
||||
<if test="spare1 != null">#{spare1},</if>
|
||||
<if test="spare2 != null">#{spare2},</if>
|
||||
<if test="spare3 != null">#{spare3},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateTagTask" parameterType="TagTask">
|
||||
update tag_task
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="tagId != null">tag_id = #{tagId},</if>
|
||||
<if test="jobDetailId != null">job_detail_id = #{jobDetailId},</if>
|
||||
<if test="productId != null">product_id = #{productId},</if>
|
||||
<if test="num != null">num = #{num},</if>
|
||||
<if test="status != null">status = #{status},</if>
|
||||
<if test="color != null">color = #{color},</if>
|
||||
<if test="floor != null">floor = #{floor},</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="deleteTagTaskById" parameterType="Long">
|
||||
delete from tag_task where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteTagTaskByIds" parameterType="String">
|
||||
delete from tag_task where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
@@ -6,7 +6,6 @@
|
||||
<select id="outMakeSure" parameterType="java.util.Map" statementType="CALLABLE">
|
||||
{call proc_out_makesure(
|
||||
#{v_tray_code,mode=IN,jdbcType=VARCHAR},
|
||||
#{v_type,mode=IN,jdbcType=VARCHAR},
|
||||
#{v_result,mode=OUT,jdbcType=INTEGER},
|
||||
#{v_resultmsg,mode=OUT,jdbcType=VARCHAR}
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user