盘点管理 单据确认 单据审核 单据作废 盘点新增
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.check.stockcheckdetail.mapper.CheckStockinDetailMapper">
|
||||
|
||||
|
||||
<resultMap type="CheckStockinDetail" id="CheckStockinDetailResult">
|
||||
<result property="stockCheckDetailId" column="stock_check_detail_id" />
|
||||
<result property="stockCheckGuid" column="stock_check_guid" />
|
||||
@@ -43,7 +43,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
|
||||
<select id="selectCheckStockinDetailList" parameterType="CheckStockinDetail" resultMap="CheckStockinDetailResult">
|
||||
<include refid="selectCheckStockinDetailVo"/>
|
||||
<where>
|
||||
<where>
|
||||
<if test="stockCheckGuid != null and stockCheckGuid != ''"> and stock_check_guid = #{stockCheckGuid}</if>
|
||||
<if test="stockCheckId != null and stockCheckId != ''"> and stock_check_id = #{stockCheckId}</if>
|
||||
<if test="lotNo != null and lotNo != ''"> and lot_no = #{lotNo}</if>
|
||||
@@ -74,7 +74,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="spare6 != null and spare6 != ''"> and spare6 = #{spare6}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
|
||||
<select id="selectCheckStockinDetailByStockCheckDetailId" parameterType="String" resultMap="CheckStockinDetailResult">
|
||||
<include refid="selectCheckStockinDetailVo"/>
|
||||
where stock_check_detail_id = #{stockCheckDetailId}
|
||||
@@ -147,6 +147,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="spare6 != null">#{spare6},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<insert id="insertCheckStockinDetailHistory">
|
||||
insert into check_stockin_detail_finish
|
||||
select * from check_stockin_detail where stock_check_guid = #{stockCheckGuid}
|
||||
</insert>
|
||||
|
||||
<update id="updateCheckStockinDetail" parameterType="CheckStockinDetail">
|
||||
update check_stockin_detail
|
||||
@@ -189,9 +193,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</delete>
|
||||
|
||||
<delete id="deleteCheckStockinDetailByStockCheckDetailIds" parameterType="String">
|
||||
delete from check_stockin_detail where stock_check_detail_id in
|
||||
delete from check_stockin_detail where stock_check_detail_id in
|
||||
<foreach item="stockCheckDetailId" collection="array" open="(" separator="," close=")">
|
||||
#{stockCheckDetailId}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
<delete id="deleteCheckStockinDetailByStockinGuid">
|
||||
delete from check_stockin_detail where stock_check_guid = #{stockCheckGuid}
|
||||
</delete>
|
||||
</mapper>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.check.stockcheck.mapper.CheckStockinMapper">
|
||||
|
||||
|
||||
<resultMap type="CheckStockin" id="CheckStockinResult">
|
||||
<result property="stockGuid" column="stock_guid" />
|
||||
<result property="stockCheckId" column="stock_check_id" />
|
||||
@@ -32,7 +32,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
|
||||
<select id="selectCheckStockinList" parameterType="CheckStockin" resultMap="CheckStockinResult">
|
||||
<include refid="selectCheckStockinVo"/>
|
||||
<where>
|
||||
<where>
|
||||
<if test="stockCheckId != null and stockCheckId != ''"> and stock_check_id = #{stockCheckId}</if>
|
||||
<if test="checkType != null and checkType != ''"> and check_type = #{checkType}</if>
|
||||
<if test="createDate != null and createDate != ''"> and create_date = #{createDate}</if>
|
||||
@@ -53,7 +53,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="spare5 != null and spare5 != ''"> and spare5 = #{spare5}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
|
||||
<select id="selectCheckStockinByStockGuid" parameterType="String" resultMap="CheckStockinResult">
|
||||
<include refid="selectCheckStockinVo"/>
|
||||
where stock_guid = #{stockGuid}
|
||||
@@ -104,6 +104,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="spare5 != null">#{spare5},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<insert id="insertCheckStockinHistory">
|
||||
insert into check_stockin_finish
|
||||
select * from check_stockin where stock_guid = #{stockGuid}
|
||||
</insert>
|
||||
|
||||
<update id="updateCheckStockin" parameterType="CheckStockin">
|
||||
update check_stockin
|
||||
@@ -135,9 +139,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</delete>
|
||||
|
||||
<delete id="deleteCheckStockinByStockGuids" parameterType="String">
|
||||
delete from check_stockin where stock_guid in
|
||||
delete from check_stockin where stock_guid in
|
||||
<foreach item="stockGuid" collection="array" open="(" separator="," close=")">
|
||||
#{stockGuid}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user