|
@@ -24,9 +24,13 @@
|
|
|
<result column="pi_statuscode" jdbcType="VARCHAR" property="pi_statuscode" />
|
|
<result column="pi_statuscode" jdbcType="VARCHAR" property="pi_statuscode" />
|
|
|
<result column="pi_printstatus" jdbcType="VARCHAR" property="pi_printstatus" />
|
|
<result column="pi_printstatus" jdbcType="VARCHAR" property="pi_printstatus" />
|
|
|
<result column="pi_printstatuscode" jdbcType="VARCHAR" property="pi_printstatuscode" />
|
|
<result column="pi_printstatuscode" jdbcType="VARCHAR" property="pi_printstatuscode" />
|
|
|
- <result column="companyid" jdbcType="INTEGER" property="companyId" />
|
|
|
|
|
- <result column="updaterid" jdbcType="INTEGER" property="updaterId" />
|
|
|
|
|
- <result column="updatetime" jdbcType="TIMESTAMP" property="updateTime" />
|
|
|
|
|
|
|
+ <result column="companyid" property="companyId" jdbcType="BIGINT" />
|
|
|
|
|
+ <result column="updaterId" property="updaterId" jdbcType="INTEGER" />
|
|
|
|
|
+ <result column="updaterName" jdbcType="VARCHAR" property="updaterName" />
|
|
|
|
|
+ <result column="updateTime" property="updateTime" jdbcType="TIMESTAMP" />
|
|
|
|
|
+ <result column="creatorid" property="creatorId" jdbcType="INTEGER"/>
|
|
|
|
|
+ <result column="creatorName" jdbcType="VARCHAR" property="creatorName" />
|
|
|
|
|
+ <result column="createtime" property="createTime" jdbcType="TIMESTAMP" />
|
|
|
<result column="pi_text1" jdbcType="VARCHAR" property="pi_text1" />
|
|
<result column="pi_text1" jdbcType="VARCHAR" property="pi_text1" />
|
|
|
<result column="pi_text2" jdbcType="VARCHAR" property="pi_text2" />
|
|
<result column="pi_text2" jdbcType="VARCHAR" property="pi_text2" />
|
|
|
<result column="pi_text3" jdbcType="VARCHAR" property="pi_text3" />
|
|
<result column="pi_text3" jdbcType="VARCHAR" property="pi_text3" />
|
|
@@ -35,7 +39,7 @@
|
|
|
<result column="pi_auditdate" jdbcType="TIMESTAMP" property="pi_auditdate" />
|
|
<result column="pi_auditdate" jdbcType="TIMESTAMP" property="pi_auditdate" />
|
|
|
<result column="pi_auditman" jdbcType="VARCHAR" property="pi_auditman" />
|
|
<result column="pi_auditman" jdbcType="VARCHAR" property="pi_auditman" />
|
|
|
<result column="pi_remark" jdbcType="VARCHAR" property="pi_remark" />
|
|
<result column="pi_remark" jdbcType="VARCHAR" property="pi_remark" />
|
|
|
-
|
|
|
|
|
|
|
+ <result column="pi_ioid" jdbcType="INTEGER" property="pi_ioid" />
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.usoftchina.saas.storage.po.ProdInOut">
|
|
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.usoftchina.saas.storage.po.ProdInOut">
|
|
|
<result column="pi_address" jdbcType="LONGVARCHAR" property="pi_address" />
|
|
<result column="pi_address" jdbcType="LONGVARCHAR" property="pi_address" />
|
|
@@ -47,8 +51,8 @@
|
|
|
pi_id, pi_inoutno, pi_class, pi_date, pi_vendid, pi_vendcode, pi_vendname, pi_custid,
|
|
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_recordmanid,
|
|
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,
|
|
pi_recordman, pi_recorddate, pi_status, pi_statuscode, pi_printstatus, pi_printstatuscode,
|
|
|
- companyid, updaterid, updatetime, pi_text1, pi_text2, pi_text3, pi_text4, pi_text5,pi_auditdate,
|
|
|
|
|
- pi_auditman,pi_remark
|
|
|
|
|
|
|
+ companyid, updaterid,updaterName,updatetime,creatorid,creatorName,createtime, pi_text1, pi_text2, pi_text3, pi_text4, pi_text5,pi_auditdate,
|
|
|
|
|
+ pi_auditman,pi_remark,pi_ioid
|
|
|
</sql>
|
|
</sql>
|
|
|
<sql id="Blob_Column_List">
|
|
<sql id="Blob_Column_List">
|
|
|
pi_address
|
|
pi_address
|
|
@@ -121,9 +125,6 @@
|
|
|
<if test="pi_recordman != null">
|
|
<if test="pi_recordman != null">
|
|
|
pi_recordman,
|
|
pi_recordman,
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="createTime != null">
|
|
|
|
|
- pi_recorddate,
|
|
|
|
|
- </if>
|
|
|
|
|
<if test="pi_status != null">
|
|
<if test="pi_status != null">
|
|
|
pi_status,
|
|
pi_status,
|
|
|
</if>
|
|
</if>
|
|
@@ -136,14 +137,27 @@
|
|
|
<if test="pi_printstatuscode != null">
|
|
<if test="pi_printstatuscode != null">
|
|
|
pi_printstatuscode,
|
|
pi_printstatuscode,
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="companyId != null">
|
|
|
|
|
|
|
+
|
|
|
|
|
+ <if test="companyId != null" >
|
|
|
companyid,
|
|
companyid,
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="updaterId != null">
|
|
|
|
|
- updaterid,
|
|
|
|
|
|
|
+ <if test="updaterId != null" >
|
|
|
|
|
+ updaterId,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="updaterName != null" >
|
|
|
|
|
+ updaterName,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="updateTime != null" >
|
|
|
|
|
+ updateTime,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="creatorId != null" >
|
|
|
|
|
+ creatorId,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="creatorName != null" >
|
|
|
|
|
+ creatorName,
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="updateTime != null">
|
|
|
|
|
- updatetime,
|
|
|
|
|
|
|
+ <if test="createTime != null" >
|
|
|
|
|
+ createTime,
|
|
|
</if>
|
|
</if>
|
|
|
<if test="pi_text1 != null">
|
|
<if test="pi_text1 != null">
|
|
|
pi_text1,
|
|
pi_text1,
|
|
@@ -172,6 +186,9 @@
|
|
|
<if test="pi_remark != null">
|
|
<if test="pi_remark != null">
|
|
|
pi_remark,
|
|
pi_remark,
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="pi_ioid != null">
|
|
|
|
|
+ pi_ioid,
|
|
|
|
|
+ </if>
|
|
|
</trim>
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
|
|
@@ -223,9 +240,6 @@
|
|
|
<if test="pi_recordman != null">
|
|
<if test="pi_recordman != null">
|
|
|
#{pi_recordman,jdbcType=VARCHAR},
|
|
#{pi_recordman,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="createTime != null">
|
|
|
|
|
- #{createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
- </if>
|
|
|
|
|
<if test="pi_status != null">
|
|
<if test="pi_status != null">
|
|
|
#{pi_status,jdbcType=VARCHAR},
|
|
#{pi_status,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
@@ -238,15 +252,29 @@
|
|
|
<if test="pi_printstatuscode != null">
|
|
<if test="pi_printstatuscode != null">
|
|
|
#{pi_printstatuscode,jdbcType=VARCHAR},
|
|
#{pi_printstatuscode,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="companyId != null">
|
|
|
|
|
|
|
+
|
|
|
|
|
+ <if test="companyId != null" >
|
|
|
#{companyId,jdbcType=INTEGER},
|
|
#{companyId,jdbcType=INTEGER},
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="updaterId != null">
|
|
|
|
|
|
|
+ <if test="updaterId != null" >
|
|
|
#{updaterId,jdbcType=INTEGER},
|
|
#{updaterId,jdbcType=INTEGER},
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="updateTime != null">
|
|
|
|
|
|
|
+ <if test="updaterName != null">
|
|
|
|
|
+ #{updaterName,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="updateTime != null" >
|
|
|
#{updateTime,jdbcType=TIMESTAMP},
|
|
#{updateTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="creatorId != null" >
|
|
|
|
|
+ #{creatorId,jdbcType=INTEGER},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="creatorName != null">
|
|
|
|
|
+ #{creatorName,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+
|
|
|
|
|
+ <if test="createTime != null" >
|
|
|
|
|
+ #{createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
+ </if>
|
|
|
<if test="pi_text1 != null">
|
|
<if test="pi_text1 != null">
|
|
|
#{pi_text1,jdbcType=VARCHAR},
|
|
#{pi_text1,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
@@ -274,6 +302,9 @@
|
|
|
<if test="pi_remark != null">
|
|
<if test="pi_remark != null">
|
|
|
#{pi_remark,jdbcType=VARCHAR},
|
|
#{pi_remark,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="pi_ioid != null">
|
|
|
|
|
+ #{pi_ioid,jdbcType=INTEGER},
|
|
|
|
|
+ </if>
|
|
|
</trim>
|
|
</trim>
|
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
|
@@ -343,14 +374,14 @@
|
|
|
<if test="pi_printstatuscode != null">
|
|
<if test="pi_printstatuscode != null">
|
|
|
pi_printstatuscode = #{pi_printstatuscode,jdbcType=VARCHAR},
|
|
pi_printstatuscode = #{pi_printstatuscode,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="companyId != null">
|
|
|
|
|
|
|
+ <if test="companyId != null" >
|
|
|
companyid = #{companyId,jdbcType=INTEGER},
|
|
companyid = #{companyId,jdbcType=INTEGER},
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="updaterId != null">
|
|
|
|
|
- updaterid = #{updaterId,jdbcType=INTEGER},
|
|
|
|
|
|
|
+ <if test="updaterId != null" >
|
|
|
|
|
+ updaterId = #{updaterId,jdbcType=INTEGER},
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="updateTime != null">
|
|
|
|
|
- updatetime = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
|
|
|
|
+ <if test="updateTime != null" >
|
|
|
|
|
+ updateTime = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
</if>
|
|
|
<if test="pi_text1 != null">
|
|
<if test="pi_text1 != null">
|
|
|
pi_text1 = #{pi_text1,jdbcType=VARCHAR},
|
|
pi_text1 = #{pi_text1,jdbcType=VARCHAR},
|
|
@@ -382,80 +413,7 @@
|
|
|
</set>
|
|
</set>
|
|
|
where pi_id = #{id,jdbcType=INTEGER}
|
|
where pi_id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
</update>
|
|
|
- <update id="updateByPrimaryKeyWithBLOBs" parameterType="com.usoftchina.saas.storage.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},
|
|
|
|
|
- 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_address = #{pi_address,jdbcType=LONGVARCHAR},
|
|
|
|
|
- pi_auditdate = #{pi_auditdate,jdbcType=TIMESTAMP},
|
|
|
|
|
- pi_auditman = #{pi_auditman,jdbcType=VARCHAR},
|
|
|
|
|
- pi_remark = #{pi_remark,jdbcType=VARCHAR}
|
|
|
|
|
- where pi_id = #{pi_id,jdbcType=INTEGER}
|
|
|
|
|
- </update>
|
|
|
|
|
- <update id="updateByPrimaryKey" parameterType="com.usoftchina.saas.storage.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},
|
|
|
|
|
- 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_address = #{pi_address,jdbcType=LONGVARCHAR},
|
|
|
|
|
- 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 id="validateCodeWhenInsert" resultType="int">
|
|
|
select count(1) from prodinout where pi_inoutno = #{pi_inoutno} and companyid = #{companyId}
|
|
select count(1) from prodinout where pi_inoutno = #{pi_inoutno} and companyid = #{companyId}
|
|
@@ -472,6 +430,11 @@
|
|
|
DELETE FROM prodinout WHERE PI_CLASS=#{type} AND PI_INOUTNO=#{code} AND COMPANYID=#{companyId}
|
|
DELETE FROM prodinout WHERE PI_CLASS=#{type} AND PI_INOUTNO=#{code} AND COMPANYID=#{companyId}
|
|
|
</delete>
|
|
</delete>
|
|
|
|
|
|
|
|
|
|
+ <update id="updateCreator">
|
|
|
|
|
+ update prodinout set creatorId = #{userId} , creatorName=#{userName} where pi_id=#{id}
|
|
|
|
|
+ </update>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
<select id="post" parameterMap="postParamMap" statementType="CALLABLE">
|
|
<select id="post" parameterMap="postParamMap" statementType="CALLABLE">
|
|
|
CALL SP_COMMITPRODINOUT(?, ?, ?, ?, ?)
|
|
CALL SP_COMMITPRODINOUT(?, ?, ?, ?, ?)
|
|
|
</select>
|
|
</select>
|