|
|
@@ -1,7 +1,7 @@
|
|
|
<?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.usoftchina.saas.document.mapper.ProductMapper">
|
|
|
- <resultMap id="ProductResultMapper" type="com.usoftchina.saas.document.entities.Product">
|
|
|
+ <resultMap id="BaseResultMap" type="com.usoftchina.saas.document.entities.Product">
|
|
|
<id column="pr_id" property="id" jdbcType="INTEGER" />
|
|
|
<result column="pr_code" property="pr_code" jdbcType="VARCHAR" />
|
|
|
<result column="pr_detail" property="pr_detail" jdbcType="VARCHAR" />
|
|
|
@@ -26,9 +26,9 @@
|
|
|
<result column="pr_recordman" property="pr_recordman" jdbcType="VARCHAR" />
|
|
|
<result column="pr_status" property="pr_status" jdbcType="VARCHAR" />
|
|
|
<result column="pr_statuscode" property="pr_statuscode" jdbcType="VARCHAR" />
|
|
|
- <result column="companyid" property="companyId" jdbcType="INTEGER" />
|
|
|
- <result column="updatemanid" property="updaterId" jdbcType="INTEGER" />
|
|
|
- <result column="updatetime" property="updateTime" jdbcType="TIMESTAMP" />
|
|
|
+ <result column="companyId" property="companyId" jdbcType="INTEGER" />
|
|
|
+ <result column="updaterId" property="updaterId" jdbcType="INTEGER" />
|
|
|
+ <result column="updateTime" property="updateTime" jdbcType="TIMESTAMP" />
|
|
|
<result column="pr_text1" property="pr_text1" jdbcType="VARCHAR" />
|
|
|
<result column="pr_text2" property="pr_text2" jdbcType="VARCHAR" />
|
|
|
<result column="pr_text3" property="pr_text3" jdbcType="VARCHAR" />
|
|
|
@@ -43,6 +43,8 @@
|
|
|
<result column="pr_unit" property="pr_unit" jdbcType="VARCHAR" />
|
|
|
<result column="pr_orispeccode" property="pr_orispeccode" jdbcType="VARCHAR" />
|
|
|
<result column="pr_brand" property="pr_brand" jdbcType="VARCHAR" />
|
|
|
+ <result column="pr_status" property="pr_status" jdbcType="VARCHAR" />
|
|
|
+ <result column="pr_statuscode" property="pr_statuscode" jdbcType="VARCHAR" />
|
|
|
</resultMap>
|
|
|
<!--查询所有物料信息-->
|
|
|
<select id="getProductsByCondition" resultMap="ProductDTOResultMapper" parameterType="com.usoftchina.saas.commons.dto.DocReqDTO">
|
|
|
@@ -54,10 +56,6 @@
|
|
|
</where>
|
|
|
</select>
|
|
|
|
|
|
- <select id="selectByPrimaryKey" resultMap="ProductResultMapper" parameterType="long">
|
|
|
- SELECT * FROM PRODUCT where pr_id = #{pr_id}
|
|
|
- </select>
|
|
|
-
|
|
|
<select id="getProdUnit" resultType="com.usoftchina.saas.commons.dto.ComboDTO">
|
|
|
SELECT PR_UNIT as display, pr_unit as value FROM PRODUCT
|
|
|
</select>
|
|
|
@@ -65,5 +63,386 @@
|
|
|
update product a set pr_purcprice=(select pd_price from purchasedetail WHERE
|
|
|
a.pr_code = pd_prodcode and pd_puid = #{id}) where pr_code in (select pd_prodcode from purchasedetail where pd_puid=#{id})
|
|
|
</update>
|
|
|
+ <select id="selectAll" resultMap="BaseResultMap">
|
|
|
+ SELECT * FROM PRODUCT
|
|
|
+ </select>
|
|
|
+ <select id="validateCodeWhenInsert" resultType="int">
|
|
|
+ select count(*) from PRODUCT where PR_CODE = #{code} and companyId =#{companyId}
|
|
|
+ </select>
|
|
|
+ <select id="validateCodeWhenUpdate" resultType="int" >
|
|
|
+ select count(*) from PRODUCT where PR_CODE = #{code} and PR_ID != #{id} and companyId =#{companyId}
|
|
|
+ </select>
|
|
|
+ <select id="getCodeById" resultType="string">
|
|
|
+ SELECT PR_CODE FROM PRODUCT WHERE PR_ID=#{id}
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <sql id="Base_Column_List" >
|
|
|
+ pr_id, pr_code, pr_detail, pr_spec, pr_unit, pr_kind, pr_orispeccode, pr_whid, pr_whcode,
|
|
|
+ pr_whname, pr_zxbzs, pr_leadtime, pr_brand, pr_standardprice, pr_purcprice, pr_saleprice,
|
|
|
+ pr_vendid, pr_vendcode, pr_vendname, pr_docdate, pr_recordmanid, pr_recordman, pr_status,
|
|
|
+ pr_statuscode, companyId, updaterId, updateTime, pr_text1, pr_text2, pr_text3,
|
|
|
+ pr_text4, pr_text5
|
|
|
+ </sql>
|
|
|
+ <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" >
|
|
|
+ select
|
|
|
+ <include refid="Base_Column_List" />
|
|
|
+ from product
|
|
|
+ where pr_id = #{id}
|
|
|
+ </select>
|
|
|
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.Long" >
|
|
|
+ delete from product
|
|
|
+ where pr_id = #{id}
|
|
|
+ </delete>
|
|
|
+ <insert id="insert" parameterType="com.usoftchina.saas.document.entities.Product" >
|
|
|
+ insert into product (pr_code, pr_detail,
|
|
|
+ pr_spec, pr_unit, pr_kind,
|
|
|
+ pr_orispeccode, pr_whid, pr_whcode,
|
|
|
+ pr_whname, pr_zxbzs, pr_leadtime,
|
|
|
+ pr_brand, pr_standardprice, pr_purcprice,
|
|
|
+ pr_saleprice, pr_vendid, pr_vendcode,
|
|
|
+ pr_vendname, pr_docdate, pr_recordmanid,
|
|
|
+ pr_recordman, pr_status, pr_statuscode,
|
|
|
+ companyId, updaterId, updateTime,
|
|
|
+ pr_text1, pr_text2, pr_text3,
|
|
|
+ pr_text4, pr_text5)
|
|
|
+ values (#{pr_code,jdbcType=VARCHAR}, #{pr_detail,jdbcType=VARCHAR},
|
|
|
+ #{pr_spec,jdbcType=VARCHAR}, #{pr_unit,jdbcType=VARCHAR}, #{pr_kind,jdbcType=VARCHAR},
|
|
|
+ #{pr_orispeccode,jdbcType=VARCHAR}, #{pr_whid,jdbcType=DECIMAL}, #{pr_whcode,jdbcType=VARCHAR},
|
|
|
+ #{pr_whname,jdbcType=VARCHAR}, #{pr_zxbzs,jdbcType=DECIMAL}, #{pr_leadtime,jdbcType=DECIMAL},
|
|
|
+ #{pr_brand,jdbcType=VARCHAR}, #{pr_standardprice,jdbcType=DECIMAL}, #{pr_purcprice,jdbcType=DECIMAL},
|
|
|
+ #{pr_saleprice,jdbcType=DECIMAL}, #{pr_vendid,jdbcType=DECIMAL}, #{pr_vendcode,jdbcType=VARCHAR},
|
|
|
+ #{pr_vendname,jdbcType=VARCHAR}, #{pr_docdate,jdbcType=TIMESTAMP}, #{pr_recordmanid,jdbcType=DECIMAL},
|
|
|
+ #{pr_recordman,jdbcType=VARCHAR}, #{pr_status,jdbcType=VARCHAR}, #{pr_statuscode,jdbcType=VARCHAR},
|
|
|
+ #{companyId,jdbcType=DECIMAL}, #{updaterId,jdbcType=DECIMAL}, #{updateTime,jdbcType=TIMESTAMP},
|
|
|
+ #{pr_text1,jdbcType=VARCHAR}, #{pr_text2,jdbcType=VARCHAR}, #{pr_text3,jdbcType=VARCHAR},
|
|
|
+ #{pr_text4,jdbcType=VARCHAR}, #{pr_text5,jdbcType=VARCHAR})
|
|
|
+ </insert>
|
|
|
+ <insert id="insertSelective" parameterType="com.usoftchina.saas.document.entities.Product" >
|
|
|
+ insert into product
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides="," >
|
|
|
+ <if test="pr_code != null" >
|
|
|
+ pr_code,
|
|
|
+ </if>
|
|
|
+ <if test="pr_detail != null" >
|
|
|
+ pr_detail,
|
|
|
+ </if>
|
|
|
+ <if test="pr_spec != null" >
|
|
|
+ pr_spec,
|
|
|
+ </if>
|
|
|
+ <if test="pr_unit != null" >
|
|
|
+ pr_unit,
|
|
|
+ </if>
|
|
|
+ <if test="pr_kind != null" >
|
|
|
+ pr_kind,
|
|
|
+ </if>
|
|
|
+ <if test="pr_orispeccode != null" >
|
|
|
+ pr_orispeccode,
|
|
|
+ </if>
|
|
|
+ <if test="pr_whid != null" >
|
|
|
+ pr_whid,
|
|
|
+ </if>
|
|
|
+ <if test="pr_whcode != null" >
|
|
|
+ pr_whcode,
|
|
|
+ </if>
|
|
|
+ <if test="pr_whname != null" >
|
|
|
+ pr_whname,
|
|
|
+ </if>
|
|
|
+ <if test="pr_zxbzs != null" >
|
|
|
+ pr_zxbzs,
|
|
|
+ </if>
|
|
|
+ <if test="pr_leadtime != null" >
|
|
|
+ pr_leadtime,
|
|
|
+ </if>
|
|
|
+ <if test="pr_brand != null" >
|
|
|
+ pr_brand,
|
|
|
+ </if>
|
|
|
+ <if test="pr_standardprice != null" >
|
|
|
+ pr_standardprice,
|
|
|
+ </if>
|
|
|
+ <if test="pr_purcprice != null" >
|
|
|
+ pr_purcprice,
|
|
|
+ </if>
|
|
|
+ <if test="pr_saleprice != null" >
|
|
|
+ pr_saleprice,
|
|
|
+ </if>
|
|
|
+ <if test="pr_vendid != null" >
|
|
|
+ pr_vendid,
|
|
|
+ </if>
|
|
|
+ <if test="pr_vendcode != null" >
|
|
|
+ pr_vendcode,
|
|
|
+ </if>
|
|
|
+ <if test="pr_vendname != null" >
|
|
|
+ pr_vendname,
|
|
|
+ </if>
|
|
|
+ <if test="pr_docdate != null" >
|
|
|
+ pr_docdate,
|
|
|
+ </if>
|
|
|
+ <if test="pr_recordmanid != null" >
|
|
|
+ pr_recordmanid,
|
|
|
+ </if>
|
|
|
+ <if test="pr_recordman != null" >
|
|
|
+ pr_recordman,
|
|
|
+ </if>
|
|
|
+ <if test="pr_status != null" >
|
|
|
+ pr_status,
|
|
|
+ </if>
|
|
|
+ <if test="pr_statuscode != null" >
|
|
|
+ pr_statuscode,
|
|
|
+ </if>
|
|
|
+ <if test="companyId != null" >
|
|
|
+ companyId,
|
|
|
+ </if>
|
|
|
+ <if test="updaterId != null" >
|
|
|
+ updaterId,
|
|
|
+ </if>
|
|
|
+ <if test="updateTime != null" >
|
|
|
+ updateTime,
|
|
|
+ </if>
|
|
|
+ <if test="pr_text1 != null" >
|
|
|
+ pr_text1,
|
|
|
+ </if>
|
|
|
+ <if test="pr_text2 != null" >
|
|
|
+ pr_text2,
|
|
|
+ </if>
|
|
|
+ <if test="pr_text3 != null" >
|
|
|
+ pr_text3,
|
|
|
+ </if>
|
|
|
+ <if test="pr_text4 != null" >
|
|
|
+ pr_text4,
|
|
|
+ </if>
|
|
|
+ <if test="pr_text5 != null" >
|
|
|
+ pr_text5,
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
|
+ <if test="pr_code != null" >
|
|
|
+ #{pr_code,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="pr_detail != null" >
|
|
|
+ #{pr_detail,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="pr_spec != null" >
|
|
|
+ #{pr_spec,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="pr_unit != null" >
|
|
|
+ #{pr_unit,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="pr_kind != null" >
|
|
|
+ #{pr_kind,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="pr_orispeccode != null" >
|
|
|
+ #{pr_orispeccode,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="pr_whid != null" >
|
|
|
+ #{pr_whid,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="pr_whcode != null" >
|
|
|
+ #{pr_whcode,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="pr_whname != null" >
|
|
|
+ #{pr_whname,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="pr_zxbzs != null" >
|
|
|
+ #{pr_zxbzs,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="pr_leadtime != null" >
|
|
|
+ #{pr_leadtime,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="pr_brand != null" >
|
|
|
+ #{pr_brand,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="pr_standardprice != null" >
|
|
|
+ #{pr_standardprice,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="pr_purcprice != null" >
|
|
|
+ #{pr_purcprice,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="pr_saleprice != null" >
|
|
|
+ #{pr_saleprice,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="pr_vendid != null" >
|
|
|
+ #{pr_vendid,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="pr_vendcode != null" >
|
|
|
+ #{pr_vendcode,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="pr_vendname != null" >
|
|
|
+ #{pr_vendname,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="pr_docdate != null" >
|
|
|
+ #{pr_docdate,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="pr_recordmanid != null" >
|
|
|
+ #{pr_recordmanid,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="pr_recordman != null" >
|
|
|
+ #{pr_recordman,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="pr_status != null" >
|
|
|
+ #{pr_status,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="pr_statuscode != null" >
|
|
|
+ #{pr_statuscode,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="companyId != null" >
|
|
|
+ #{companyId,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="updaterId != null" >
|
|
|
+ #{updaterId,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="updateTime != null" >
|
|
|
+ #{updateTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="pr_text1 != null" >
|
|
|
+ #{pr_text1,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="pr_text2 != null" >
|
|
|
+ #{pr_text2,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="pr_text3 != null" >
|
|
|
+ #{pr_text3,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="pr_text4 != null" >
|
|
|
+ #{pr_text4,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="pr_text5 != null" >
|
|
|
+ #{pr_text5,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ </insert>
|
|
|
+ <update id="updateByPrimaryKeySelective" parameterType="com.usoftchina.saas.document.entities.Product" >
|
|
|
+ update product
|
|
|
+ <set >
|
|
|
+ <if test="pr_code != null" >
|
|
|
+ pr_code = #{pr_code,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="pr_detail != null" >
|
|
|
+ pr_detail = #{pr_detail,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="pr_spec != null" >
|
|
|
+ pr_spec = #{pr_spec,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="pr_unit != null" >
|
|
|
+ pr_unit = #{pr_unit,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="pr_kind != null" >
|
|
|
+ pr_kind = #{pr_kind,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="pr_orispeccode != null" >
|
|
|
+ pr_orispeccode = #{pr_orispeccode,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="pr_whid != null" >
|
|
|
+ pr_whid = #{pr_whid,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="pr_whcode != null" >
|
|
|
+ pr_whcode = #{pr_whcode,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="pr_whname != null" >
|
|
|
+ pr_whname = #{pr_whname,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="pr_zxbzs != null" >
|
|
|
+ pr_zxbzs = #{pr_zxbzs,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="pr_leadtime != null" >
|
|
|
+ pr_leadtime = #{pr_leadtime,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="pr_brand != null" >
|
|
|
+ pr_brand = #{pr_brand,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="pr_standardprice != null" >
|
|
|
+ pr_standardprice = #{pr_standardprice,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="pr_purcprice != null" >
|
|
|
+ pr_purcprice = #{pr_purcprice,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="pr_saleprice != null" >
|
|
|
+ pr_saleprice = #{pr_saleprice,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="pr_vendid != null" >
|
|
|
+ pr_vendid = #{pr_vendid,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="pr_vendcode != null" >
|
|
|
+ pr_vendcode = #{pr_vendcode,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="pr_vendname != null" >
|
|
|
+ pr_vendname = #{pr_vendname,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="pr_docdate != null" >
|
|
|
+ pr_docdate = #{pr_docdate,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="pr_recordmanid != null" >
|
|
|
+ pr_recordmanid = #{pr_recordmanid,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="pr_recordman != null" >
|
|
|
+ pr_recordman = #{pr_recordman,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="pr_status != null" >
|
|
|
+ pr_status = #{pr_status,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="pr_statuscode != null" >
|
|
|
+ pr_statuscode = #{pr_statuscode,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="companyId != null" >
|
|
|
+ companyId = #{companyId,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="updaterId != null" >
|
|
|
+ updaterId = #{updaterId,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="updateTime != null" >
|
|
|
+ updateTime = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="pr_text1 != null" >
|
|
|
+ pr_text1 = #{pr_text1,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="pr_text2 != null" >
|
|
|
+ pr_text2 = #{pr_text2,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="pr_text3 != null" >
|
|
|
+ pr_text3 = #{pr_text3,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="pr_text4 != null" >
|
|
|
+ pr_text4 = #{pr_text4,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="pr_text5 != null" >
|
|
|
+ pr_text5 = #{pr_text5,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ </set>
|
|
|
+ where pr_id = #{id}
|
|
|
+ </update>
|
|
|
+ <update id="updateByPrimaryKey" parameterType="com.usoftchina.saas.document.entities.Product" >
|
|
|
+ update product
|
|
|
+ set pr_code = #{pr_code,jdbcType=VARCHAR},
|
|
|
+ pr_detail = #{pr_detail,jdbcType=VARCHAR},
|
|
|
+ pr_spec = #{pr_spec,jdbcType=VARCHAR},
|
|
|
+ pr_unit = #{pr_unit,jdbcType=VARCHAR},
|
|
|
+ pr_kind = #{pr_kind,jdbcType=VARCHAR},
|
|
|
+ pr_orispeccode = #{pr_orispeccode,jdbcType=VARCHAR},
|
|
|
+ pr_whid = #{pr_whid,jdbcType=DECIMAL},
|
|
|
+ pr_whcode = #{pr_whcode,jdbcType=VARCHAR},
|
|
|
+ pr_whname = #{pr_whname,jdbcType=VARCHAR},
|
|
|
+ pr_zxbzs = #{pr_zxbzs,jdbcType=DECIMAL},
|
|
|
+ pr_leadtime = #{pr_leadtime,jdbcType=DECIMAL},
|
|
|
+ pr_brand = #{pr_brand,jdbcType=VARCHAR},
|
|
|
+ pr_standardprice = #{pr_standardprice,jdbcType=DECIMAL},
|
|
|
+ pr_purcprice = #{pr_purcprice,jdbcType=DECIMAL},
|
|
|
+ pr_saleprice = #{pr_saleprice,jdbcType=DECIMAL},
|
|
|
+ pr_vendid = #{pr_vendid,jdbcType=DECIMAL},
|
|
|
+ pr_vendcode = #{pr_vendcode,jdbcType=VARCHAR},
|
|
|
+ pr_vendname = #{pr_vendname,jdbcType=VARCHAR},
|
|
|
+ pr_docdate = #{pr_docdate,jdbcType=TIMESTAMP},
|
|
|
+ pr_recordmanid = #{pr_recordmanid,jdbcType=DECIMAL},
|
|
|
+ pr_recordman = #{pr_recordman,jdbcType=VARCHAR},
|
|
|
+ pr_status = #{pr_status,jdbcType=VARCHAR},
|
|
|
+ pr_statuscode = #{pr_statuscode,jdbcType=VARCHAR},
|
|
|
+ companyId = #{companyId,jdbcType=DECIMAL},
|
|
|
+ updaterId = #{updaterId,jdbcType=DECIMAL},
|
|
|
+ updateTime = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
+ pr_text1 = #{pr_text1,jdbcType=VARCHAR},
|
|
|
+ pr_text2 = #{pr_text2,jdbcType=VARCHAR},
|
|
|
+ pr_text3 = #{pr_text3,jdbcType=VARCHAR},
|
|
|
+ pr_text4 = #{pr_text4,jdbcType=VARCHAR},
|
|
|
+ pr_text5 = #{pr_text5,jdbcType=VARCHAR}
|
|
|
+ where pr_id = #{id}
|
|
|
+ </update>
|
|
|
</mapper>
|
|
|
|