feat: 打通出库作业链路
This commit is contained in:
@@ -3,31 +3,61 @@
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.out.stockout.mapper.OutStockoutMapper">
|
||||
|
||||
|
||||
<resultMap type="OutStockout" id="OutStockoutResult">
|
||||
<result property="stockoutId" column="stockout_id" />
|
||||
<result property="outType" column="out_type" />
|
||||
<result property="stockSource" column="stock_source" />
|
||||
<result property="status" column="status" />
|
||||
<result property="createDate" column="create_date" />
|
||||
<result property="startDate" column="start_date" />
|
||||
<result property="finishDate" column="finish_date" />
|
||||
<result property="erpBill" column="erp_bill" />
|
||||
<result property="warehouseId" column="warehouse_id" />
|
||||
<result property="warehouseName" column="warehouse_name" />
|
||||
<result property="userId" column="user_id" />
|
||||
<result property="userName" column="user_name" />
|
||||
<result property="deptId" column="dept_id" />
|
||||
<result property="deptName" column="dept_name" />
|
||||
<result property="customerId" column="customer_id" />
|
||||
<result property="customerName" column="customer_name" />
|
||||
<result property="stockoutId" column="stockout_id" />
|
||||
<result property="outType" column="out_type" />
|
||||
<result property="stockSource" column="stock_source" />
|
||||
<result property="status" column="status" />
|
||||
<result property="createDate" column="create_date" />
|
||||
<result property="startDate" column="start_date" />
|
||||
<result property="finishDate" column="finish_date" />
|
||||
<result property="erpBill" column="erp_bill" />
|
||||
<result property="warehouseId" column="warehouse_id" />
|
||||
<result property="warehouseName" column="warehouse_name" />
|
||||
<result property="userId" column="user_id" />
|
||||
<result property="userName" column="user_name" />
|
||||
<result property="deptId" column="dept_id" />
|
||||
<result property="deptName" column="dept_name" />
|
||||
<result property="customerId" column="customer_id" />
|
||||
<result property="customerName" column="customer_name" />
|
||||
<result property="documentN" column="document_n" />
|
||||
<result property="documentDat" column="document_dat" />
|
||||
<result property="projectNam" column="project_nam" />
|
||||
<result property="counterpart" column="counterpart" />
|
||||
<result property="receivingOr" column="receiving_or" />
|
||||
<result property="purchasingOr" column="purchasing_or" />
|
||||
<result property="receivingDep" column="receiving_dep" />
|
||||
<result property="purchasingDep" column="purchasing_dep" />
|
||||
<result property="handle" column="handle" />
|
||||
<result property="creato" column="creato" />
|
||||
<result property="logisticsCompany" column="logistics_" />
|
||||
<result property="logisticsN" column="logistics_n" />
|
||||
<result property="warehous" column="warehous" />
|
||||
<result property="printCoun" column="print_coun" />
|
||||
<result property="tota" column="tota" />
|
||||
<result property="reviewe" column="reviewe" />
|
||||
<result property="createDat" column="create_dat" />
|
||||
<result property="reviewDat" column="review_dat" />
|
||||
<result property="receive" column="receive" />
|
||||
<result property="receiverA" column="receiver_a" />
|
||||
<result property="receiverPhon" column="receiver_phon" />
|
||||
<result property="materialRe" column="material_re" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectOutStockoutVo">
|
||||
select stockout_id, out_type, stock_source, status, create_date, start_date, finish_date, erp_bill, warehouse_id, warehouse_name, user_id, user_name, dept_id, dept_name, customer_id, customer_name from out_stockout
|
||||
select stockout_id, out_type, stock_source, status, create_date, start_date, finish_date, erp_bill, warehouse_id, warehouse_name, user_id, user_name, dept_id, dept_name, customer_id, customer_name,
|
||||
document_n, document_dat, project_nam, counterpart, receiving_or, purchasing_or, receiving_dep, purchasing_dep,
|
||||
handle, creato, logistics_, logistics_n, warehous, print_coun, tota, reviewe, create_dat, review_dat,
|
||||
receive, receiver_a, receiver_phon, material_re
|
||||
from out_stockout
|
||||
</sql>
|
||||
<sql id="selectOutStockoutFinishVo">
|
||||
select stockout_id, out_type, stock_source, status, create_date, start_date, finish_date, erp_bill, warehouse_id, warehouse_name, user_id, user_name, dept_id, dept_name, customer_id, customer_name from out_stockout_finish
|
||||
select stockout_id, out_type, stock_source, status, create_date, start_date, finish_date, erp_bill, warehouse_id, warehouse_name, user_id, user_name, dept_id, dept_name, customer_id, customer_name,
|
||||
document_n, document_dat, project_nam, counterpart, receiving_or, purchasing_or, receiving_dep, purchasing_dep,
|
||||
handle, creato, logistics_, logistics_n, warehous, print_coun, tota, reviewe, create_dat, review_dat,
|
||||
receive, receiver_a, receiver_phon, material_re
|
||||
from out_stockout_finish
|
||||
</sql>
|
||||
|
||||
<select id="selectOutStockoutList" parameterType="OutStockout" resultMap="OutStockoutResult">
|
||||
@@ -44,6 +74,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="userName != null and userName != ''"> and user_name like concat('%', #{userName}, '%')</if>
|
||||
<if test="deptName != null and deptName != ''"> and dept_name like concat('%', #{deptName}, '%')</if>
|
||||
<if test="customerName != null and customerName != ''"> and customer_name like concat('%', #{customerName}, '%')</if>
|
||||
<if test="documentN != null and documentN != ''"> and document_n like concat('%', #{documentN}, '%')</if>
|
||||
<if test="projectNam != null and projectNam != ''"> and project_nam like concat('%', #{projectNam}, '%')</if>
|
||||
<if test="counterpart != null and counterpart != ''"> and counterpart like concat('%', #{counterpart}, '%')</if>
|
||||
${params.warehouseScope}
|
||||
</where>
|
||||
</select>
|
||||
@@ -66,6 +99,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="userName != null and userName != ''"> and user_name like concat('%', #{userName}, '%')</if>
|
||||
<if test="deptName != null and deptName != ''"> and dept_name like concat('%', #{deptName}, '%')</if>
|
||||
<if test="customerName != null and customerName != ''"> and customer_name like concat('%', #{customerName}, '%')</if>
|
||||
<if test="documentN != null and documentN != ''"> and document_n like concat('%', #{documentN}, '%')</if>
|
||||
<if test="projectNam != null and projectNam != ''"> and project_nam like concat('%', #{projectNam}, '%')</if>
|
||||
<if test="counterpart != null and counterpart != ''"> and counterpart like concat('%', #{counterpart}, '%')</if>
|
||||
${params.warehouseScope}
|
||||
</where>
|
||||
</select>
|
||||
@@ -96,6 +132,28 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="deptName != null and deptName != ''">dept_name,</if>
|
||||
<if test="customerId != null">customer_id,</if>
|
||||
<if test="customerName != null">customer_name,</if>
|
||||
<if test="documentN != null and documentN != ''">document_n,</if>
|
||||
<if test="documentDat != null">document_dat,</if>
|
||||
<if test="projectNam != null and projectNam != ''">project_nam,</if>
|
||||
<if test="counterpart != null and counterpart != ''">counterpart,</if>
|
||||
<if test="receivingOr != null and receivingOr != ''">receiving_or,</if>
|
||||
<if test="purchasingOr != null and purchasingOr != ''">purchasing_or,</if>
|
||||
<if test="receivingDep != null and receivingDep != ''">receiving_dep,</if>
|
||||
<if test="purchasingDep != null and purchasingDep != ''">purchasing_dep,</if>
|
||||
<if test="handle != null and handle != ''">handle,</if>
|
||||
<if test="creato != null and creato != ''">creato,</if>
|
||||
<if test="logisticsCompany != null and logisticsCompany != ''">logistics_,</if>
|
||||
<if test="logisticsN != null and logisticsN != ''">logistics_n,</if>
|
||||
<if test="warehous != null and warehous != ''">warehous,</if>
|
||||
<if test="printCoun != null">print_coun,</if>
|
||||
<if test="tota != null">tota,</if>
|
||||
<if test="reviewe != null and reviewe != ''">reviewe,</if>
|
||||
<if test="createDat != null">create_dat,</if>
|
||||
<if test="reviewDat != null">review_dat,</if>
|
||||
<if test="receive != null and receive != ''">receive,</if>
|
||||
<if test="receiverA != null and receiverA != ''">receiver_a,</if>
|
||||
<if test="receiverPhon != null and receiverPhon != ''">receiver_phon,</if>
|
||||
<if test="materialRe != null and materialRe != ''">material_re,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="stockoutId != null">#{stockoutId},</if>
|
||||
@@ -114,6 +172,28 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="deptName != null and deptName != ''">#{deptName},</if>
|
||||
<if test="customerId != null">#{customerId},</if>
|
||||
<if test="customerName != null">#{customerName},</if>
|
||||
<if test="documentN != null and documentN != ''">#{documentN},</if>
|
||||
<if test="documentDat != null">#{documentDat},</if>
|
||||
<if test="projectNam != null and projectNam != ''">#{projectNam},</if>
|
||||
<if test="counterpart != null and counterpart != ''">#{counterpart},</if>
|
||||
<if test="receivingOr != null and receivingOr != ''">#{receivingOr},</if>
|
||||
<if test="purchasingOr != null and purchasingOr != ''">#{purchasingOr},</if>
|
||||
<if test="receivingDep != null and receivingDep != ''">#{receivingDep},</if>
|
||||
<if test="purchasingDep != null and purchasingDep != ''">#{purchasingDep},</if>
|
||||
<if test="handle != null and handle != ''">#{handle},</if>
|
||||
<if test="creato != null and creato != ''">#{creato},</if>
|
||||
<if test="logisticsCompany != null and logisticsCompany != ''">#{logisticsCompany},</if>
|
||||
<if test="logisticsN != null and logisticsN != ''">#{logisticsN},</if>
|
||||
<if test="warehous != null and warehous != ''">#{warehous},</if>
|
||||
<if test="printCoun != null">#{printCoun},</if>
|
||||
<if test="tota != null">#{tota},</if>
|
||||
<if test="reviewe != null and reviewe != ''">#{reviewe},</if>
|
||||
<if test="createDat != null">#{createDat},</if>
|
||||
<if test="reviewDat != null">#{reviewDat},</if>
|
||||
<if test="receive != null and receive != ''">#{receive},</if>
|
||||
<if test="receiverA != null and receiverA != ''">#{receiverA},</if>
|
||||
<if test="receiverPhon != null and receiverPhon != ''">#{receiverPhon},</if>
|
||||
<if test="materialRe != null and materialRe != ''">#{materialRe},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
@@ -135,6 +215,28 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="deptName != null and deptName != ''">dept_name = #{deptName},</if>
|
||||
<if test="customerId != null">customer_id = #{customerId},</if>
|
||||
<if test="customerName != null">customer_name = #{customerName},</if>
|
||||
<if test="documentN != null and documentN != ''">document_n = #{documentN},</if>
|
||||
<if test="documentDat != null">document_dat = #{documentDat},</if>
|
||||
<if test="projectNam != null and projectNam != ''">project_nam = #{projectNam},</if>
|
||||
<if test="counterpart != null and counterpart != ''">counterpart = #{counterpart},</if>
|
||||
<if test="receivingOr != null and receivingOr != ''">receiving_or = #{receivingOr},</if>
|
||||
<if test="purchasingOr != null and purchasingOr != ''">purchasing_or = #{purchasingOr},</if>
|
||||
<if test="receivingDep != null and receivingDep != ''">receiving_dep = #{receivingDep},</if>
|
||||
<if test="purchasingDep != null and purchasingDep != ''">purchasing_dep = #{purchasingDep},</if>
|
||||
<if test="handle != null and handle != ''">handle = #{handle},</if>
|
||||
<if test="creato != null and creato != ''">creato = #{creato},</if>
|
||||
<if test="logisticsCompany != null and logisticsCompany != ''">logistics_ = #{logisticsCompany},</if>
|
||||
<if test="logisticsN != null and logisticsN != ''">logistics_n = #{logisticsN},</if>
|
||||
<if test="warehous != null and warehous != ''">warehous = #{warehous},</if>
|
||||
<if test="printCoun != null">print_coun = #{printCoun},</if>
|
||||
<if test="tota != null">tota = #{tota},</if>
|
||||
<if test="reviewe != null and reviewe != ''">reviewe = #{reviewe},</if>
|
||||
<if test="createDat != null">create_dat = #{createDat},</if>
|
||||
<if test="reviewDat != null">review_dat = #{reviewDat},</if>
|
||||
<if test="receive != null and receive != ''">receive = #{receive},</if>
|
||||
<if test="receiverA != null and receiverA != ''">receiver_a = #{receiverA},</if>
|
||||
<if test="receiverPhon != null and receiverPhon != ''">receiver_phon = #{receiverPhon},</if>
|
||||
<if test="materialRe != null and materialRe != ''">material_re = #{materialRe},</if>
|
||||
</trim>
|
||||
where stockout_id = #{stockoutId}
|
||||
</update>
|
||||
@@ -165,4 +267,4 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
#{stockoutId}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user