|
|
@@ -35,6 +35,8 @@
|
|
|
<result column="pi_remark" jdbcType="VARCHAR" property="pi_remark" />
|
|
|
<result column="pi_iocode" jdbcType="VARCHAR" property="pi_iocode" />
|
|
|
<result column="pi_ioid" jdbcType="INTEGER" property="pi_ioid" />
|
|
|
+ <result column="pi_prstatus" jdbcType="VARCHAR" property="pi_prstatus" />
|
|
|
+ <result column="pi_prstatuscode" jdbcType="VARCHAR" property="pi_prstatuscode" />
|
|
|
</resultMap>
|
|
|
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.usoftchina.saas.storage.po.ProdInOut">
|
|
|
<result column="pi_address" jdbcType="LONGVARCHAR" property="pi_address" />
|
|
|
@@ -100,7 +102,7 @@
|
|
|
<sql id="Base_Column_List">
|
|
|
pi_id, pi_inoutno, pi_class, pi_date, pi_vendid, pi_vendcode, pi_vendname, pi_custid,
|
|
|
pi_custcode, pi_custname, pi_puid, pi_pucode, pi_said, pi_sacode, pi_total, pi_status, pi_statuscode, pi_printstatus, pi_printstatuscode,
|
|
|
- companyid, updaterid, updatetime, pi_text1, pi_text2, pi_text3, pi_text4, pi_text5
|
|
|
+ companyid, updaterid, updatetime, pi_text1, pi_text2, pi_text3, pi_text4, pi_text5,pi_prstatus,pi_prstatuscode
|
|
|
</sql>
|
|
|
<sql id="Blob_Column_List">
|
|
|
pi_address,pi_remark
|
|
|
@@ -125,7 +127,7 @@
|
|
|
pi_printstatuscode, companyid, updaterid,
|
|
|
updatetime, pi_text1, pi_text2,
|
|
|
pi_text3, pi_text4, pi_text5,
|
|
|
- pi_address,pi_remark)
|
|
|
+ pi_address,pi_remark,pi_prstatus,pi_prstatuscode)
|
|
|
values (#{pi_id,jdbcType=INTEGER}, #{pi_inoutno,jdbcType=VARCHAR}, #{pi_class,jdbcType=VARCHAR},
|
|
|
#{pi_date,jdbcType=TIMESTAMP}, #{pi_vendid,jdbcType=INTEGER}, #{pi_vendcode,jdbcType=VARCHAR},
|
|
|
#{pi_vendname,jdbcType=VARCHAR}, #{pi_custid,jdbcType=INTEGER}, #{pi_custcode,jdbcType=VARCHAR},
|
|
|
@@ -136,7 +138,7 @@
|
|
|
#{updatetime,jdbcType=TIMESTAMP}, #{pi_text1,jdbcType=VARCHAR}, #{pi_text2,jdbcType=VARCHAR},
|
|
|
#{pi_text3,jdbcType=VARCHAR}, #{pi_text4,jdbcType=VARCHAR}, #{pi_text5,jdbcType=VARCHAR},
|
|
|
#{pi_address,jdbcType=LONGVARCHAR},
|
|
|
- #{pi_remark,jdbcType=LONGVARCHAR})
|
|
|
+ #{pi_remark,jdbcType=LONGVARCHAR}, #{pi_prstatus,jdbcType=VARCHAR}, #{pi_prstatuscode,jdbcType=VARCHAR})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.usoftchina.saas.storage.po.ProdInOut">
|
|
|
<selectKey resultType="java.lang.Long" keyProperty="id">
|
|
|
@@ -235,6 +237,12 @@
|
|
|
<if test="pi_ioid != null">
|
|
|
pi_ioid,
|
|
|
</if>
|
|
|
+ <if test="pi_prstatus!=null">
|
|
|
+ pi_prstatus,
|
|
|
+ </if>
|
|
|
+ <if test="pi_prstatuscode!=null">
|
|
|
+ pi_prstatuscode,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
|
@@ -323,11 +331,17 @@
|
|
|
#{pi_remark,jdbcType=LONGVARCHAR},
|
|
|
</if>
|
|
|
<if test="pi_iocode != null">
|
|
|
- #{pi_iocode,jdbcType=LONGVARCHAR},
|
|
|
+ #{pi_iocode,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="pi_ioid != null">
|
|
|
#{pi_ioid},
|
|
|
</if>
|
|
|
+ <if test="pi_prstatus!=null">
|
|
|
+ #{pi_prstatus,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="pi_prstatuscode!=null">
|
|
|
+ #{pi_prstatuscode,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.usoftchina.saas.storage.po.ProdInOut">
|
|
|
@@ -417,6 +431,12 @@
|
|
|
<if test="pi_remark != null">
|
|
|
pi_remark = #{pi_remark,jdbcType=LONGVARCHAR},
|
|
|
</if>
|
|
|
+ <if test="pi_prstatus!=null">
|
|
|
+ pi_prstatus = #{pi_prstatus,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="pi_prstatuscode!=null">
|
|
|
+ pi_prstatuscode = #{pi_prstatuscode,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where pi_id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
@@ -449,7 +469,9 @@
|
|
|
pi_text4 = #{pi_text4,jdbcType=VARCHAR},
|
|
|
pi_text5 = #{pi_text5,jdbcType=VARCHAR},
|
|
|
pi_address = #{pi_address,jdbcType=LONGVARCHAR},
|
|
|
- pi_remark = #{pi_remark,jdbcType=LONGVARCHAR}
|
|
|
+ pi_remark = #{pi_remark,jdbcType=LONGVARCHAR},
|
|
|
+ pi_prstatus= #{pi_prstatus,jdbcType=VARCHAR},
|
|
|
+ pi_prstatuscode= #{pi_prstatuscode,jdbcType=VARCHAR}
|
|
|
where pi_id = #{pi_id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
<update id="updateByPrimaryKey" parameterType="com.usoftchina.saas.storage.po.ProdInOut">
|
|
|
@@ -481,7 +503,9 @@
|
|
|
pi_text4 = #{pi_text4,jdbcType=VARCHAR},
|
|
|
pi_text5 = #{pi_text5,jdbcType=VARCHAR},
|
|
|
pi_address = #{pi_address,jdbcType=LONGVARCHAR},
|
|
|
- pi_remark = #{pi_remark,jdbcType=LONGVARCHAR}
|
|
|
+ pi_remark = #{pi_remark,jdbcType=LONGVARCHAR},
|
|
|
+ pi_prstatus= #{pi_prstatus,jdbcType=VARCHAR},
|
|
|
+ pi_prstatuscode= #{pi_prstatuscode,jdbcType=VARCHAR}
|
|
|
where pi_id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
<select id="selectCodeById" resultType="string" parameterType="long">
|