Browse Source

1.物料添加字段

heqinwei 7 years ago
parent
commit
779f138be9

+ 1 - 0
applications/document/document-dto/src/main/java/com.usoftchina.saas.document.dto/ProductDTO.java

@@ -40,4 +40,5 @@ public class ProductDTO implements Serializable {
     private Double po_onhand;
 
     private Double po_avprice;
+    private String pr_remark;
 }

+ 9 - 0
applications/document/document-dto/src/main/java/com/usoftchina/saas/document/entities/Product.java

@@ -32,6 +32,15 @@ public class Product extends CommonBaseEntity implements Serializable {
     private String pr_text2;
     private String pr_text3;
     private String pr_text4;
+    private String pr_remark;
+
+    public String getPr_remark() {
+        return pr_remark;
+    }
+
+    public void setPr_remark(String pr_remark) {
+        this.pr_remark = pr_remark;
+    }
 
     public String getPr_code() {
         return pr_code;

+ 12 - 1
applications/document/document-server/src/main/resources/mapper/ProductMapper.xml

@@ -31,6 +31,7 @@
         <result column="pr_text3" property="pr_text3" jdbcType="VARCHAR"/>
         <result column="pr_text4" property="pr_text4" jdbcType="VARCHAR"/>
         <result column="pr_text5" property="pr_text5" jdbcType="VARCHAR"/>
+        <result column="pr_remark" property="pr_remark" jdbcType="VARCHAR"/>
     </resultMap>
     <resultMap id="ProductDTOResultMapper" type="com.usoftchina.saas.document.dto.ProductDTO">
         <id column="pr_id" property="id" jdbcType="INTEGER"/>
@@ -53,6 +54,7 @@
         <result column="pr_leadtime" property="pr_leadtime" jdbcType="INTEGER"/>
         <result column="pr_status" property="pr_status" jdbcType="VARCHAR"/>
         <result column="pr_statuscode" property="pr_statuscode" jdbcType="VARCHAR"/>
+        <result column="pr_remark" property="pr_remark" jdbcType="VARCHAR"/>
     </resultMap>
 
 
@@ -97,7 +99,7 @@
         pr_whname, pr_zxbzs, pr_leadtime, pr_brand, pr_standardprice, pr_purcprice, pr_saleprice,
         pr_vendid, pr_vendcode, pr_vendname, pr_status,
         pr_statuscode, companyId, updaterId, updateTime, pr_text1, pr_text2, pr_text3,
-        pr_text4, pr_text5
+        pr_text4, pr_text5,pr_remark
     </sql>
     <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long">
         select
@@ -233,6 +235,9 @@
             <if test="creatorName != null" >
                 creatorName,
             </if>
+            <if test="pr_remark != null" >
+                pr_remark,
+            </if>
         </trim>
         <trim prefix="values (" suffix=")" suffixOverrides=",">
             <if test="pr_code != null">
@@ -328,6 +333,9 @@
             <if test="creatorName != null" >
                 #{creatorName,jdbcType=VARCHAR},
             </if>
+            <if test="pr_remark != null" >
+                #{pr_remark,jdbcType=VARCHAR},
+            </if>
         </trim>
     </insert>
     <update id="updateByPrimaryKeySelective" parameterType="com.usoftchina.saas.document.entities.Product">
@@ -417,6 +425,9 @@
             <if test="pr_text5 != null">
                 pr_text5 = #{pr_text5,jdbcType=VARCHAR},
             </if>
+            <if test="pr_remark != null">
+                pr_remark = #{pr_remark,jdbcType=VARCHAR},
+            </if>
         </set>
         where pr_id = #{id}
     </update>