Browse Source

销售采购新增币别字段

rainco 7 years ago
parent
commit
39adb956a5

+ 1 - 0
applications/purchase/purchase-dto/src/main/java/com/usoftchina/saas/purchase/dto/PurchaseDTO.java

@@ -73,4 +73,5 @@ public class PurchaseDTO extends CommonBaseDTO implements Serializable{
 
     private String pu_sacode;
 
+    private String pu_currency;
 }

+ 1 - 0
applications/purchase/purchase-server/src/main/java/com/usoftchina/saas/purchase/po/Purchase.java

@@ -67,4 +67,5 @@ public class Purchase extends CommonBaseEntity implements Serializable {
 
     private String pu_sacode;
 
+    private String pu_currency;
 }

+ 11 - 1
applications/purchase/purchase-server/src/main/resources/mapper/PurchaseMapper.xml

@@ -36,6 +36,7 @@
     <result column="pu_text3" property="pu_text3" jdbcType="VARCHAR" />
     <result column="pu_text4" property="pu_text4" jdbcType="VARCHAR" />
     <result column="pu_text5" property="pu_text5" jdbcType="VARCHAR" />
+    <result column="pu_currency" property="pu_currency" jdbcType="VARCHAR" />
   </resultMap>
  <resultMap id="ResultMapWithBLOBs" type="com.usoftchina.saas.purchase.po.Purchase" extends="BaseResultMap" >
     <result column="PU_SHIPADDRESSCODE" property="pu_shipaddresscode" jdbcType="LONGVARCHAR" />
@@ -46,7 +47,7 @@
     PU_BUYERNAME, PU_DELIVERY, PU_TAXTOTAL, PU_TOTAL, PU_REMARK, PU_TOTALUPPER,
     PU_PRINTSTATUS, PU_PRINTSTATUSCODE, PU_ACCEPTSTATUSCODE, PU_ACCEPTSTATUS, PU_STATUSCODE, 
     PU_STATUS, companyid, updaterId,updaterName,updateTime,creatorid,creatorName,createtime, pu_text1, pu_text2, pu_text3, pu_text4,
-    pu_text5,pu_auditman,pu_auditdate
+    pu_text5,pu_auditman,pu_auditdate,pu_currency
   </sql>
   <sql id="Blob_Column_List" >
     PU_SHIPADDRESSCODE
@@ -166,6 +167,9 @@
       <if test="pu_shipaddresscode != null" >
         PU_SHIPADDRESSCODE,
       </if>
+      <if test="pu_currency != null" >
+      pu_currency,
+      </if>
     </trim>
     <trim prefix="values (" suffix=")" suffixOverrides="," >
       <if test="pu_code != null" >
@@ -264,6 +268,9 @@
       <if test="pu_shipaddresscode != null" >
         #{pu_shipaddresscode,jdbcType=LONGVARCHAR},
       </if>
+      <if test="pu_currency != null" >
+        #{pu_currency,jdbcType=VARCHAR},
+      </if>
     </trim>
   </insert>
   <update id="updateByPrimaryKeySelective" parameterType="com.usoftchina.saas.purchase.po.Purchase" >
@@ -362,6 +369,9 @@
       <if test="pu_auditdate != null" >
         pu_auditdate = #{pu_auditdate,jdbcType=TIMESTAMP},
       </if>
+      <if test="pu_currency != null" >
+        pu_currency = #{pu_currency,jdbcType=VARCHAR},
+      </if>
     </set>
     where pu_id = #{id,jdbcType=INTEGER}
   </update>

+ 2 - 0
applications/sale/sale-dto/src/main/java/com/usoftchina/saas/sale/dto/SaleDTO.java

@@ -61,4 +61,6 @@ public class SaleDTO extends CommonBaseDTO{
     private String sa_sellercode;
 
     private Integer sa_sellerid;
+
+    private String sa_currency;
 }

+ 2 - 0
applications/sale/sale-server/src/main/java/com/usoftchina/saas/sale/po/Sale.java

@@ -60,4 +60,6 @@ public class Sale extends CommonBaseEntity{
     private String sa_sellercode;
 
     private Integer sa_sellerid;
+
+    private String sa_currency;
 }

+ 10 - 0
applications/sale/sale-server/src/main/resources/mapper/SaleMapper.xml

@@ -34,6 +34,7 @@
     <result column="updaterName" property="updaterName" jdbcType="VARCHAR" />
     <result column="createTime" property="createTime" jdbcType="TIMESTAMP"/>
     <result column="sa_sellerid" property="sa_sellerid" jdbcType="INTEGER" />
+    <result column="sa_currency" property="sa_currency" jdbcType="VARCHAR" />
   </resultMap>
   <sql id="Base_Column_List" >
     sa_id, sa_code, sa_custid, sa_custcode, sa_custname, sa_toplace, sa_total, sa_totalupper, 
@@ -151,6 +152,9 @@
       <if test="sa_sellerid != null">
         sa_sellerid,
       </if>
+      <if test="sa_currency != null">
+        sa_currency,
+      </if>
     </trim>
     <trim prefix="values (" suffix=")" suffixOverrides="," >
       <if test="sa_code != null" >
@@ -231,6 +235,9 @@
       <if test="sa_sellerid != null" >
         #{sa_sellerid,jdbcType=INTEGER},
       </if>
+      <if test="sa_currency != null" >
+        #{sa_currency,jdbcType=VARCHAR},
+      </if>
     </trim>
   </insert>
   <update id="updateByPrimaryKeySelective" parameterType="com.usoftchina.saas.sale.po.Sale" >
@@ -320,6 +327,9 @@
       <if test="sa_sellerid != null" >
         sa_sellerid = #{sa_sellerid,jdbcType=INTEGER},
       </if>
+      <if test="sa_currency != null" >
+        sa_currency = #{sa_currency,jdbcType=VARCHAR},
+      </if>
     </set>
     where sa_id = #{id,jdbcType=INTEGER}
   </update>