mes 出库单据 入库单据回传功能
This commit is contained in:
@@ -0,0 +1,146 @@
|
||||
<?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.mes.callback.mapper.MesBillCallbackMapper">
|
||||
|
||||
<resultMap type="MesBillCallback" id="MesBillCallbackResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="inStockinId" column="in_stockin_id" />
|
||||
<result property="inStockinDetailId" column="in_stockin_detail_id" />
|
||||
<result property="status" column="status" />
|
||||
<result property="from" column="from" />
|
||||
<result property="str1" column="str1" />
|
||||
<result property="str2" column="str2" />
|
||||
<result property="str3" column="str3" />
|
||||
<result property="str4" column="str4" />
|
||||
<result property="str5" column="str5" />
|
||||
<result property="str6" column="str6" />
|
||||
<result property="str7" column="str7" />
|
||||
<result property="str8" column="str8" />
|
||||
<result property="str9" column="str9" />
|
||||
<result property="str10" column="str10" />
|
||||
<result property="num1" column="num1" />
|
||||
<result property="num2" column="num2" />
|
||||
<result property="num3" column="num3" />
|
||||
<result property="num4" column="num4" />
|
||||
<result property="num5" column="num5" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectMesBillCallbackVo">
|
||||
select id, in_stockin_id, in_stockin_detail_id, status, [from], str1, str2, str3, str4, str5, str6, str7, str8, str9, str10, num1, num2, num3, num4, num5 from mes_bill_callback
|
||||
</sql>
|
||||
|
||||
<select id="selectMesBillCallbackList" parameterType="MesBillCallback" resultMap="MesBillCallbackResult">
|
||||
<include refid="selectMesBillCallbackVo"/>
|
||||
<where>
|
||||
<if test="inStockinId != null and inStockinId != ''"> and in_stockin_id = #{inStockinId}</if>
|
||||
<if test="inStockinDetailId != null and inStockinDetailId != ''"> and in_stockin_detail_id = #{inStockinDetailId}</if>
|
||||
<if test="status != null and status != ''"> and status = #{status}</if>
|
||||
<if test="from != null and from != ''"> and [from] = #{from}</if>
|
||||
<if test="str1 != null and str1 != ''"> and str1 = #{str1}</if>
|
||||
<if test="str2 != null and str2 != ''"> and str2 = #{str2}</if>
|
||||
<if test="str3 != null and str3 != ''"> and str3 = #{str3}</if>
|
||||
<if test="str4 != null and str4 != ''"> and str4 = #{str4}</if>
|
||||
<if test="str5 != null and str5 != ''"> and str5 = #{str5}</if>
|
||||
<if test="str6 != null and str6 != ''"> and str6 = #{str6}</if>
|
||||
<if test="str7 != null and str7 != ''"> and str7 = #{str7}</if>
|
||||
<if test="str8 != null and str8 != ''"> and str8 = #{str8}</if>
|
||||
<if test="str9 != null and str9 != ''"> and str9 = #{str9}</if>
|
||||
<if test="str10 != null and str10 != ''"> and str10 = #{str10}</if>
|
||||
<if test="num1 != null "> and num1 = #{num1}</if>
|
||||
<if test="num2 != null "> and num2 = #{num2}</if>
|
||||
<if test="num3 != null "> and num3 = #{num3}</if>
|
||||
<if test="num4 != null "> and num4 = #{num4}</if>
|
||||
<if test="num5 != null "> and num5 = #{num5}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectMesBillCallbackById" parameterType="Long" resultMap="MesBillCallbackResult">
|
||||
<include refid="selectMesBillCallbackVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertMesBillCallback" parameterType="MesBillCallback" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into mes_bill_callback
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="inStockinId != null">in_stockin_id,</if>
|
||||
<if test="inStockinDetailId != null">in_stockin_detail_id,</if>
|
||||
<if test="status != null">status,</if>
|
||||
<if test="from != null">[from],</if>
|
||||
<if test="str1 != null">str1,</if>
|
||||
<if test="str2 != null">str2,</if>
|
||||
<if test="str3 != null">str3,</if>
|
||||
<if test="str4 != null">str4,</if>
|
||||
<if test="str5 != null">str5,</if>
|
||||
<if test="str6 != null">str6,</if>
|
||||
<if test="str7 != null">str7,</if>
|
||||
<if test="str8 != null">str8,</if>
|
||||
<if test="str9 != null">str9,</if>
|
||||
<if test="str10 != null">str10,</if>
|
||||
<if test="num1 != null">num1,</if>
|
||||
<if test="num2 != null">num2,</if>
|
||||
<if test="num3 != null">num3,</if>
|
||||
<if test="num4 != null">num4,</if>
|
||||
<if test="num5 != null">num5,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="inStockinId != null">#{inStockinId},</if>
|
||||
<if test="inStockinDetailId != null">#{inStockinDetailId},</if>
|
||||
<if test="status != null">#{status},</if>
|
||||
<if test="from != null">#{from},</if>
|
||||
<if test="str1 != null">#{str1},</if>
|
||||
<if test="str2 != null">#{str2},</if>
|
||||
<if test="str3 != null">#{str3},</if>
|
||||
<if test="str4 != null">#{str4},</if>
|
||||
<if test="str5 != null">#{str5},</if>
|
||||
<if test="str6 != null">#{str6},</if>
|
||||
<if test="str7 != null">#{str7},</if>
|
||||
<if test="str8 != null">#{str8},</if>
|
||||
<if test="str9 != null">#{str9},</if>
|
||||
<if test="str10 != null">#{str10},</if>
|
||||
<if test="num1 != null">#{num1},</if>
|
||||
<if test="num2 != null">#{num2},</if>
|
||||
<if test="num3 != null">#{num3},</if>
|
||||
<if test="num4 != null">#{num4},</if>
|
||||
<if test="num5 != null">#{num5},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateMesBillCallback" parameterType="MesBillCallback">
|
||||
update mes_bill_callback
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="inStockinId != null">in_stockin_id = #{inStockinId},</if>
|
||||
<if test="inStockinDetailId != null">in_stockin_detail_id = #{inStockinDetailId},</if>
|
||||
<if test="status != null">status = #{status},</if>
|
||||
<if test="from != null">[from] = #{from},</if>
|
||||
<if test="str1 != null">str1 = #{str1},</if>
|
||||
<if test="str2 != null">str2 = #{str2},</if>
|
||||
<if test="str3 != null">str3 = #{str3},</if>
|
||||
<if test="str4 != null">str4 = #{str4},</if>
|
||||
<if test="str5 != null">str5 = #{str5},</if>
|
||||
<if test="str6 != null">str6 = #{str6},</if>
|
||||
<if test="str7 != null">str7 = #{str7},</if>
|
||||
<if test="str8 != null">str8 = #{str8},</if>
|
||||
<if test="str9 != null">str9 = #{str9},</if>
|
||||
<if test="str10 != null">str10 = #{str10},</if>
|
||||
<if test="num1 != null">num1 = #{num1},</if>
|
||||
<if test="num2 != null">num2 = #{num2},</if>
|
||||
<if test="num3 != null">num3 = #{num3},</if>
|
||||
<if test="num4 != null">num4 = #{num4},</if>
|
||||
<if test="num5 != null">num5 = #{num5},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteMesBillCallbackById" parameterType="Long">
|
||||
delete from mes_bill_callback where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteMesBillCallbackByIds" parameterType="String">
|
||||
delete from mes_bill_callback where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
@@ -154,6 +154,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
#{status,mode=IN,jdbcType=VARCHAR},
|
||||
#{newStatus,mode=IN,jdbcType=VARCHAR},
|
||||
#{exitId,mode=IN,jdbcType=VARCHAR},
|
||||
#{userName,mode=IN,jdbcType=VARCHAR},
|
||||
#{v_result,mode=OUT,jdbcType=VARCHAR},
|
||||
#{v_resultString,mode=OUT,jdbcType=VARCHAR}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user