|
|
@@ -27,10 +27,10 @@
|
|
|
<result column="companyid" property="companyId" jdbcType="BIGINT" />
|
|
|
<result column="updaterId" property="updaterId" jdbcType="INTEGER" />
|
|
|
<result column="updateTime" property="updateTime" jdbcType="TIMESTAMP" />
|
|
|
- <result column="updater" jdbcType="VARCHAR" property="updater" />
|
|
|
+ <!--<result column="updater" jdbcType="VARCHAR" property="updater" />-->
|
|
|
<result column="creatorid" property="creatorId" jdbcType="INTEGER"/>
|
|
|
<result column="createtime" property="createTime" jdbcType="TIMESTAMP" />
|
|
|
- <result column="creator" property="creator" jdbcType="VARCHAR" />
|
|
|
+ <!--<result column="creator" property="creator" jdbcType="VARCHAR" />-->
|
|
|
<result column="pi_text1" jdbcType="VARCHAR" property="pi_text1" />
|
|
|
<result column="pi_text2" jdbcType="VARCHAR" property="pi_text2" />
|
|
|
<result column="pi_text3" jdbcType="VARCHAR" property="pi_text3" />
|
|
|
@@ -39,7 +39,7 @@
|
|
|
<result column="pi_auditdate" jdbcType="TIMESTAMP" property="pi_auditdate" />
|
|
|
<result column="pi_auditman" jdbcType="VARCHAR" property="pi_auditman" />
|
|
|
<result column="pi_remark" jdbcType="VARCHAR" property="pi_remark" />
|
|
|
-
|
|
|
+ <result column="pi_ioid" jdbcType="INTEGER" property="pi_ioid" />
|
|
|
|
|
|
</resultMap>
|
|
|
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.usoftchina.saas.purchase.po.ProdInOut">
|
|
|
@@ -53,7 +53,7 @@
|
|
|
pi_custcode, pi_custname, pi_puid, pi_pucode, pi_said, pi_sacode, pi_total, pi_recordmanid,
|
|
|
pi_recordman, pi_recorddate, pi_status, pi_statuscode, pi_printstatus, pi_printstatuscode,
|
|
|
companyid, updaterid, updatetime,updater,creatorid,createtime,creator, pi_text1, pi_text2, pi_text3, pi_text4, pi_text5,pi_auditdate,
|
|
|
- pi_auditman,pi_remark
|
|
|
+ pi_auditman,pi_remark,pi_ioid
|
|
|
</sql>
|
|
|
<sql id="Blob_Column_List">
|
|
|
pi_address
|
|
|
@@ -190,6 +190,9 @@
|
|
|
<if test="pi_remark != null">
|
|
|
pi_remark,
|
|
|
</if>
|
|
|
+ <if test="pi_ioid != null">
|
|
|
+ pi_ioid,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
|
@@ -303,7 +306,9 @@
|
|
|
<if test="pi_remark != null">
|
|
|
#{pi_remark,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
-
|
|
|
+ <if test="pi_ioid != null">
|
|
|
+ #{pi_ioid,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
|
@@ -382,9 +387,9 @@
|
|
|
<if test="updateTime != null" >
|
|
|
updateTime = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
- <if test="updater != null" >
|
|
|
- updater = #{updater,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
+ <!--<if test="updater != null" >-->
|
|
|
+ <!--updater = #{updater,jdbcType=VARCHAR},-->
|
|
|
+ <!--</if>-->
|
|
|
<if test="pi_text1 != null">
|
|
|
pi_text1 = #{pi_text1,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
@@ -454,43 +459,6 @@
|
|
|
pi_remark = #{pi_remark,jdbcType=VARCHAR}
|
|
|
where pi_id = #{pi_id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
- <update id="updateByPrimaryKey" parameterType="com.usoftchina.saas.purchase.po.ProdInOut">
|
|
|
- update prodinout
|
|
|
- set pi_inoutno = #{pi_inoutno,jdbcType=VARCHAR},
|
|
|
- pi_class = #{pi_class,jdbcType=VARCHAR},
|
|
|
- pi_date = #{pi_date,jdbcType=TIMESTAMP},
|
|
|
- pi_vendid = #{pi_vendid,jdbcType=INTEGER},
|
|
|
- pi_vendcode = #{pi_vendcode,jdbcType=VARCHAR},
|
|
|
- pi_vendname = #{pi_vendname,jdbcType=VARCHAR},
|
|
|
- pi_custid = #{pi_custid,jdbcType=INTEGER},
|
|
|
- pi_custcode = #{pi_custcode,jdbcType=VARCHAR},
|
|
|
- pi_custname = #{pi_custname,jdbcType=VARCHAR},
|
|
|
- pi_puid = #{pi_puid,jdbcType=INTEGER},
|
|
|
- pi_pucode = #{pi_pucode,jdbcType=VARCHAR},
|
|
|
- pi_said = #{pi_said,jdbcType=INTEGER},
|
|
|
- pi_sacode = #{pi_sacode,jdbcType=VARCHAR},
|
|
|
- pi_total = #{pi_total,jdbcType=DOUBLE},
|
|
|
- pi_recordmanid = #{pi_recordmanid,jdbcType=INTEGER},
|
|
|
- pi_recordman = #{pi_recordman,jdbcType=VARCHAR},
|
|
|
- pi_recorddate = #{createTime,jdbcType=TIMESTAMP},
|
|
|
- pi_status = #{pi_status,jdbcType=VARCHAR},
|
|
|
- pi_statuscode = #{pi_statuscode,jdbcType=VARCHAR},
|
|
|
- pi_printstatus = #{pi_printstatus,jdbcType=VARCHAR},
|
|
|
- pi_printstatuscode = #{pi_printstatuscode,jdbcType=VARCHAR},
|
|
|
- companyid = #{companyId,jdbcType=INTEGER},
|
|
|
- updaterId = #{updaterId,jdbcType=INTEGER},
|
|
|
- updateTime = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
- updater = #{updater,jdbcType=VARCHAR},
|
|
|
- pi_text1 = #{pi_text1,jdbcType=VARCHAR},
|
|
|
- pi_text2 = #{pi_text2,jdbcType=VARCHAR},
|
|
|
- pi_text3 = #{pi_text3,jdbcType=VARCHAR},
|
|
|
- pi_text4 = #{pi_text4,jdbcType=VARCHAR},
|
|
|
- pi_text5 = #{pi_text5,jdbcType=VARCHAR},
|
|
|
- pi_auditdate = #{pi_auditdate,jdbcType=TIMESTAMP},
|
|
|
- pi_auditman = #{pi_auditman,jdbcType=VARCHAR},
|
|
|
- pi_remark = #{pi_remark,jdbcType=VARCHAR}
|
|
|
- where pi_id = #{id,jdbcType=INTEGER}
|
|
|
- </update>
|
|
|
|
|
|
<select id="validateCodeWhenInsert" resultType="int">
|
|
|
select count(1) from prodinout where pi_inoutno = #{pi_inoutno} and companyid = #{companyId}
|