feat(module): 出库记录
出库记录 & 批量导入
This commit is contained in:
@@ -17,6 +17,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<result property="projectName" column="project_name" />
|
||||
<result property="departmentId" column="department_id" />
|
||||
<result property="departmentName" column="department_name" />
|
||||
<result property="receiverId" column="receiver_id" />
|
||||
<result property="receiver" column="receiver" />
|
||||
<result property="single" column="single" />
|
||||
<result property="reviewer" column="reviewer" />
|
||||
@@ -24,6 +25,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<result property="modifier" column="modifier" />
|
||||
<result property="materialClassId" column="material_class_id" />
|
||||
<result property="materialClassName" column="material_class_name" />
|
||||
<result property="materialId" column="material_id" />
|
||||
<result property="materialName" column="material_name" />
|
||||
<result property="materialSpecification" column="material_specification" />
|
||||
<result property="materialUnit" column="material_unit" />
|
||||
@@ -37,7 +39,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectWzStockOutVo">
|
||||
select stock_out_code, doc_date, create_date, doc_id, business_type, repository_id, repository_name, project_classification, project_id, project_name, department_id, department_name, receiver, single, reviewer, review_date, modifier, material_class_id, material_class_name, material_name, material_specification, material_unit, count, batch_id, production_date, shelf_life, shelf_life_unit, expiration_date, agent from wz_stock_out
|
||||
select stock_out_code, doc_date, create_date, doc_id, business_type, repository_id, repository_name, project_classification, project_id, project_name, department_id, department_name,receiver_id, receiver, single, reviewer, review_date, modifier, material_class_id, material_class_name, material_id,material_name, material_specification, material_unit, count, batch_id, production_date, shelf_life, shelf_life_unit, expiration_date, agent from wz_stock_out
|
||||
</sql>
|
||||
|
||||
<select id="selectWzStockOutList" parameterType="WzStockOut" resultMap="WzStockOutResult">
|
||||
@@ -70,6 +72,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="projectName != null">project_name,</if>
|
||||
<if test="departmentId != null">department_id,</if>
|
||||
<if test="departmentName != null">department_name,</if>
|
||||
<if test="receiverId != null">receiver_id,</if>
|
||||
<if test="receiver != null">receiver,</if>
|
||||
<if test="single != null">single,</if>
|
||||
<if test="reviewer != null">reviewer,</if>
|
||||
@@ -77,6 +80,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="modifier != null">modifier,</if>
|
||||
<if test="materialClassId != null">material_class_id,</if>
|
||||
<if test="materialClassName != null">material_class_name,</if>
|
||||
<if test="materialId != null">material_id,</if>
|
||||
<if test="materialName != null">material_name,</if>
|
||||
<if test="materialSpecification != null">material_specification,</if>
|
||||
<if test="materialUnit != null">material_unit,</if>
|
||||
@@ -100,6 +104,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="projectName != null">#{projectName},</if>
|
||||
<if test="departmentId != null">#{departmentId},</if>
|
||||
<if test="departmentName != null">#{departmentName},</if>
|
||||
<if test="receiverId != null">#{receiverId},</if>
|
||||
<if test="receiver != null">#{receiver},</if>
|
||||
<if test="single != null">#{single},</if>
|
||||
<if test="reviewer != null">#{reviewer},</if>
|
||||
@@ -107,6 +112,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="modifier != null">#{modifier},</if>
|
||||
<if test="materialClassId != null">#{materialClassId},</if>
|
||||
<if test="materialClassName != null">#{materialClassName},</if>
|
||||
<if test="materialId != null">#{materialId},</if>
|
||||
<if test="materialName != null">#{materialName},</if>
|
||||
<if test="materialSpecification != null">#{materialSpecification},</if>
|
||||
<if test="materialUnit != null">#{materialUnit},</if>
|
||||
@@ -134,6 +140,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="projectName != null">project_name = #{projectName},</if>
|
||||
<if test="departmentId != null">department_id = #{departmentId},</if>
|
||||
<if test="departmentName != null">department_name = #{departmentName},</if>
|
||||
<if test="receiverId != null">receiver_id = #{receiverId},</if>
|
||||
<if test="receiver != null">receiver = #{receiver},</if>
|
||||
<if test="single != null">single = #{single},</if>
|
||||
<if test="reviewer != null">reviewer = #{reviewer},</if>
|
||||
@@ -141,6 +148,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="modifier != null">modifier = #{modifier},</if>
|
||||
<if test="materialClassId != null">material_class_id = #{materialClassId},</if>
|
||||
<if test="materialClassName != null">material_class_name = #{materialClassName},</if>
|
||||
<if test="materialId != null">material_id = #{materialId},</if>
|
||||
<if test="materialName != null">material_name = #{materialName},</if>
|
||||
<if test="materialSpecification != null">material_specification = #{materialSpecification},</if>
|
||||
<if test="materialUnit != null">material_unit = #{materialUnit},</if>
|
||||
@@ -165,4 +173,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
#{stockOutCode}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
<select id="getEarliestStockOut" resultMap="WzStockOutResult">
|
||||
SELECT * FROM wz_stock_out ORDER BY create_date DESC LIMIT 1
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user