Browse Source

Merge branch 'dev' of ssh://10.10.100.21/source/saas-platform into dev

hy 7 years ago
parent
commit
7e1042b901
100 changed files with 315 additions and 1686 deletions
  1. 2 2
      README.md
  2. 11 0
      applications/commons/commons-dto/src/main/java/com/usoftchina/saas/commons/dto/ListReqDTO.java
  3. 1 0
      applications/commons/commons-dto/src/main/java/com/usoftchina/saas/commons/exception/BizExceptionCode.java
  4. 0 30
      applications/commons/commons-dto/src/main/java/com/usoftchina/saas/commons/po/Enterprise.java
  5. 0 30
      applications/commons/commons-server/src/main/resources/mapper/EnterpriseMapper.xml
  6. 0 3
      applications/document/document-dto/src/main/java/com.usoftchina.saas.document.dto/ProductDTO.java
  7. 0 9
      applications/document/document-dto/src/main/java/com/usoftchina/saas/document/entities/Address.java
  8. 0 29
      applications/document/document-dto/src/main/java/com/usoftchina/saas/document/entities/Bankinformation.java
  9. 0 30
      applications/document/document-dto/src/main/java/com/usoftchina/saas/document/entities/Bom.java
  10. 0 29
      applications/document/document-dto/src/main/java/com/usoftchina/saas/document/entities/Customerkind.java
  11. 0 29
      applications/document/document-dto/src/main/java/com/usoftchina/saas/document/entities/Fundinouttype.java
  12. 0 27
      applications/document/document-dto/src/main/java/com/usoftchina/saas/document/entities/Product.java
  13. 0 30
      applications/document/document-dto/src/main/java/com/usoftchina/saas/document/entities/Productbrand.java
  14. 0 30
      applications/document/document-dto/src/main/java/com/usoftchina/saas/document/entities/Producttype.java
  15. 0 30
      applications/document/document-dto/src/main/java/com/usoftchina/saas/document/entities/Productunit.java
  16. 0 36
      applications/document/document-dto/src/main/java/com/usoftchina/saas/document/entities/Vendor.java
  17. 0 12
      applications/document/document-dto/src/main/java/com/usoftchina/saas/document/entities/VendorList.java
  18. 0 38
      applications/document/document-dto/src/main/java/com/usoftchina/saas/document/entities/Vendorkind.java
  19. 1 0
      applications/document/document-server/src/main/java/com/usoftchina/saas/document/service/impl/CustomerServiceImpl.java
  20. 1 0
      applications/document/document-server/src/main/java/com/usoftchina/saas/document/service/impl/VendorServiceImpl.java
  21. 5 15
      applications/document/document-server/src/main/resources/mapper/AddressMapper.xml
  22. 2 37
      applications/document/document-server/src/main/resources/mapper/BankinformationMapper.xml
  23. 0 3
      applications/document/document-server/src/main/resources/mapper/BomDetailMapper.xml
  24. 3 38
      applications/document/document-server/src/main/resources/mapper/BomMapper.xml
  25. 3 38
      applications/document/document-server/src/main/resources/mapper/CustomerkindMapper.xml
  26. 1 36
      applications/document/document-server/src/main/resources/mapper/FundinouttypeMapper.xml
  27. 3 38
      applications/document/document-server/src/main/resources/mapper/ProductMapper.xml
  28. 3 38
      applications/document/document-server/src/main/resources/mapper/ProductbrandMapper.xml
  29. 3 38
      applications/document/document-server/src/main/resources/mapper/ProducttypeMapper.xml
  30. 3 38
      applications/document/document-server/src/main/resources/mapper/ProductunitMapper.xml
  31. 3 41
      applications/document/document-server/src/main/resources/mapper/VendorMapper.xml
  32. 3 38
      applications/document/document-server/src/main/resources/mapper/VendorkindMapper.xml
  33. 1 1
      applications/money/money-server/src/main/java/com/usoftchina/saas/money/mapper/BanksubledgerMapper.java
  34. 1 2
      applications/money/money-server/src/main/java/com/usoftchina/saas/money/mapper/SubledgerMapper.java
  35. 3 0
      applications/money/money-server/src/main/java/com/usoftchina/saas/money/mapper/VendorAcountViewMapper.java
  36. 1 1
      applications/money/money-server/src/main/java/com/usoftchina/saas/money/mapper/VerificationMapper.java
  37. 0 30
      applications/money/money-server/src/main/java/com/usoftchina/saas/money/po/Bankinformation.java
  38. 0 30
      applications/money/money-server/src/main/java/com/usoftchina/saas/money/po/Customer.java
  39. 0 30
      applications/money/money-server/src/main/java/com/usoftchina/saas/money/po/Fundtransfer.java
  40. 0 33
      applications/money/money-server/src/main/java/com/usoftchina/saas/money/po/Othreceipts.java
  41. 0 30
      applications/money/money-server/src/main/java/com/usoftchina/saas/money/po/Othspendings.java
  42. 0 29
      applications/money/money-server/src/main/java/com/usoftchina/saas/money/po/Paybalance.java
  43. 0 30
      applications/money/money-server/src/main/java/com/usoftchina/saas/money/po/Recbalance.java
  44. 0 36
      applications/money/money-server/src/main/java/com/usoftchina/saas/money/po/Vendor.java
  45. 9 0
      applications/money/money-server/src/main/java/com/usoftchina/saas/money/po/VendorAcountView.java
  46. 3 3
      applications/money/money-server/src/main/java/com/usoftchina/saas/money/service/impl/FundtransferServiceImpl.java
  47. 46 3
      applications/money/money-server/src/main/java/com/usoftchina/saas/money/service/impl/MoneyReportServiceImpl.java
  48. 6 5
      applications/money/money-server/src/main/java/com/usoftchina/saas/money/service/impl/OthreceiptsServiceImpl.java
  49. 7 5
      applications/money/money-server/src/main/java/com/usoftchina/saas/money/service/impl/OthspendingsServiceImpl.java
  50. 7 5
      applications/money/money-server/src/main/java/com/usoftchina/saas/money/service/impl/PaybalanceServiceImpl.java
  51. 20 33
      applications/money/money-server/src/main/java/com/usoftchina/saas/money/service/impl/RecbalanceServiceImpl.java
  52. 25 22
      applications/money/money-server/src/main/java/com/usoftchina/saas/money/service/impl/VerificationServiceImpl.java
  53. 2 37
      applications/money/money-server/src/main/resources/mapper/BankinformationMapper.xml
  54. 2 1
      applications/money/money-server/src/main/resources/mapper/BanksubledgerMapper.xml
  55. 3 34
      applications/money/money-server/src/main/resources/mapper/FundtransferMapper.xml
  56. 3 34
      applications/money/money-server/src/main/resources/mapper/OthreceiptsMapper.xml
  57. 3 34
      applications/money/money-server/src/main/resources/mapper/OthspendingsMapper.xml
  58. 6 61
      applications/money/money-server/src/main/resources/mapper/PaybalanceMapper.xml
  59. 6 73
      applications/money/money-server/src/main/resources/mapper/RecbalanceMapper.xml
  60. 2 15
      applications/money/money-server/src/main/resources/mapper/SubledgerMapper.xml
  61. 21 0
      applications/money/money-server/src/main/resources/mapper/VendorAcountViewMapper.xml
  62. 3 2
      applications/money/money-server/src/main/resources/mapper/VerificationMapper.xml
  63. 0 6
      applications/purchase/purchase-dto/src/main/java/com/usoftchina/saas/purchase/dto/ProdInOutDTO.java
  64. 1 7
      applications/purchase/purchase-dto/src/main/java/com/usoftchina/saas/purchase/dto/ProdInOutListDTO.java
  65. 0 6
      applications/purchase/purchase-server/src/main/java/com/usoftchina/saas/purchase/po/ProdInOut.java
  66. 0 9
      applications/purchase/purchase-server/src/main/java/com/usoftchina/saas/purchase/po/ProdInOutList.java
  67. 0 3
      applications/purchase/purchase-server/src/main/java/com/usoftchina/saas/purchase/po/PurchaseList.java
  68. 0 3
      applications/purchase/purchase-server/src/main/java/com/usoftchina/saas/purchase/po/report/PurchaseReportDetail.java
  69. 0 2
      applications/purchase/purchase-server/src/main/java/com/usoftchina/saas/purchase/service/impl/PurchaseServiceImpl.java
  70. 0 3
      applications/purchase/purchase-server/src/main/resources/mapper/ProdIODetailMapper.xml
  71. 0 6
      applications/purchase/purchase-server/src/main/resources/mapper/ProdInOutListMapper.xml
  72. 1 26
      applications/purchase/purchase-server/src/main/resources/mapper/ProdInOutMapper.xml
  73. 0 4
      applications/purchase/purchase-server/src/main/resources/mapper/PurchaseListMapper.xml
  74. 1 6
      applications/purchase/purchase-server/src/main/resources/mapper/PurchaseMapper.xml
  75. 1 4
      applications/purchase/purchase-server/src/main/resources/mapper/PurchaseReportMapper.xml
  76. 0 3
      applications/purchase/purchase-server/src/main/resources/mapper/PurchasedetailMapper.xml
  77. 0 3
      applications/sale/sale-dto/src/main/java/com/usoftchina/saas/sale/dto/PurchaseListDTO.java
  78. 0 3
      applications/sale/sale-server/src/main/java/com/usoftchina/saas/sale/po/SaleList.java
  79. 0 3
      applications/sale/sale-server/src/main/resources/mapper/ProdIODetailMapper.xml
  80. 0 3
      applications/sale/sale-server/src/main/resources/mapper/SaleListMapper.xml
  81. 2 1
      applications/sale/sale-server/src/main/resources/mapper/SaleMapper.xml
  82. 0 3
      applications/sale/sale-server/src/main/resources/mapper/SaledetailMapper.xml
  83. 0 6
      applications/storage/storage-dto/src/main/java/com/usoftchina/saas/storage/dto/ProdInOutDTO.java
  84. 0 6
      applications/storage/storage-dto/src/main/java/com/usoftchina/saas/storage/dto/ProdInOutListDTO.java
  85. 0 6
      applications/storage/storage-dto/src/main/java/com/usoftchina/saas/storage/po/Make.java
  86. 0 6
      applications/storage/storage-dto/src/main/java/com/usoftchina/saas/storage/po/ProdInOut.java
  87. 0 9
      applications/storage/storage-dto/src/main/java/com/usoftchina/saas/storage/po/ProdInOutList.java
  88. 16 15
      applications/storage/storage-server/src/main/java/com/usoftchina/saas/storage/service/impl/MakeServiceImpl.java
  89. 0 5
      applications/storage/storage-server/src/main/java/com/usoftchina/saas/storage/service/impl/ProdInOutServiceImpl.java
  90. 3 54
      applications/storage/storage-server/src/main/resources/mapper/MakeMapper.xml
  91. 12 15
      applications/storage/storage-server/src/main/resources/mapper/MakematerialMapper.xml
  92. 0 3
      applications/storage/storage-server/src/main/resources/mapper/ProdIODetailMapper.xml
  93. 0 6
      applications/storage/storage-server/src/main/resources/mapper/ProdInOutListMapper.xml
  94. 1 29
      applications/storage/storage-server/src/main/resources/mapper/ProdInOutMapper.xml
  95. 14 5
      base-servers/account/account-dto/src/main/java/com/usoftchina/saas/account/dto/CompanyRegDTO.java
  96. 14 1
      base-servers/account/account-dto/src/main/java/com/usoftchina/saas/account/dto/CompanyRspDTO.java
  97. 12 0
      base-servers/account/account-server/src/main/java/com/usoftchina/saas/account/po/Company.java
  98. 4 3
      base-servers/account/account-server/src/main/java/com/usoftchina/saas/account/service/impl/AccountCenterServiceImpl.java
  99. 4 1
      base-servers/account/account-server/src/main/resources/application.yml
  100. 1 1
      base-servers/account/account-server/src/main/resources/mapper/AccountCompanyMapper.xml

+ 2 - 2
README.md

@@ -169,7 +169,7 @@
 
 > 构建
 
-* [jenkins](http://10.10.100.200:5001/job/saas/prod) **账号** admin **密码** select123***
+* [jenkins](http://10.10.100.200:5001/job/saas/job/prod) **账号** admin **密码** select123***
 
 > 日志
 
@@ -180,7 +180,7 @@
 > 服务
 
 * [eureka http://10.10.100.23:8500](http://10.10.100.23:8500) **账号** admin **密码** select111***
-* [gateway http://10.10.100.23:8560](http://10.10.100.23:8560)
+* [gateway http://10.10.100.23:8560](https://saas-api.usoftchina.com)
 * [admin](http://10.10.100.23:8520) **账号** admin **密码** select111***
 * [zipkin](http://10.10.100.23:8540) **账号** admin **密码** select111***
 

+ 11 - 0
applications/commons/commons-dto/src/main/java/com/usoftchina/saas/commons/dto/ListReqDTO.java

@@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSONArray;
 import com.alibaba.fastjson.JSONObject;
 
 import java.io.Serializable;
+import java.util.Date;
 
 
 /**
@@ -20,6 +21,16 @@ public class ListReqDTO implements Serializable {
 
     private String calculateFields;
 
+    private String ym;
+
+    public String getYm() {
+        return ym;
+    }
+
+    public void setYm(String ym) {
+        this.ym = ym;
+    }
+
     //将列拼成查询语句,直接查询出数据的格式为json
     public String getCalculateFieldsSql() {
         try {

+ 1 - 0
applications/commons/commons-dto/src/main/java/com/usoftchina/saas/commons/exception/BizExceptionCode.java

@@ -86,6 +86,7 @@ public enum BizExceptionCode implements BaseExceptionCode {
     SUBLEDGER_NOT_EXIS(74005,"来源单据不存在"),
     CHECK_SETACOUNT_EXIS(74006, "不能删除单据日期小于等于结账期间<u>%s</u>的单据"),
     VERIFICATION_CHECK_BALANCE(74007,"核销金额不能大于未核销金额"),
+    DELETE_NOT_EXIS(74008,"删除失败,当前单据不存在!"),
 
 
 

+ 0 - 30
applications/commons/commons-dto/src/main/java/com/usoftchina/saas/commons/po/Enterprise.java

@@ -20,12 +20,6 @@ public class Enterprise extends CommonBaseEntity implements Serializable {
 
     private String en_pricemethod;
 
-    private Integer en_recorderid;
-
-    private String en_recorder;
-
-    private Date en_recorddate;
-
     private byte[] en_signet;
 
     public String getEn_name() {
@@ -84,30 +78,6 @@ public class Enterprise extends CommonBaseEntity implements Serializable {
         this.en_pricemethod = en_pricemethod;
     }
 
-    public Integer getEn_recorderid() {
-        return en_recorderid;
-    }
-
-    public void setEn_recorderid(Integer en_recorderid) {
-        this.en_recorderid = en_recorderid;
-    }
-
-    public String getEn_recorder() {
-        return en_recorder;
-    }
-
-    public void setEn_recorder(String en_recorder) {
-        this.en_recorder = en_recorder;
-    }
-
-    public Date getEn_recorddate() {
-        return en_recorddate;
-    }
-
-    public void setEn_recorddate(Date en_recorddate) {
-        this.en_recorddate = en_recorddate;
-    }
-
     public byte[] getEn_signet() {
         return en_signet;
     }

+ 0 - 30
applications/commons/commons-server/src/main/resources/mapper/EnterpriseMapper.xml

@@ -10,9 +10,6 @@
         <result column="en_postcodes" property="en_postcodes" jdbcType="VARCHAR" />
         <result column="en_begindate" property="en_begindate" jdbcType="TIMESTAMP" />
         <result column="en_pricemethod" property="en_pricemethod" jdbcType="VARCHAR" />
-        <result column="en_recorderid" property="en_recorderid" jdbcType="INTEGER" />
-        <result column="en_recorder" property="en_recorder" jdbcType="VARCHAR" />
-        <result column="en_recorddate" property="en_recorddate" jdbcType="TIMESTAMP" />
         <result column="updaterId" property="updaterId" jdbcType="INTEGER" />
         <result column="updateTime" property="updateTime" jdbcType="TIMESTAMP" />
     </resultMap>
@@ -47,15 +44,6 @@
             <if test="en_pricemethod != null" >
                 en_pricemethod,
             </if>
-            <if test="en_recorderid != null" >
-                en_recorderid,
-            </if>
-            <if test="en_recorder != null" >
-                en_recorder,
-            </if>
-            <if test="en_recorddate != null" >
-                en_recorddate,
-            </if>
             <if test="updaterId != null" >
                 updaterId,
             </if>
@@ -88,15 +76,6 @@
             <if test="en_pricemethod != null" >
                 #{en_pricemethod,jdbcType=VARCHAR},
             </if>
-            <if test="en_recorderid != null" >
-                #{en_recorderid,jdbcType=INTEGER},
-            </if>
-            <if test="en_recorder != null" >
-                #{en_recorder,jdbcType=VARCHAR},
-            </if>
-            <if test="en_recorddate != null" >
-                #{en_recorddate,jdbcType=TIMESTAMP},
-            </if>
             <if test="updaterId != null" >
                 #{updaterId,jdbcType=INTEGER},
             </if>
@@ -132,15 +111,6 @@
             <if test="en_pricemethod != null" >
                 en_pricemethod = #{en_pricemethod,jdbcType=VARCHAR},
             </if>
-            <if test="en_recorderid != null" >
-                en_recorderid = #{en_recorderid,jdbcType=INTEGER},
-            </if>
-            <if test="en_recorder != null" >
-                en_recorder = #{en_recorder,jdbcType=VARCHAR},
-            </if>
-            <if test="en_recorddate != null" >
-                en_recorddate = #{en_recorddate,jdbcType=TIMESTAMP},
-            </if>
             <if test="updaterId != null" >
                 updaterId = #{updaterId,jdbcType=INTEGER},
             </if>

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

@@ -26,9 +26,6 @@ public class ProductDTO implements Serializable {
     private long pr_vendid;
     private String pr_vendname;
     private String pr_vendcode;
-    private Date pr_docdate;
-    private long pr_recordmanid;
-    private String pr_recordman;
     private String pr_status;
     private String pr_statuscode;
     private String pr_text1;

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

@@ -6,7 +6,6 @@ import java.io.Serializable;
 import java.util.Date;
 
 public class Address extends CommonBaseEntity implements Serializable {
-    private Date ad_recorddate;
 
     private String ad_text1;
 
@@ -20,14 +19,6 @@ public class Address extends CommonBaseEntity implements Serializable {
 
     private String ad_address;
 
-    public Date getAd_recorddate() {
-        return ad_recorddate;
-    }
-
-    public void setAd_recorddate(Date ad_recorddate) {
-        this.ad_recorddate = ad_recorddate;
-    }
-
     public String getAd_text1() {
         return ad_text1;
     }

+ 0 - 29
applications/document/document-dto/src/main/java/com/usoftchina/saas/document/entities/Bankinformation.java

@@ -23,12 +23,6 @@ public class Bankinformation extends CommonBaseEntity implements Serializable {
 
     private String bk_statuscode;
 
-    private Integer bk_recorderid;
-
-    private String bk_recorder;
-
-    private Date bk_recorddate;
-
     private Integer bk_ym;
 
     private String bk_text1;
@@ -126,29 +120,6 @@ public class Bankinformation extends CommonBaseEntity implements Serializable {
         this.bk_statuscode = bk_statuscode;
     }
 
-    public Integer getBk_recorderid() {
-        return bk_recorderid;
-    }
-
-    public void setBk_recorderid(Integer bk_recorderid) {
-        this.bk_recorderid = bk_recorderid;
-    }
-
-    public String getBk_recorder() {
-        return bk_recorder;
-    }
-
-    public void setBk_recorder(String bk_recorder) {
-        this.bk_recorder = bk_recorder;
-    }
-
-    public Date getBk_recorddate() {
-        return bk_recorddate;
-    }
-
-    public void setBk_recorddate(Date bk_recorddate) {
-        this.bk_recorddate = bk_recorddate;
-    }
 
     public Integer getBk_ym() {
         return bk_ym;

+ 0 - 30
applications/document/document-dto/src/main/java/com/usoftchina/saas/document/entities/Bom.java

@@ -19,12 +19,6 @@ public class Bom extends CommonBaseEntity implements Serializable {
 
     private String bo_statuscode;
 
-    private Integer bo_recorderid;
-
-    private String bo_recorder;
-
-    private Date bo_recorddate;
-
     private String bo_text1;
 
     private String bo_text2;
@@ -123,30 +117,6 @@ public class Bom extends CommonBaseEntity implements Serializable {
         this.bo_statuscode = bo_statuscode == null ? null : bo_statuscode.trim();
     }
 
-    public Integer getBo_recorderid() {
-        return bo_recorderid;
-    }
-
-    public void setBo_recorderid(Integer bo_recorderid) {
-        this.bo_recorderid = bo_recorderid;
-    }
-
-    public String getBo_recorder() {
-        return bo_recorder;
-    }
-
-    public void setBo_recorder(String bo_recorder) {
-        this.bo_recorder = bo_recorder == null ? null : bo_recorder.trim();
-    }
-
-    public Date getBo_recorddate() {
-        return bo_recorddate;
-    }
-
-    public void setBo_recorddate(Date bo_recorddate) {
-        this.bo_recorddate = bo_recorddate;
-    }
-
     public String getBo_text1() {
         return bo_text1;
     }

+ 0 - 29
applications/document/document-dto/src/main/java/com/usoftchina/saas/document/entities/Customerkind.java

@@ -8,12 +8,6 @@ import java.util.Date;
 public class Customerkind extends CommonBaseEntity implements Serializable {
     private String ck_name;
 
-    private Integer ck_recordid;
-
-    private String ck_recorder;
-
-    private Date ck_date;
-
     public String getCk_name() {
         return ck_name;
     }
@@ -22,27 +16,4 @@ public class Customerkind extends CommonBaseEntity implements Serializable {
         this.ck_name = ck_name == null ? null : ck_name.trim();
     }
 
-    public Integer getCk_recordid() {
-        return ck_recordid;
-    }
-
-    public void setCk_recordid(Integer ck_recordid) {
-        this.ck_recordid = ck_recordid;
-    }
-
-    public String getCk_recorder() {
-        return ck_recorder;
-    }
-
-    public void setCk_recorder(String ck_recorder) {
-        this.ck_recorder = ck_recorder == null ? null : ck_recorder.trim();
-    }
-
-    public Date getCk_date() {
-        return ck_date;
-    }
-
-    public void setCk_date(Date ck_date) {
-        this.ck_date = ck_date;
-    }
 }

+ 0 - 29
applications/document/document-dto/src/main/java/com/usoftchina/saas/document/entities/Fundinouttype.java

@@ -10,12 +10,6 @@ public class Fundinouttype extends CommonBaseEntity implements Serializable {
 
     private String ft_kind;
 
-    private Integer ft_recordid;
-
-    private String ft_recorder;
-
-    private Date ft_date;
-
     public String getFt_name() {
         return ft_name;
     }
@@ -32,27 +26,4 @@ public class Fundinouttype extends CommonBaseEntity implements Serializable {
         this.ft_kind = ft_kind == null ? null : ft_kind.trim();
     }
 
-    public Integer getFt_recordid() {
-        return ft_recordid;
-    }
-
-    public void setFt_recordid(Integer ft_recordid) {
-        this.ft_recordid = ft_recordid;
-    }
-
-    public String getFt_recorder() {
-        return ft_recorder;
-    }
-
-    public void setFt_recorder(String ft_recorder) {
-        this.ft_recorder = ft_recorder == null ? null : ft_recorder.trim();
-    }
-
-    public Date getFt_date() {
-        return ft_date;
-    }
-
-    public void setFt_date(Date ft_date) {
-        this.ft_date = ft_date;
-    }
 }

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

@@ -26,9 +26,6 @@ public class Product extends CommonBaseEntity implements Serializable {
     private Long pr_vendid;
     private String pr_vendname;
     private String pr_vendcode;
-    private Date pr_docdate;
-    private Long pr_recordmanid;
-    private String pr_recordman;
     private String pr_status;
     private String pr_statuscode;
     private String pr_text1;
@@ -180,30 +177,6 @@ public class Product extends CommonBaseEntity implements Serializable {
         this.pr_vendcode = pr_vendcode;
     }
 
-    public Date getPr_docdate() {
-        return pr_docdate;
-    }
-
-    public void setPr_docdate(Date pr_docdate) {
-        this.pr_docdate = pr_docdate;
-    }
-
-    public Long getPr_recordmanid() {
-        return pr_recordmanid;
-    }
-
-    public void setPr_recordmanid(Long pr_recordmanid) {
-        this.pr_recordmanid = pr_recordmanid;
-    }
-
-    public String getPr_recordman() {
-        return pr_recordman;
-    }
-
-    public void setPr_recordman(String pr_recordman) {
-        this.pr_recordman = pr_recordman;
-    }
-
     public String getPr_status() {
         return pr_status;
     }

+ 0 - 30
applications/document/document-dto/src/main/java/com/usoftchina/saas/document/entities/Productbrand.java

@@ -8,12 +8,6 @@ import java.util.Date;
 public class Productbrand extends CommonBaseEntity implements Serializable {
     private String pb_name;
 
-    private Integer pb_recordid;
-
-    private String pb_recorder;
-
-    private Date pb_date;
-
     public String getPb_name() {
         return pb_name;
     }
@@ -21,28 +15,4 @@ public class Productbrand extends CommonBaseEntity implements Serializable {
     public void setPb_name(String pb_name) {
         this.pb_name = pb_name == null ? null : pb_name.trim();
     }
-
-    public Integer getPb_recordid() {
-        return pb_recordid;
-    }
-
-    public void setPb_recordid(Integer pb_recordid) {
-        this.pb_recordid = pb_recordid;
-    }
-
-    public String getPb_recorder() {
-        return pb_recorder;
-    }
-
-    public void setPb_recorder(String pb_recorder) {
-        this.pb_recorder = pb_recorder == null ? null : pb_recorder.trim();
-    }
-
-    public Date getPb_date() {
-        return pb_date;
-    }
-
-    public void setPb_date(Date pb_date) {
-        this.pb_date = pb_date;
-    }
 }

+ 0 - 30
applications/document/document-dto/src/main/java/com/usoftchina/saas/document/entities/Producttype.java

@@ -9,12 +9,6 @@ public class Producttype extends CommonBaseEntity implements Serializable {
 
     private String pt_name;
 
-    private Integer pt_recordid;
-
-    private String pt_recorder;
-
-    private Date pt_date;
-
     public String getPt_name() {
         return pt_name;
     }
@@ -22,28 +16,4 @@ public class Producttype extends CommonBaseEntity implements Serializable {
     public void setPt_name(String pt_name) {
         this.pt_name = pt_name == null ? null : pt_name.trim();
     }
-
-    public Integer getPt_recordid() {
-        return pt_recordid;
-    }
-
-    public void setPt_recordid(Integer pt_recordid) {
-        this.pt_recordid = pt_recordid;
-    }
-
-    public String getPt_recorder() {
-        return pt_recorder;
-    }
-
-    public void setPt_recorder(String pt_recorder) {
-        this.pt_recorder = pt_recorder == null ? null : pt_recorder.trim();
-    }
-
-    public Date getPt_date() {
-        return pt_date;
-    }
-
-    public void setPt_date(Date pt_date) {
-        this.pt_date = pt_date;
-    }
 }

+ 0 - 30
applications/document/document-dto/src/main/java/com/usoftchina/saas/document/entities/Productunit.java

@@ -8,12 +8,6 @@ import java.util.Date;
 public class Productunit extends CommonBaseEntity implements Serializable {
     private String pu_name;
 
-    private Integer pu_recordid;
-
-    private String pu_recorder;
-
-    private Date pu_date;
-
     public String getPu_name() {
         return pu_name;
     }
@@ -21,28 +15,4 @@ public class Productunit extends CommonBaseEntity implements Serializable {
     public void setPu_name(String pu_name) {
         this.pu_name = pu_name == null ? null : pu_name.trim();
     }
-
-    public Integer getPu_recordid() {
-        return pu_recordid;
-    }
-
-    public void setPu_recordid(Integer pu_recordid) {
-        this.pu_recordid = pu_recordid;
-    }
-
-    public String getPu_recorder() {
-        return pu_recorder;
-    }
-
-    public void setPu_recorder(String pu_recorder) {
-        this.pu_recorder = pu_recorder == null ? null : pu_recorder.trim();
-    }
-
-    public Date getPu_date() {
-        return pu_date;
-    }
-
-    public void setPu_date(Date pu_date) {
-        this.pu_date = pu_date;
-    }
 }

+ 0 - 36
applications/document/document-dto/src/main/java/com/usoftchina/saas/document/entities/Vendor.java

@@ -68,18 +68,6 @@ public class Vendor extends CommonBaseEntity implements Serializable{
      * 状态码
      */
     private String ve_statuscode;
-    /**
-     * 录入人ID
-     */
-    private Long ve_recordid;
-    /**
-     * 录入人
-     */
-    private String ve_recordname;
-    /**
-     * 建立日期
-     */
-    private Date ve_initdate;
     /**
      * 自定义字段
      */
@@ -245,30 +233,6 @@ public class Vendor extends CommonBaseEntity implements Serializable{
         this.ve_statuscode = ve_statuscode;
     }
 
-    public Long getVe_recordid() {
-        return ve_recordid;
-    }
-
-    public void setVe_recordid(Long ve_recordid) {
-        this.ve_recordid = ve_recordid;
-    }
-
-    public String getVe_recordname() {
-        return ve_recordname;
-    }
-
-    public void setVe_recordname(String ve_recordname) {
-        this.ve_recordname = ve_recordname;
-    }
-
-    public Date getVe_initdate() {
-        return ve_initdate;
-    }
-
-    public void setVe_initdate(Date ve_initdate) {
-        this.ve_initdate = ve_initdate;
-    }
-
     public String getVe_text1() {
         return ve_text1;
     }

+ 0 - 12
applications/document/document-dto/src/main/java/com/usoftchina/saas/document/entities/VendorList.java

@@ -66,18 +66,6 @@ public class VendorList implements Serializable {
      * 状态码
      */
     private String ve_statuscode;
-    /**
-     * 录入人ID
-     */
-    private long ve_recordid;
-    /**
-     * 录入人
-     */
-    private String ve_recordname;
-    /**
-     * 建立日期
-     */
-    private Date ve_initdate;
     /**
      * 自定义字段
      */

+ 0 - 38
applications/document/document-dto/src/main/java/com/usoftchina/saas/document/entities/Vendorkind.java

@@ -17,21 +17,6 @@ public class Vendorkind extends CommonBaseEntity implements Serializable {
      */
     private String vk_name;
 
-    /**
-     * 录入人ID
-     */
-    private Integer vk_recordid;
-
-    /**
-     * 录入人
-     */
-    private String vk_recorder;
-
-    /**
-     * 录入日期
-     */
-    private Date vk_date;
-
     public String getVk_name() {
         return vk_name;
     }
@@ -40,27 +25,4 @@ public class Vendorkind extends CommonBaseEntity implements Serializable {
         this.vk_name = vk_name == null ? null : vk_name.trim();
     }
 
-    public Integer getVk_recordid() {
-        return vk_recordid;
-    }
-
-    public void setVk_recordid(Integer vk_recordid) {
-        this.vk_recordid = vk_recordid;
-    }
-
-    public String getVk_recorder() {
-        return vk_recorder;
-    }
-
-    public void setVk_recorder(String vk_recorder) {
-        this.vk_recorder = vk_recorder == null ? null : vk_recorder.trim();
-    }
-
-    public Date getVk_date() {
-        return vk_date;
-    }
-
-    public void setVk_date(Date vk_date) {
-        this.vk_date = vk_date;
-    }
 }

+ 1 - 0
applications/document/document-server/src/main/java/com/usoftchina/saas/document/service/impl/CustomerServiceImpl.java

@@ -147,6 +147,7 @@ public class CustomerServiceImpl extends CommonBaseServiceImpl<CustomerMapper, C
                 String mes = String.format(BizExceptionCode.LIMIT_PERIOD_CUSTOMER.getMessage(),YM);
                 throw new BizException(code , mes);
             }
+            YM = beginDate;
         }
         //编号校验
         cu_code = RegexpUtils.replaceSpecCharacter(cu_code);

+ 1 - 0
applications/document/document-server/src/main/java/com/usoftchina/saas/document/service/impl/VendorServiceImpl.java

@@ -133,6 +133,7 @@ public class VendorServiceImpl extends CommonBaseServiceImpl<VendorMapper, Vendo
                 String mes = String.format(BizExceptionCode.LIMIT_PERIOD_VENDOR.getMessage(),YM);
                 throw new BizException(code , mes);
             }
+            YM = beginDate;
         }
         ve_code = RegexpUtils.replaceSpecCharacter(ve_code);
         String code = pushMaxnubmer(ve_code, main.getId());

+ 5 - 15
applications/document/document-server/src/main/resources/mapper/AddressMapper.xml

@@ -3,7 +3,6 @@
 <mapper namespace="com.usoftchina.saas.document.mapper.AddressMapper">
   <resultMap id="BaseResultMap" type="com.usoftchina.saas.document.entities.Address">
     <id column="ad_id" jdbcType="INTEGER" property="id" />
-    <result column="ad_recorddate" jdbcType="TIMESTAMP" property="ad_recorddate" />
     <result column="companyId" jdbcType="INTEGER" property="companyId" />
     <result column="updaterId" jdbcType="INTEGER" property="updaterId" />
     <result column="updateTime" jdbcType="TIMESTAMP" property="updateTime" />
@@ -17,7 +16,7 @@
     <result column="ad_address" jdbcType="LONGVARCHAR" property="ad_address" />
   </resultMap>
   <sql id="Base_Column_List">
-    ad_id, ad_recorddate, companyId, updaterId, updateTime, ad_text1, ad_text2, ad_text3, 
+    ad_id,  companyId, updaterId, updateTime, ad_text1, ad_text2, ad_text3,
     ad_text4, ad_text5
   </sql>
   <sql id="Blob_Column_List">
@@ -28,11 +27,11 @@
     <selectKey resultType="java.lang.Long" keyProperty="id">
       SELECT LAST_INSERT_ID() AS ID
     </selectKey>
-    insert into address (ad_recorddate, companyId,
+    insert into address ( companyId,
       updaterId, updateTime, ad_text1, 
       ad_text2, ad_text3, ad_text4, 
       ad_text5, ad_address)
-    values (#{ad_recorddate,jdbcType=TIMESTAMP}, #{companyId,jdbcType=INTEGER},
+    values (#{companyId,jdbcType=INTEGER},
       #{updaterId,jdbcType=INTEGER}, #{updateTime,jdbcType=TIMESTAMP}, #{ad_text1,jdbcType=VARCHAR}, 
       #{ad_text2,jdbcType=VARCHAR}, #{ad_text3,jdbcType=VARCHAR}, #{ad_text4,jdbcType=VARCHAR}, 
       #{ad_text5,jdbcType=VARCHAR}, #{ad_address,jdbcType=LONGVARCHAR})
@@ -43,9 +42,6 @@
     </selectKey>
     insert into address
     <trim prefix="(" suffix=")" suffixOverrides=",">
-      <if test="ad_recorddate != null">
-        ad_recorddate,
-      </if>
       <if test="companyId != null">
         companyId,
       </if>
@@ -75,9 +71,6 @@
       </if>
     </trim>
     <trim prefix="values (" suffix=")" suffixOverrides=",">
-      <if test="ad_recorddate != null">
-        #{ad_recorddate,jdbcType=TIMESTAMP},
-      </if>
       <if test="companyId != null">
         #{companyId,jdbcType=INTEGER},
       </if>
@@ -110,9 +103,6 @@
   <update id="updateByPrimaryKeySelective" parameterType="com.usoftchina.saas.document.entities.Address">
     update address
     <set>
-      <if test="ad_recorddate != null">
-        ad_recorddate = #{ad_recorddate,jdbcType=TIMESTAMP},
-      </if>
       <if test="companyId != null">
         companyId = #{companyId,jdbcType=INTEGER},
       </if>
@@ -145,7 +135,7 @@
   </update>
   <update id="updateByPrimaryKeyWithBLOBs" parameterType="com.usoftchina.saas.document.entities.Address">
     update address
-    set ad_recorddate = #{ad_recorddate,jdbcType=TIMESTAMP},
+    set
       companyId = #{companyId,jdbcType=INTEGER},
       updaterId = #{updaterId,jdbcType=INTEGER},
       updateTime = #{updateTime,jdbcType=TIMESTAMP},
@@ -159,7 +149,7 @@
   </update>
   <update id="updateByPrimaryKey" parameterType="com.usoftchina.saas.document.entities.Address">
     update address
-    set ad_recorddate = #{ad_recorddate,jdbcType=TIMESTAMP},
+    set
       companyId = #{companyId,jdbcType=INTEGER},
       updaterId = #{updaterId,jdbcType=INTEGER},
       updateTime = #{updateTime,jdbcType=TIMESTAMP},

+ 2 - 37
applications/document/document-server/src/main/resources/mapper/BankinformationMapper.xml

@@ -11,9 +11,6 @@
     <result column="bk_thisamount" property="bk_thisamount" jdbcType="DOUBLE" />
     <result column="bk_status" property="bk_status" jdbcType="VARCHAR" />
     <result column="bk_statuscode" property="bk_statuscode" jdbcType="VARCHAR" />
-    <result column="bk_recorderid" property="bk_recorderid" jdbcType="INTEGER" />
-    <result column="bk_recorder" property="bk_recorder" jdbcType="VARCHAR" />
-    <result column="bk_recorddate" property="bk_recorddate" jdbcType="TIMESTAMP" />
     <result column="bk_ym" property="bk_ym" jdbcType="INTEGER" />
     <result column="companyid" property="companyId" jdbcType="INTEGER" />
     <result column="updaterId" property="updaterId" jdbcType="INTEGER" />
@@ -32,7 +29,7 @@
   </resultMap>
   <sql id="Base_Column_List" >
     bk_id, bk_bankcode, bk_bankname, bk_date, bk_type, bk_beginamount, bk_thisamount, 
-    bk_status, bk_statuscode, bk_recorderid, bk_recorder, bk_recorddate, bk_ym, companyid, 
+    bk_status, bk_statuscode, bk_ym, companyid,
     updaterId, updateTime, bk_text1, bk_text2, bk_text3, bk_text4, bk_text5, bk_remark
   </sql>
   <sql id="Blob_Column_List" >
@@ -53,8 +50,7 @@
   <insert id="insert" parameterType="com.usoftchina.saas.document.entities.Bankinformation" >
     insert into bankinformation (bk_id, bk_bankcode, bk_bankname, 
       bk_date, bk_type, bk_beginamount, 
-      bk_thisamount, bk_status, bk_statuscode, 
-      bk_recorderid, bk_recorder, bk_recorddate, 
+      bk_thisamount, bk_status, bk_statuscode,
       bk_ym, companyid, updaterId, 
       updateTime, bk_text1, bk_text2, 
       bk_text3, bk_text4, bk_text5, 
@@ -62,7 +58,6 @@
     values (#{bk_bankcode,jdbcType=VARCHAR}, #{bk_bankname,jdbcType=VARCHAR},
       #{bk_date,jdbcType=TIMESTAMP}, #{bk_type,jdbcType=VARCHAR}, #{bk_beginamount,jdbcType=DOUBLE},
       #{bk_thisamount,jdbcType=DOUBLE}, #{bk_status,jdbcType=VARCHAR}, #{bk_statuscode,jdbcType=VARCHAR},
-      #{bk_recorderid,jdbcType=INTEGER}, #{bk_recorder,jdbcType=VARCHAR}, #{bk_recorddate,jdbcType=TIMESTAMP},
       #{bk_ym,jdbcType=INTEGER}, #{companyId,jdbcType=INTEGER}, #{updaterId,jdbcType=INTEGER},
       #{updateTime,jdbcType=TIMESTAMP}, #{bk_text1,jdbcType=VARCHAR}, #{bk_text2,jdbcType=VARCHAR},
       #{bk_text3,jdbcType=VARCHAR}, #{bk_text4,jdbcType=VARCHAR}, #{bk_text5,jdbcType=VARCHAR},
@@ -95,15 +90,6 @@
       <if test="bk_statuscode != null" >
         bk_statuscode,
       </if>
-      <if test="bk_recorderid != null" >
-        bk_recorderid,
-      </if>
-      <if test="bk_recorder != null" >
-        bk_recorder,
-      </if>
-      <if test="bk_recorddate != null" >
-        bk_recorddate,
-      </if>
       <if test="bk_ym != null" >
         bk_ym,
       </if>
@@ -166,15 +152,6 @@
       <if test="bk_statuscode != null" >
         #{bk_statuscode,jdbcType=VARCHAR},
       </if>
-      <if test="bk_recorderid != null" >
-        #{bk_recorderid,jdbcType=INTEGER},
-      </if>
-      <if test="bk_recorder != null" >
-        #{bk_recorder,jdbcType=VARCHAR},
-      </if>
-      <if test="bk_recorddate != null" >
-        #{bk_recorddate,jdbcType=TIMESTAMP},
-      </if>
       <if test="bk_ym != null" >
         #{bk_ym,jdbcType=INTEGER},
       </if>
@@ -240,15 +217,6 @@
       <if test="bk_statuscode != null" >
         bk_statuscode = #{bk_statuscode,jdbcType=VARCHAR},
       </if>
-      <if test="bk_recorderid != null" >
-        bk_recorderid = #{bk_recorderid,jdbcType=INTEGER},
-      </if>
-      <if test="bk_recorder != null" >
-        bk_recorder = #{bk_recorder,jdbcType=VARCHAR},
-      </if>
-      <if test="bk_recorddate != null" >
-        bk_recorddate = #{bk_recorddate,jdbcType=TIMESTAMP},
-      </if>
       <if test="bk_ym != null" >
         bk_ym = #{bk_ym,jdbcType=INTEGER},
       </if>
@@ -298,9 +266,6 @@
       bk_thisamount = #{bkThisamount,jdbcType=DOUBLE},
       bk_status = #{bkStatus,jdbcType=VARCHAR},
       bk_statuscode = #{bkStatuscode,jdbcType=VARCHAR},
-      bk_recorderid = #{bkRecorderid,jdbcType=INTEGER},
-      bk_recorder = #{bkRecorder,jdbcType=VARCHAR},
-      bk_recorddate = #{bkRecorddate,jdbcType=TIMESTAMP},
       bk_ym = #{bkYm,jdbcType=INTEGER},
       companyid = #{companyId,jdbcType=INTEGER},
       updaterId = #{updaterId,jdbcType=INTEGER},

+ 0 - 3
applications/document/document-server/src/main/resources/mapper/BomDetailMapper.xml

@@ -39,9 +39,6 @@
         <result column="pr_vendid" property="pr_vendid" jdbcType="INTEGER" />
         <result column="pr_vendcode" property="pr_vendcode" jdbcType="VARCHAR" />
         <result column="pr_vendname" property="pr_vendname" jdbcType="VARCHAR" />
-        <result column="pr_docdate" property="pr_docdate" jdbcType="TIMESTAMP" />
-        <result column="pr_recordmanid" property="pr_recordmanid" jdbcType="INTEGER" />
-        <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="updateTime" property="updateTime" jdbcType="TIMESTAMP" />

+ 3 - 38
applications/document/document-server/src/main/resources/mapper/BomMapper.xml

@@ -9,9 +9,6 @@
     <result column="bo_version" property="bo_version" jdbcType="VARCHAR" />
     <result column="bo_status" property="bo_status" jdbcType="VARCHAR" />
     <result column="bo_statuscode" property="bo_statuscode" jdbcType="VARCHAR" />
-    <result column="bo_recorderid" property="bo_recorderid" jdbcType="INTEGER" />
-    <result column="bo_recorder" property="bo_recorder" jdbcType="VARCHAR" />
-    <result column="bo_recorddate" property="bo_recorddate" jdbcType="TIMESTAMP" />
     <result column="companyId" property="companyId" jdbcType="INTEGER" />
     <result column="updaterId" property="updaterId" jdbcType="INTEGER" />
     <result column="updaterName" property="updaterName" jdbcType="VARCHAR" />
@@ -34,7 +31,7 @@
   </resultMap>
   <sql id="Base_Column_List" >
     bo_id, bo_motherid, bo_mothercode, bo_mothername, bo_version, bo_status, bo_statuscode, 
-    bo_recorderid, bo_recorder, bo_recorddate, companyId, updaterId,updaterName,updateTime, bo_text1,
+    companyId, updaterId,updaterName,updateTime, bo_text1,
     bo_text2, bo_text3, bo_text4, bo_text5,creatorName,creatorId,createTime
   </sql>
   <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" >
@@ -53,15 +50,13 @@
     </selectKey>
     insert into bom (bo_motherid, bo_mothercode,
       bo_mothername, bo_version, bo_status, 
-      bo_statuscode, bo_recorderid, bo_recorder, 
-      bo_recorddate, companyId, updaterId, 
+      bo_statuscode, companyId, updaterId,
       updateTime, bo_text1, bo_text2, 
       bo_text3, bo_text4, bo_text5
       )
     values (#{bo_motherid,jdbcType=INTEGER}, #{bo_mothercode,jdbcType=VARCHAR},
       #{bo_mothername,jdbcType=VARCHAR}, #{bo_version,jdbcType=VARCHAR}, #{bo_status,jdbcType=VARCHAR}, 
-      #{bo_statuscode,jdbcType=VARCHAR}, #{bo_recorderid,jdbcType=INTEGER}, #{bo_recorder,jdbcType=VARCHAR}, 
-      #{bo_recorddate,jdbcType=TIMESTAMP}, #{companyId,jdbcType=INTEGER}, #{updaterId,jdbcType=INTEGER}, 
+      #{bo_statuscode,jdbcType=VARCHAR}, #{companyId,jdbcType=INTEGER}, #{updaterId,jdbcType=INTEGER},
       #{updateTime,jdbcType=TIMESTAMP}, #{bo_text1,jdbcType=VARCHAR}, #{bo_text2,jdbcType=VARCHAR}, 
       #{bo_text3,jdbcType=VARCHAR}, #{bo_text4,jdbcType=VARCHAR}, #{bo_text5,jdbcType=VARCHAR}
       )
@@ -90,15 +85,6 @@
       <if test="bo_statuscode != null" >
         bo_statuscode,
       </if>
-      <if test="bo_recorderid != null" >
-        bo_recorderid,
-      </if>
-      <if test="bo_recorder != null" >
-        bo_recorder,
-      </if>
-      <if test="bo_recorddate != null" >
-        bo_recorddate,
-      </if>
       <if test="companyId != null" >
         companyId,
       </if>
@@ -149,15 +135,6 @@
       <if test="bo_statuscode != null" >
         #{bo_statuscode,jdbcType=VARCHAR},
       </if>
-      <if test="bo_recorderid != null" >
-        #{bo_recorderid,jdbcType=INTEGER},
-      </if>
-      <if test="bo_recorder != null" >
-        #{bo_recorder,jdbcType=VARCHAR},
-      </if>
-      <if test="bo_recorddate != null" >
-        #{bo_recorddate,jdbcType=TIMESTAMP},
-      </if>
       <if test="companyId != null" >
         #{companyId,jdbcType=INTEGER},
       </if>
@@ -208,15 +185,6 @@
       <if test="bo_statuscode != null" >
         bo_statuscode = #{bo_statuscode,jdbcType=VARCHAR},
       </if>
-      <if test="bo_recorderid != null" >
-        bo_recorderid = #{bo_recorderid,jdbcType=INTEGER},
-      </if>
-      <if test="bo_recorder != null" >
-        bo_recorder = #{bo_recorder,jdbcType=VARCHAR},
-      </if>
-      <if test="bo_recorddate != null" >
-        bo_recorddate = #{bo_recorddate,jdbcType=TIMESTAMP},
-      </if>
       <if test="companyId != null" >
         companyId = #{companyId,jdbcType=INTEGER},
       </if>
@@ -252,9 +220,6 @@
       bo_version = #{bo_version,jdbcType=VARCHAR},
       bo_status = #{bo_status,jdbcType=VARCHAR},
       bo_statuscode = #{bo_statuscode,jdbcType=VARCHAR},
-      bo_recorderid = #{bo_recorderid,jdbcType=INTEGER},
-      bo_recorder = #{bo_recorder,jdbcType=VARCHAR},
-      bo_recorddate = #{bo_recorddate,jdbcType=TIMESTAMP},
       companyId = #{companyId,jdbcType=INTEGER},
       updaterId = #{updaterId,jdbcType=INTEGER},
       updateTime = #{updateTime,jdbcType=TIMESTAMP},

+ 3 - 38
applications/document/document-server/src/main/resources/mapper/CustomerkindMapper.xml

@@ -4,9 +4,6 @@
   <resultMap id="BaseResultMap" type="com.usoftchina.saas.document.entities.Customerkind" >
     <id column="ck_id" property="id" jdbcType="INTEGER" />
     <result column="ck_name" property="ck_name" jdbcType="VARCHAR" />
-    <result column="ck_recordid" property="ck_recordid" jdbcType="INTEGER" />
-    <result column="ck_recorder" property="ck_recorder" jdbcType="VARCHAR" />
-    <result column="ck_date" property="ck_date" jdbcType="TIMESTAMP" />
     <result column="companyId" property="companyId" jdbcType="INTEGER" />
     <result column="updaterId" property="updaterId" jdbcType="INTEGER" />
     <result column="updateTime" property="updateTime" jdbcType="TIMESTAMP" />
@@ -18,18 +15,16 @@
     where ck_id = #{id}
   </select>
   <sql id="Base_Column_List" >
-    ck_id, ck_name, ck_recordid, ck_recorder, ck_date, companyId, updaterId, updateTime
+    ck_id, ck_name, companyId, updaterId, updateTime
   </sql>
   <delete id="deleteByPrimaryKey" parameterType="java.lang.Long" >
     delete from customerkind
     where ck_id = #{id}
   </delete>
   <insert id="insert" parameterType="com.usoftchina.saas.document.entities.Customerkind" >
-    insert into customerkind (ck_name, ck_recordid,
-      ck_recorder, ck_date, companyId, 
+    insert into customerkind (ck_name, companyId,
       updaterId, updateTime)
-    values (#{ck_name,jdbcType=VARCHAR}, #{ck_recordid,jdbcType=INTEGER},
-      #{ck_recorder,jdbcType=VARCHAR}, #{ck_date,jdbcType=TIMESTAMP}, #{companyId,jdbcType=INTEGER}, 
+    values (#{ck_name,jdbcType=VARCHAR},#{companyId,jdbcType=INTEGER},
       #{updaterId,jdbcType=INTEGER}, #{updateTime,jdbcType=TIMESTAMP})
   </insert>
   <insert id="insertSelective" parameterType="com.usoftchina.saas.document.entities.Customerkind" >
@@ -38,15 +33,6 @@
       <if test="ck_name != null" >
         ck_name,
       </if>
-      <if test="ck_recordid != null" >
-        ck_recordid,
-      </if>
-      <if test="ck_recorder != null" >
-        ck_recorder,
-      </if>
-      <if test="ck_date != null" >
-        ck_date,
-      </if>
       <if test="companyId != null" >
         companyId,
       </if>
@@ -61,15 +47,6 @@
       <if test="ck_name != null" >
         #{ck_name,jdbcType=VARCHAR},
       </if>
-      <if test="ck_recordid != null" >
-        #{ck_recordid,jdbcType=INTEGER},
-      </if>
-      <if test="ck_recorder != null" >
-        #{ck_recorder,jdbcType=VARCHAR},
-      </if>
-      <if test="ck_date != null" >
-        #{ck_date,jdbcType=TIMESTAMP},
-      </if>
       <if test="companyId != null" >
         #{companyId,jdbcType=INTEGER},
       </if>
@@ -87,15 +64,6 @@
       <if test="ck_name != null" >
         ck_name = #{ck_name,jdbcType=VARCHAR},
       </if>
-      <if test="ck_recordid != null" >
-        ck_recordid = #{ck_recordid,jdbcType=INTEGER},
-      </if>
-      <if test="ck_recorder != null" >
-        ck_recorder = #{ck_recorder,jdbcType=VARCHAR},
-      </if>
-      <if test="ck_date != null" >
-        ck_date = #{ck_date,jdbcType=TIMESTAMP},
-      </if>
       <if test="companyId != null" >
         companyId = #{companyId,jdbcType=INTEGER},
       </if>
@@ -111,9 +79,6 @@
   <update id="updateByPrimaryKey" parameterType="com.usoftchina.saas.document.entities.Customerkind" >
     update customerkind
     set ck_name = #{ck_name,jdbcType=VARCHAR},
-      ck_recordid = #{ck_recordid,jdbcType=INTEGER},
-      ck_recorder = #{ck_recorder,jdbcType=VARCHAR},
-      ck_date = #{ck_date,jdbcType=TIMESTAMP},
       companyId = #{companyId,jdbcType=INTEGER},
       updaterId = #{updaterId,jdbcType=INTEGER},
       updateTime = #{updateTime,jdbcType=TIMESTAMP}

+ 1 - 36
applications/document/document-server/src/main/resources/mapper/FundinouttypeMapper.xml

@@ -5,15 +5,12 @@
     <id column="ft_id" property="id" jdbcType="INTEGER" />
     <result column="ft_name" property="ft_name" jdbcType="VARCHAR" />
     <result column="ft_kind" property="ft_kind" jdbcType="VARCHAR" />
-    <result column="ft_recordid" property="ft_recordid" jdbcType="INTEGER" />
-    <result column="ft_recorder" property="ft_recorder" jdbcType="VARCHAR" />
-    <result column="ft_date" property="ft_date" jdbcType="TIMESTAMP" />
     <result column="companyId" property="companyId" jdbcType="INTEGER" />
     <result column="updaterId" property="updaterId" jdbcType="INTEGER" />
     <result column="updateTime" property="updateTime" jdbcType="TIMESTAMP" />
   </resultMap>
   <sql id="Base_Column_List" >
-    ft_id, ft_name, ft_kind, ft_recordid, ft_recorder, ft_date, companyId, updaterId, 
+    ft_id, ft_name, ft_kind, companyId, updaterId,
     updateTime
   </sql>
   <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" >
@@ -31,11 +28,9 @@
       SELECT LAST_INSERT_ID() AS ID
     </selectKey>
     insert into fundinouttype (ft_name, ft_kind,
-      ft_recordid, ft_recorder, ft_date, 
       companyId, updaterId, updateTime
       )
     values (#{ft_name,jdbcType=VARCHAR}, #{ft_kind,jdbcType=VARCHAR},
-      #{ft_recordid,jdbcType=INTEGER}, #{ft_recorder,jdbcType=VARCHAR}, #{ft_date,jdbcType=TIMESTAMP}, 
       #{companyId,jdbcType=INTEGER}, #{updaterId,jdbcType=INTEGER}, #{updateTime,jdbcType=TIMESTAMP}
       )
   </insert>
@@ -51,15 +46,6 @@
       <if test="ft_kind != null" >
         ft_kind,
       </if>
-      <if test="ft_recordid != null" >
-        ft_recordid,
-      </if>
-      <if test="ft_recorder != null" >
-        ft_recorder,
-      </if>
-      <if test="ft_date != null" >
-        ft_date,
-      </if>
       <if test="companyId != null" >
         companyId,
       </if>
@@ -77,15 +63,6 @@
       <if test="ft_kind != null" >
         #{ft_kind,jdbcType=VARCHAR},
       </if>
-      <if test="ft_recordid != null" >
-        #{ft_recordid,jdbcType=INTEGER},
-      </if>
-      <if test="ft_recorder != null" >
-        #{ft_recorder,jdbcType=VARCHAR},
-      </if>
-      <if test="ft_date != null" >
-        #{ft_date,jdbcType=TIMESTAMP},
-      </if>
       <if test="companyId != null" >
         #{companyId,jdbcType=INTEGER},
       </if>
@@ -106,15 +83,6 @@
       <if test="ft_kind != null" >
         ft_kind = #{ft_kind,jdbcType=VARCHAR},
       </if>
-      <if test="ft_recordid != null" >
-        ft_recordid = #{ft_recordid,jdbcType=INTEGER},
-      </if>
-      <if test="ft_recorder != null" >
-        ft_recorder = #{ft_recorder,jdbcType=VARCHAR},
-      </if>
-      <if test="ft_date != null" >
-        ft_date = #{ft_date,jdbcType=TIMESTAMP},
-      </if>
       <if test="companyId != null" >
         companyId = #{companyId,jdbcType=INTEGER},
       </if>
@@ -131,9 +99,6 @@
     update fundinouttype
     set ft_name = #{ft_name,jdbcType=VARCHAR},
       ft_kind = #{ft_kind,jdbcType=VARCHAR},
-      ft_recordid = #{ft_recordid,jdbcType=INTEGER},
-      ft_recorder = #{ft_recorder,jdbcType=VARCHAR},
-      ft_date = #{ft_date,jdbcType=TIMESTAMP},
       companyId = #{companyId,jdbcType=INTEGER},
       updaterId = #{updaterId,jdbcType=INTEGER},
       updateTime = #{updateTime,jdbcType=TIMESTAMP}

+ 3 - 38
applications/document/document-server/src/main/resources/mapper/ProductMapper.xml

@@ -21,9 +21,6 @@
         <result column="pr_vendid" property="pr_vendid" jdbcType="INTEGER" />
         <result column="pr_vendcode" property="pr_vendcode" jdbcType="VARCHAR" />
         <result column="pr_vendname" property="pr_vendname" jdbcType="VARCHAR" />
-        <result column="pr_docdate" property="pr_docdate" jdbcType="TIMESTAMP" />
-        <result column="pr_recordmanid" property="pr_recordmanid" jdbcType="INTEGER" />
-        <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" />
@@ -96,7 +93,7 @@
     <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_vendid, pr_vendcode, pr_vendname, pr_status,
         pr_statuscode, companyId, updaterId, updateTime, pr_text1, pr_text2, pr_text3,
         pr_text4, pr_text5
     </sql>
@@ -120,8 +117,7 @@
         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,
+        pr_vendname, pr_status, pr_statuscode,
         companyId, updaterId, updateTime,
         pr_text1, pr_text2, pr_text3,
         pr_text4, pr_text5)
@@ -131,8 +127,7 @@
         #{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},
+        #{pr_vendname,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})
@@ -197,15 +192,6 @@
             <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>
@@ -292,15 +278,6 @@
             <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>
@@ -390,15 +367,6 @@
             <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>
@@ -452,9 +420,6 @@
         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},

+ 3 - 38
applications/document/document-server/src/main/resources/mapper/ProductbrandMapper.xml

@@ -4,9 +4,6 @@
   <resultMap id="BaseResultMap" type="com.usoftchina.saas.document.entities.Productbrand" >
     <id column="pb_id" property="id" jdbcType="INTEGER" />
     <result column="pb_name" property="pb_name" jdbcType="VARCHAR" />
-    <result column="pb_recordid" property="pb_recordid" jdbcType="INTEGER" />
-    <result column="pb_recorder" property="pb_recorder" jdbcType="VARCHAR" />
-    <result column="pb_date" property="pb_date" jdbcType="TIMESTAMP" />
     <result column="companyId" property="companyId" jdbcType="INTEGER" />
     <result column="updaterId" property="updaterId" jdbcType="INTEGER" />
     <result column="updateTime" property="updateTime" jdbcType="TIMESTAMP" />
@@ -18,7 +15,7 @@
     where pb_id = #{id}
   </select>
   <sql id="Base_Column_List" >
-    pb_id, pb_name, pb_recordid, pb_recorder, pb_date, companyId, updaterId, updateTime
+    pb_id, pb_name, companyId, updaterId, updateTime
   </sql>
   <delete id="deleteByPrimaryKey" parameterType="java.lang.Long" >
     delete from productbrand
@@ -28,11 +25,9 @@
     <selectKey resultType="java.lang.Long" keyProperty="id">
       SELECT LAST_INSERT_ID() AS ID
     </selectKey>
-    insert into productbrand (pb_name, pb_recordid,
-      pb_recorder, pb_date, companyId, 
+    insert into productbrand (pb_name,companyId,
       updaterId, updateTime)
-    values (#{pb_name,jdbcType=VARCHAR}, #{pb_recordid,jdbcType=INTEGER},
-      #{pb_recorder,jdbcType=VARCHAR}, #{pb_date,jdbcType=TIMESTAMP}, #{companyId,jdbcType=INTEGER}, 
+    values (#{pb_name,jdbcType=VARCHAR},#{companyId,jdbcType=INTEGER},
       #{updaterId,jdbcType=INTEGER}, #{updateTime,jdbcType=TIMESTAMP})
   </insert>
   <insert id="insertSelective" parameterType="com.usoftchina.saas.document.entities.Productbrand" >
@@ -44,15 +39,6 @@
       <if test="pb_name != null" >
         pb_name,
       </if>
-      <if test="pb_recordid != null" >
-        pb_recordid,
-      </if>
-      <if test="pb_recorder != null" >
-        pb_recorder,
-      </if>
-      <if test="pb_date != null" >
-        pb_date,
-      </if>
       <if test="companyId != null" >
         companyId,
       </if>
@@ -67,15 +53,6 @@
       <if test="pb_name != null" >
         #{pb_name,jdbcType=VARCHAR},
       </if>
-      <if test="pb_recordid != null" >
-        #{pb_recordid,jdbcType=INTEGER},
-      </if>
-      <if test="pb_recorder != null" >
-        #{pb_recorder,jdbcType=VARCHAR},
-      </if>
-      <if test="pb_date != null" >
-        #{pb_date,jdbcType=TIMESTAMP},
-      </if>
       <if test="companyId != null" >
         #{companyId,jdbcType=INTEGER},
       </if>
@@ -93,15 +70,6 @@
       <if test="pb_name != null" >
         pb_name = #{pb_name,jdbcType=VARCHAR},
       </if>
-      <if test="pb_recordid != null" >
-        pb_recordid = #{pb_recordid,jdbcType=INTEGER},
-      </if>
-      <if test="pb_recorder != null" >
-        pb_recorder = #{pb_recorder,jdbcType=VARCHAR},
-      </if>
-      <if test="pb_date != null" >
-        pb_date = #{pb_date,jdbcType=TIMESTAMP},
-      </if>
       <if test="companyId != null" >
         companyId = #{companyId,jdbcType=INTEGER},
       </if>
@@ -117,9 +85,6 @@
   <update id="updateByPrimaryKey" parameterType="com.usoftchina.saas.document.entities.Productbrand" >
     update productbrand
     set pb_name = #{pb_name,jdbcType=VARCHAR},
-      pb_recordid = #{pb_recordid,jdbcType=INTEGER},
-      pb_recorder = #{pb_recorder,jdbcType=VARCHAR},
-      pb_date = #{pb_date,jdbcType=TIMESTAMP},
       companyId = #{companyId,jdbcType=INTEGER},
       updaterId = #{updaterId,jdbcType=INTEGER},
       updateTime = #{updateTime,jdbcType=TIMESTAMP}

+ 3 - 38
applications/document/document-server/src/main/resources/mapper/ProducttypeMapper.xml

@@ -4,15 +4,12 @@
   <resultMap id="BaseResultMap" type="com.usoftchina.saas.document.entities.Producttype">
     <id column="pt_id" jdbcType="INTEGER" property="id" />
     <result column="pt_name" jdbcType="VARCHAR" property="pt_name" />
-    <result column="pt_recordid" jdbcType="INTEGER" property="pt_recordid" />
-    <result column="pt_recorder" jdbcType="VARCHAR" property="pt_recorder" />
-    <result column="pt_date" jdbcType="TIMESTAMP" property="pt_date" />
     <result column="companyId" jdbcType="INTEGER" property="companyId" />
     <result column="updaterId" jdbcType="INTEGER" property="updaterId" />
     <result column="updateTime" jdbcType="TIMESTAMP" property="updateTime" />
   </resultMap>
   <sql id="Base_Column_List">
-    pt_id, pt_name, pt_recordid, pt_recorder, pt_date, companyId, updaterId, updateTime
+    pt_id, pt_name, companyId, updaterId, updateTime
   </sql>
   <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
     select 
@@ -28,11 +25,9 @@
     <selectKey resultType="java.lang.Long" keyProperty="id">
       SELECT LAST_INSERT_ID() AS ID
     </selectKey>
-    insert into producttype (pt_name, pt_recordid,
-      pt_recorder, pt_date, companyId, 
+    insert into producttype (pt_name, companyId,
       updaterId, updateTime)
-    values (#{pt_name,jdbcType=VARCHAR}, #{pt_recordid,jdbcType=INTEGER},
-      #{pt_recorder,jdbcType=VARCHAR}, #{pt_date,jdbcType=TIMESTAMP}, #{companyId,jdbcType=INTEGER}, 
+    values (#{pt_name,jdbcType=VARCHAR}, #{companyId,jdbcType=INTEGER},
       #{updaterId,jdbcType=INTEGER}, #{updateTime,jdbcType=TIMESTAMP})
   </insert>
   <insert id="insertSelective" parameterType="com.usoftchina.saas.document.entities.Producttype">
@@ -44,15 +39,6 @@
       <if test="pt_name != null">
         pt_name,
       </if>
-      <if test="pt_recordid != null">
-        pt_recordid,
-      </if>
-      <if test="pt_recorder != null">
-        pt_recorder,
-      </if>
-      <if test="pt_date != null">
-        pt_date,
-      </if>
       <if test="companyId != null">
         companyId,
       </if>
@@ -67,15 +53,6 @@
       <if test="pt_name != null">
         #{pt_name,jdbcType=VARCHAR},
       </if>
-      <if test="pt_recordid != null">
-        #{pt_recordid,jdbcType=INTEGER},
-      </if>
-      <if test="pt_recorder != null">
-        #{pt_recorder,jdbcType=VARCHAR},
-      </if>
-      <if test="pt_date != null">
-        #{pt_date,jdbcType=TIMESTAMP},
-      </if>
       <if test="companyId != null">
         #{companyId,jdbcType=INTEGER},
       </if>
@@ -93,15 +70,6 @@
       <if test="pt_name != null">
         pt_name = #{pt_name,jdbcType=VARCHAR},
       </if>
-      <if test="pt_recordid != null">
-        pt_recordid = #{pt_recordid,jdbcType=INTEGER},
-      </if>
-      <if test="pt_recorder != null">
-        pt_recorder = #{pt_recorder,jdbcType=VARCHAR},
-      </if>
-      <if test="pt_date != null">
-        pt_date = #{pt_date,jdbcType=TIMESTAMP},
-      </if>
       <if test="companyId != null">
         companyId = #{companyId,jdbcType=INTEGER},
       </if>
@@ -117,9 +85,6 @@
   <update id="updateByPrimaryKey" parameterType="com.usoftchina.saas.document.entities.Producttype">
     update producttype
     set pt_name = #{pt_name,jdbcType=VARCHAR},
-      pt_recordid = #{pt_recordid,jdbcType=INTEGER},
-      pt_recorder = #{pt_recorder,jdbcType=VARCHAR},
-      pt_date = #{pt_date,jdbcType=TIMESTAMP},
       companyId = #{companyId,jdbcType=INTEGER},
       updaterId = #{updaterId,jdbcType=INTEGER},
       updateTime = #{updateTime,jdbcType=TIMESTAMP}

+ 3 - 38
applications/document/document-server/src/main/resources/mapper/ProductunitMapper.xml

@@ -4,15 +4,12 @@
   <resultMap id="BaseResultMap" type="com.usoftchina.saas.document.entities.Productunit" >
     <id column="pu_id" property="id" jdbcType="INTEGER" />
     <result column="pu_name" property="pu_name" jdbcType="VARCHAR" />
-    <result column="pu_recordid" property="pu_recordid" jdbcType="INTEGER" />
-    <result column="pu_recorder" property="pu_recorder" jdbcType="VARCHAR" />
-    <result column="pu_date" property="pu_date" jdbcType="TIMESTAMP" />
     <result column="companyId" property="companyId" jdbcType="INTEGER" />
     <result column="updaterId" property="updaterId" jdbcType="INTEGER" />
     <result column="updateTime" property="updateTime" jdbcType="TIMESTAMP" />
   </resultMap>
   <sql id="Base_Column_List" >
-    pu_id, pu_name, pu_recordid, pu_recorder, pu_date, companyId, updaterId, updateTime
+    pu_id, pu_name, companyId, updaterId, updateTime
   </sql>
   <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" >
     select 
@@ -25,11 +22,9 @@
     where pu_id = #{id}
   </delete>
   <insert id="insert" parameterType="com.usoftchina.saas.document.entities.Productunit" >
-    insert into productunit (pu_name, pu_recordid,
-      pu_recorder, pu_date, companyId, 
+    insert into productunit (pu_name, companyId,
       updaterId, updateTime)
-    values (#{pu_name,jdbcType=VARCHAR}, #{pu_recordid,jdbcType=INTEGER},
-      #{pu_recorder,jdbcType=VARCHAR}, #{pu_date,jdbcType=TIMESTAMP}, #{companyId,jdbcType=INTEGER}, 
+    values (#{pu_name,jdbcType=VARCHAR}, #{companyId,jdbcType=INTEGER},
       #{updaterId,jdbcType=INTEGER}, #{updateTime,jdbcType=TIMESTAMP})
   </insert>
   <insert id="insertSelective" parameterType="com.usoftchina.saas.document.entities.Productunit" >
@@ -38,15 +33,6 @@
       <if test="pu_name != null" >
         pu_name,
       </if>
-      <if test="pu_recordid != null" >
-        pu_recordid,
-      </if>
-      <if test="pu_recorder != null" >
-        pu_recorder,
-      </if>
-      <if test="pu_date != null" >
-        pu_date,
-      </if>
       <if test="companyId != null" >
         companyId,
       </if>
@@ -61,15 +47,6 @@
       <if test="pu_name != null" >
         #{pu_name,jdbcType=VARCHAR},
       </if>
-      <if test="pu_recordid != null" >
-        #{pu_recordid,jdbcType=INTEGER},
-      </if>
-      <if test="pu_recorder != null" >
-        #{pu_recorder,jdbcType=VARCHAR},
-      </if>
-      <if test="pu_date != null" >
-        #{pu_date,jdbcType=TIMESTAMP},
-      </if>
       <if test="companyId != null" >
         #{companyId,jdbcType=INTEGER},
       </if>
@@ -87,15 +64,6 @@
       <if test="pu_name != null" >
         pu_name = #{pu_name,jdbcType=VARCHAR},
       </if>
-      <if test="pu_recordid != null" >
-        pu_recordid = #{pu_recordid,jdbcType=INTEGER},
-      </if>
-      <if test="pu_recorder != null" >
-        pu_recorder = #{pu_recorder,jdbcType=VARCHAR},
-      </if>
-      <if test="pu_date != null" >
-        pu_date = #{pu_date,jdbcType=TIMESTAMP},
-      </if>
       <if test="companyId != null" >
         companyId = #{companyId,jdbcType=INTEGER},
       </if>
@@ -111,9 +79,6 @@
   <update id="updateByPrimaryKey" parameterType="com.usoftchina.saas.document.entities.Productunit" >
     update productunit
     set pu_name = #{pu_name,jdbcType=VARCHAR},
-      pu_recordid = #{pu_recordid,jdbcType=INTEGER},
-      pu_recorder = #{pu_recorder,jdbcType=VARCHAR},
-      pu_date = #{pu_date,jdbcType=TIMESTAMP},
       companyId = #{companyId,jdbcType=INTEGER},
       updaterId = #{updaterId,jdbcType=INTEGER},
       updateTime = #{updateTime,jdbcType=TIMESTAMP}

+ 3 - 41
applications/document/document-server/src/main/resources/mapper/VendorMapper.xml

@@ -17,9 +17,6 @@
         <result column="ve_bankcode" property="ve_bankcode" jdbcType="VARCHAR" />
         <result column="ve_status" property="ve_status" jdbcType="VARCHAR" />
         <result column="ve_statuscode" property="ve_statuscode" jdbcType="VARCHAR" />
-        <result column="ve_recordid" property="ve_recordid" jdbcType="INTEGER" />
-        <result column="ve_recordname" property="ve_recordname" jdbcType="VARCHAR" />
-        <result column="ve_initdate" property="ve_initdate" jdbcType="TIMESTAMP" />
         <result column="companyId" property="companyId" jdbcType="INTEGER" />
         <result column="updaterId" property="updaterId" jdbcType="INTEGER" />
         <result column="updateTime" property="updateTime" jdbcType="TIMESTAMP" />
@@ -70,9 +67,6 @@
         <result column="ve_bankcode" property="ve_bankcode" jdbcType="VARCHAR" />
         <result column="ve_status" property="ve_status" jdbcType="VARCHAR" />
         <result column="ve_statuscode" property="ve_statuscode" jdbcType="VARCHAR" />
-        <result column="ve_recordid" property="ve_recordid" jdbcType="INTEGER" />
-        <result column="ve_recordname" property="ve_recordname" jdbcType="VARCHAR" />
-        <result column="ve_initdate" property="ve_initdate" jdbcType="TIMESTAMP" />
         <result column="ve_leftamount" property="ve_leftamount" jdbcType="INTEGER" />
         <result column="ve_text1" property="ve_text1" jdbcType="VARCHAR" />
         <result column="ve_text2" property="ve_text2" jdbcType="VARCHAR" />
@@ -107,7 +101,7 @@
     <sql id="Base_Column_List" >
         ve_id, ve_code, ve_name, ve_uu, ve_type, ve_begindate, ve_beginapamount, ve_beginprepayamount,
         ve_promisedays, ve_taxrate, ve_nsrzh, ve_bankaccount, ve_bankcode, ve_status, ve_statuscode,
-        ve_recordid, ve_recordname, ve_initdate, companyId, updaterId, updateTime, ve_text1,
+        companyId, updaterId, updateTime, ve_text1,
         ve_text2, ve_text3, ve_text4, ve_text5, ve_payamount, ve_leftamount, ve_beginym, ve_preamount
     </sql>
     <select id="selectByPrimaryKey" resultMap="VendorResultMapper" parameterType="java.lang.Long" >
@@ -126,8 +120,7 @@
         ve_beginapamount, ve_beginprepayamount,
         ve_promisedays, ve_taxrate, ve_nsrzh,
         ve_bankaccount, ve_bankcode, ve_status,
-        ve_statuscode, ve_recordid, ve_recordname,
-        ve_initdate, companyId, updaterId,
+        ve_statuscode, companyId, updaterId,
         updateTime, ve_text1, ve_text2,
         ve_text3, ve_text4, ve_text5,
         ve_payamount, ve_leftamount, ve_beginym ,ve_preamount
@@ -137,8 +130,7 @@
         #{ve_beginapamount,jdbcType=DOUBLE}, #{ve_beginprepayamount,jdbcType=DOUBLE},
         #{ve_promisedays,jdbcType=DECIMAL}, #{ve_taxrate,jdbcType=DOUBLE}, #{ve_nsrzh,jdbcType=VARCHAR},
         #{ve_bankaccount,jdbcType=VARCHAR}, #{ve_bankcode,jdbcType=VARCHAR}, #{ve_status,jdbcType=VARCHAR},
-        #{ve_statuscode,jdbcType=VARCHAR}, #{ve_recordid,jdbcType=DECIMAL}, #{ve_recordname,jdbcType=VARCHAR},
-        #{ve_initdate,jdbcType=TIMESTAMP}, #{companyId,jdbcType=DECIMAL}, #{updaterId,jdbcType=DECIMAL},
+        #{ve_statuscode,jdbcType=VARCHAR}, #{companyId,jdbcType=DECIMAL}, #{updaterId,jdbcType=DECIMAL},
         #{updateTime,jdbcType=TIMESTAMP}, #{ve_text1,jdbcType=VARCHAR}, #{ve_text2,jdbcType=VARCHAR},
         #{ve_text3,jdbcType=VARCHAR}, #{ve_text4,jdbcType=VARCHAR}, #{ve_text5,jdbcType=VARCHAR},
         #{ve_payamount,jdbcType=DOUBLE}, #{ve_leftamount,jdbcType=DOUBLE}, #{ve_beginym,jdbcType=INTEGER},
@@ -193,15 +185,6 @@
             <if test="ve_statuscode != null" >
                 ve_statuscode,
             </if>
-            <if test="ve_recordid != null" >
-                ve_recordid,
-            </if>
-            <if test="ve_recordname != null" >
-                ve_recordname,
-            </if>
-            <if test="ve_initdate != null" >
-                ve_initdate,
-            </if>
             <if test="companyId != null" >
                 companyId,
             </if>
@@ -282,15 +265,6 @@
             <if test="ve_statuscode != null" >
                 #{ve_statuscode,jdbcType=VARCHAR},
             </if>
-            <if test="ve_recordid != null" >
-                #{ve_recordid,jdbcType=DECIMAL},
-            </if>
-            <if test="ve_recordname != null" >
-                #{ve_recordname,jdbcType=VARCHAR},
-            </if>
-            <if test="ve_initdate != null" >
-                #{ve_initdate,jdbcType=TIMESTAMP},
-            </if>
             <if test="companyId != null" >
                 #{companyId,jdbcType=DECIMAL},
             </if>
@@ -374,15 +348,6 @@
             <if test="ve_statuscode != null" >
                 ve_statuscode = #{ve_statuscode,jdbcType=VARCHAR},
             </if>
-            <if test="ve_recordid != null" >
-                ve_recordid = #{ve_recordid,jdbcType=DECIMAL},
-            </if>
-            <if test="ve_recordname != null" >
-                ve_recordname = #{ve_recordname,jdbcType=VARCHAR},
-            </if>
-            <if test="ve_initdate != null" >
-                ve_initdate = #{ve_initdate,jdbcType=TIMESTAMP},
-            </if>
             <if test="companyId != null" >
                 companyId = #{companyId,jdbcType=DECIMAL},
             </if>
@@ -438,9 +403,6 @@
         ve_bankcode = #{ve_bankcode,jdbcType=VARCHAR},
         ve_status = #{ve_status,jdbcType=VARCHAR},
         ve_statuscode = #{ve_statuscode,jdbcType=VARCHAR},
-        ve_recordid = #{ve_recordid,jdbcType=DECIMAL},
-        ve_recordname = #{ve_recordname,jdbcType=VARCHAR},
-        ve_initdate = #{ve_initdate,jdbcType=TIMESTAMP},
         companyId = #{companyId,jdbcType=DECIMAL},
         updaterId = #{updaterId,jdbcType=DECIMAL},
         updateTime = #{updateTime,jdbcType=TIMESTAMP},

+ 3 - 38
applications/document/document-server/src/main/resources/mapper/VendorkindMapper.xml

@@ -4,15 +4,12 @@
   <resultMap id="BaseResultMap" type="com.usoftchina.saas.document.entities.Vendorkind">
     <id column="vk_id" jdbcType="INTEGER" property="id" />
     <result column="vk_name" jdbcType="VARCHAR" property="vk_name" />
-    <result column="vk_recordid" jdbcType="INTEGER" property="vk_recordid" />
-    <result column="vk_recorder" jdbcType="VARCHAR" property="vk_recorder" />
-    <result column="vk_date" jdbcType="TIMESTAMP" property="vk_date" />
     <result column="companyId" jdbcType="INTEGER" property="companyId" />
     <result column="updaterId" jdbcType="INTEGER" property="updaterId" />
     <result column="updateTime" jdbcType="TIMESTAMP" property="updateTime" />
   </resultMap>
   <sql id="Base_Column_List">
-    vk_id, vk_name, vk_recordid, vk_recorder, vk_date, companyId, updaterId, updateTime
+    vk_id, vk_name, companyId, updaterId, updateTime
   </sql>
   <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
     select
@@ -28,11 +25,9 @@
     <selectKey resultType="java.lang.Long" keyProperty="id">
       SELECT LAST_INSERT_ID() AS ID
     </selectKey>
-    insert into vendorkind (vk_name, vk_recordid,
-    vk_recorder, vk_date, companyId,
+    insert into vendorkind (vk_name, companyId,
     updaterId, updateTime)
-    values (#{vk_name,jdbcType=VARCHAR}, #{vk_recordid,jdbcType=INTEGER},
-    #{vk_recorder,jdbcType=VARCHAR}, #{vk_date,jdbcType=TIMESTAMP}, #{companyId,jdbcType=INTEGER},
+    values (#{vk_name,jdbcType=VARCHAR}, #{companyId,jdbcType=INTEGER},
     #{updaterId,jdbcType=INTEGER}, #{updateTime,jdbcType=TIMESTAMP})
   </insert>
   <insert id="insertSelective" parameterType="com.usoftchina.saas.document.entities.Vendorkind">
@@ -44,15 +39,6 @@
       <if test="vk_name != null">
         vk_name,
       </if>
-      <if test="vk_recordid != null">
-        vk_recordid,
-      </if>
-      <if test="vk_recorder != null">
-        vk_recorder,
-      </if>
-      <if test="vk_date != null">
-        vk_date,
-      </if>
       <if test="companyId != null">
         companyId,
       </if>
@@ -67,15 +53,6 @@
       <if test="vk_name != null">
         #{vk_name,jdbcType=VARCHAR},
       </if>
-      <if test="vk_recordid != null">
-        #{vk_recordid,jdbcType=INTEGER},
-      </if>
-      <if test="vk_recorder != null">
-        #{vk_recorder,jdbcType=VARCHAR},
-      </if>
-      <if test="vk_date != null">
-        #{vk_date,jdbcType=TIMESTAMP},
-      </if>
       <if test="companyId != null">
         #{companyId,jdbcType=INTEGER},
       </if>
@@ -93,15 +70,6 @@
       <if test="vk_name != null">
         vk_name = #{vk_name,jdbcType=VARCHAR},
       </if>
-      <if test="vk_recordid != null">
-        vk_recordid = #{vk_recordid,jdbcType=INTEGER},
-      </if>
-      <if test="vk_recorder != null">
-        vk_recorder = #{vk_recorder,jdbcType=VARCHAR},
-      </if>
-      <if test="vk_date != null">
-        vk_date = #{vk_date,jdbcType=TIMESTAMP},
-      </if>
       <if test="companyId != null">
         companyId = #{companyId,jdbcType=INTEGER},
       </if>
@@ -117,9 +85,6 @@
   <update id="updateByPrimaryKey" parameterType="com.usoftchina.saas.document.entities.Vendorkind">
     update vendorkind
     set vk_name = #{vk_name,jdbcType=VARCHAR},
-    vk_recordid = #{vk_recordid,jdbcType=INTEGER},
-    vk_recorder = #{vk_recorder,jdbcType=VARCHAR},
-    vk_date = #{vk_date,jdbcType=TIMESTAMP},
     companyId = #{companyId,jdbcType=INTEGER},
     updaterId = #{updaterId,jdbcType=INTEGER},
     updateTime = #{updateTime,jdbcType=TIMESTAMP}

+ 1 - 1
applications/money/money-server/src/main/java/com/usoftchina/saas/money/mapper/BanksubledgerMapper.java

@@ -17,7 +17,7 @@ public interface BanksubledgerMapper extends CommonBaseMapper<Banksubledger> {
 
     int deleteByExample(BanksubledgerExample example);
 
-    int deleteByPrimaryKey(@Param("code") String code, @Param("kind") String kind);
+    int deleteByPrimaryKey(@Param("code") String code, @Param("kind") String kind ,@Param("companyid") Long companyid);
 
 //    Long insert(Banksubledger record);
 

+ 1 - 2
applications/money/money-server/src/main/java/com/usoftchina/saas/money/mapper/SubledgerMapper.java

@@ -13,7 +13,7 @@ import java.util.List;
  * @date 2018/11/6 10:33
  **/
 public interface SubledgerMapper {
-    int deleteByPrimaryKey(@Param("code") String code, @Param("kind") String kind);
+    int deleteByPrimaryKey(@Param("code") String code, @Param("kind") String kind , @Param("companyid") Long companyid);
 
     int insert(Subledger record);
 
@@ -27,5 +27,4 @@ public interface SubledgerMapper {
     int updateByPrimaryKey(Subledger record);
 
     List<Subledger> selectSubledgerBycondition(@Param("con") String con, @Param("companyId") Long companyId);
-    VendorAdd selectAdd(@Param("sl_vendid") Integer sl_vendid, @Param("sl_ym") Integer sl_ym);
 }

+ 3 - 0
applications/money/money-server/src/main/java/com/usoftchina/saas/money/mapper/VendorAcountViewMapper.java

@@ -1,6 +1,7 @@
 package com.usoftchina.saas.money.mapper;
 
 import com.usoftchina.saas.money.po.VendorAcountView;
+import com.usoftchina.saas.money.po.VendorAdd;
 import org.apache.ibatis.annotations.Param;
 
 import java.util.List;
@@ -8,4 +9,6 @@ import java.util.List;
 public interface VendorAcountViewMapper {
     List<VendorAcountView> selectByCondition(@Param("con")String con, @Param("companyId")Long companyId);
     String selectCalculateFields(@Param("fields") String fields, @Param("con") String con, @Param("companyId") Long companyId);
+    VendorAdd selectVendAdd(@Param("sl_vendid") Integer sl_vendid, @Param("sl_ym") Integer sl_ym, @Param("companyId") Long companyId);
+    Integer getId(@Param("code") String code, @Param("companyId") Long companyId);
 }

+ 1 - 1
applications/money/money-server/src/main/java/com/usoftchina/saas/money/mapper/VerificationMapper.java

@@ -39,5 +39,5 @@ public interface VerificationMapper extends CommonBaseMapper<Verification> {
 
     String validateResAudit(Long id);
 
-    int validateSetAcount(int detno);
+    int validateSetAcount(@Param("detno") int detno,@Param("companyid")Long companyid);
 }

+ 0 - 30
applications/money/money-server/src/main/java/com/usoftchina/saas/money/po/Bankinformation.java

@@ -23,12 +23,6 @@ public class Bankinformation extends CommonBaseEntity implements Serializable {
 
     private String bk_statuscode;
 
-    private Integer bk_recorderid;
-
-    private String bk_recorder;
-
-    private Date bk_recorddate;
-
     private Integer bk_ym;
 
     private String bk_text1;
@@ -111,30 +105,6 @@ public class Bankinformation extends CommonBaseEntity implements Serializable {
         this.bk_statuscode = bk_statuscode;
     }
 
-    public Integer getBk_recorderid() {
-        return bk_recorderid;
-    }
-
-    public void setBk_recorderid(Integer bk_recorderid) {
-        this.bk_recorderid = bk_recorderid;
-    }
-
-    public String getBk_recorder() {
-        return bk_recorder;
-    }
-
-    public void setBk_recorder(String bk_recorder) {
-        this.bk_recorder = bk_recorder;
-    }
-
-    public Date getBk_recorddate() {
-        return bk_recorddate;
-    }
-
-    public void setBk_recorddate(Date bk_recorddate) {
-        this.bk_recorddate = bk_recorddate;
-    }
-
     public Integer getBk_ym() {
         return bk_ym;
     }

+ 0 - 30
applications/money/money-server/src/main/java/com/usoftchina/saas/money/po/Customer.java

@@ -39,12 +39,6 @@ public class Customer extends CommonBaseEntity implements Serializable {
 
     private String cu_statuscode;
 
-    private Integer cu_recordmanid;
-
-    private String cu_recordman;
-
-    private Date cu_recorddate;
-
     private String cu_text1;
 
     private String cu_text2;
@@ -181,30 +175,6 @@ public class Customer extends CommonBaseEntity implements Serializable {
         this.cu_statuscode = cu_statuscode;
     }
 
-    public Integer getCu_recordmanid() {
-        return cu_recordmanid;
-    }
-
-    public void setCu_recordmanid(Integer cu_recordmanid) {
-        this.cu_recordmanid = cu_recordmanid;
-    }
-
-    public String getCu_recordman() {
-        return cu_recordman;
-    }
-
-    public void setCu_recordman(String cu_recordman) {
-        this.cu_recordman = cu_recordman;
-    }
-
-    public Date getCu_recorddate() {
-        return cu_recorddate;
-    }
-
-    public void setCu_recorddate(Date cu_recorddate) {
-        this.cu_recorddate = cu_recorddate;
-    }
-
     public String getCu_text1() {
         return cu_text1;
     }

+ 0 - 30
applications/money/money-server/src/main/java/com/usoftchina/saas/money/po/Fundtransfer.java

@@ -11,12 +11,6 @@ public class Fundtransfer extends CommonBaseEntity implements Serializable {
 
     private Date ft_date;
 
-    private Integer ft_recorderid;
-
-    private String ft_recorder;
-
-    private Date ft_recorddate;
-
     private String ft_status;
 
     private String ft_statuscode;
@@ -91,30 +85,6 @@ public class Fundtransfer extends CommonBaseEntity implements Serializable {
         this.ft_date = ft_date;
     }
 
-    public Integer getFt_recorderid() {
-        return ft_recorderid;
-    }
-
-    public void setFt_recorderid(Integer ft_recorderid) {
-        this.ft_recorderid = ft_recorderid;
-    }
-
-    public String getFt_recorder() {
-        return ft_recorder;
-    }
-
-    public void setFt_recorder(String ft_recorder) {
-        this.ft_recorder = ft_recorder;
-    }
-
-    public Date getFt_recorddate() {
-        return ft_recorddate;
-    }
-
-    public void setFt_recorddate(Date ft_recorddate) {
-        this.ft_recorddate = ft_recorddate;
-    }
-
     public String getFt_status() {
         return ft_status;
     }

+ 0 - 33
applications/money/money-server/src/main/java/com/usoftchina/saas/money/po/Othreceipts.java

@@ -25,12 +25,6 @@ public class Othreceipts extends CommonBaseEntity implements Serializable {
 
     private Double or_amount;
 
-    private Integer or_recorderid;
-
-    private String or_recorder;
-
-    private Date or_recorddate;
-
     private String or_status;
 
     private String or_statuscode;
@@ -157,30 +151,6 @@ public class Othreceipts extends CommonBaseEntity implements Serializable {
         this.or_amount = or_amount;
     }
 
-    public Integer getOr_recorderid() {
-        return or_recorderid;
-    }
-
-    public void setOr_recorderid(Integer or_recorderid) {
-        this.or_recorderid = or_recorderid;
-    }
-
-    public String getOr_recorder() {
-        return or_recorder;
-    }
-
-    public void setOr_recorder(String or_recorder) {
-        this.or_recorder = or_recorder;
-    }
-
-    public Date getOr_recorddate() {
-        return or_recorddate;
-    }
-
-    public void setOr_recorddate(Date or_recorddate) {
-        this.or_recorddate = or_recorddate;
-    }
-
     public String getOr_status() {
         return or_status;
     }
@@ -289,9 +259,6 @@ public class Othreceipts extends CommonBaseEntity implements Serializable {
                 ", or_bankid=" + or_bankid +
                 ", or_bankname='" + or_bankname + '\'' +
                 ", or_amount=" + or_amount +
-                ", or_recorderid=" + or_recorderid +
-                ", or_recorder='" + or_recorder + '\'' +
-                ", or_recorddate=" + or_recorddate +
                 ", or_status='" + or_status + '\'' +
                 ", or_statuscode='" + or_statuscode + '\'' +
                 ", or_remark='" + or_remark + '\'' +

+ 0 - 30
applications/money/money-server/src/main/java/com/usoftchina/saas/money/po/Othspendings.java

@@ -25,12 +25,6 @@ public class Othspendings extends CommonBaseEntity implements Serializable {
 
     private Double os_amount;
 
-    private Integer os_recorderid;
-
-    private String os_recorder;
-
-    private Date os_recorddate;
-
     private String os_status;
 
     private String os_statuscode;
@@ -148,30 +142,6 @@ public class Othspendings extends CommonBaseEntity implements Serializable {
         this.os_amount = os_amount;
     }
 
-    public Integer getOs_recorderid() {
-        return os_recorderid;
-    }
-
-    public void setOs_recorderid(Integer os_recorderid) {
-        this.os_recorderid = os_recorderid;
-    }
-
-    public String getOs_recorder() {
-        return os_recorder;
-    }
-
-    public void setOs_recorder(String os_recorder) {
-        this.os_recorder = os_recorder;
-    }
-
-    public Date getOs_recorddate() {
-        return os_recorddate;
-    }
-
-    public void setOs_recorddate(Date os_recorddate) {
-        this.os_recorddate = os_recorddate;
-    }
-
     public String getOs_status() {
         return os_status;
     }

+ 0 - 29
applications/money/money-server/src/main/java/com/usoftchina/saas/money/po/Paybalance.java

@@ -38,12 +38,6 @@ public class Paybalance extends CommonBaseEntity implements Serializable {
 
     private Double pb_havebalance;
 
-    private Integer pb_recorderid;
-
-    private String pb_recorder;
-
-    private Date pb_recorddate;
-
     private String pb_status;
 
     private String pb_statuscode;
@@ -207,29 +201,6 @@ public class Paybalance extends CommonBaseEntity implements Serializable {
         this.pb_havebalance = pb_havebalance;
     }
 
-    public Integer getPb_recorderid() {
-        return pb_recorderid;
-    }
-
-    public void setPb_recorderid(Integer pb_recorderid) {
-        this.pb_recorderid = pb_recorderid;
-    }
-
-    public String getPb_recorder() {
-        return pb_recorder;
-    }
-
-    public void setPb_recorder(String pb_recorder) {
-        this.pb_recorder = pb_recorder == null ? null : pb_recorder.trim();
-    }
-
-    public Date getPb_recorddate() {
-        return pb_recorddate;
-    }
-
-    public void setPb_recorddate(Date pb_recorddate) {
-        this.pb_recorddate = pb_recorddate;
-    }
 
     public String getPb_status() {
         return pb_status;

+ 0 - 30
applications/money/money-server/src/main/java/com/usoftchina/saas/money/po/Recbalance.java

@@ -37,12 +37,6 @@ public class Recbalance extends CommonBaseEntity implements Serializable {
 
     private Double rb_havebalance;
 
-    private Integer rb_recorderid;
-
-    private String rb_recorder;
-
-    private Date rb_recorddate;
-
     private String rb_status;
 
     private String rb_statuscode;
@@ -207,30 +201,6 @@ public class Recbalance extends CommonBaseEntity implements Serializable {
         this.rb_havebalance = rb_havebalance;
     }
 
-    public Integer getRb_recorderid() {
-        return rb_recorderid;
-    }
-
-    public void setRb_recorderid(Integer rb_recorderid) {
-        this.rb_recorderid = rb_recorderid;
-    }
-
-    public String getRb_recorder() {
-        return rb_recorder;
-    }
-
-    public void setRb_recorder(String rb_recorder) {
-        this.rb_recorder = rb_recorder == null ? null : rb_recorder.trim();
-    }
-
-    public Date getRb_recorddate() {
-        return rb_recorddate;
-    }
-
-    public void setRb_recorddate(Date rb_recorddate) {
-        this.rb_recorddate = rb_recorddate;
-    }
-
     public String getRb_status() {
         return rb_status;
     }

+ 0 - 36
applications/money/money-server/src/main/java/com/usoftchina/saas/money/po/Vendor.java

@@ -68,18 +68,6 @@ public class Vendor extends CommonBaseEntity implements Serializable{
      * 状态码
      */
     private String ve_statuscode;
-    /**
-     * 录入人ID
-     */
-    private Long ve_recordid;
-    /**
-     * 录入人
-     */
-    private String ve_recordname;
-    /**
-     * 建立日期
-     */
-    private Date ve_initdate;
     /**
      * 自定义字段
      */
@@ -245,30 +233,6 @@ public class Vendor extends CommonBaseEntity implements Serializable{
         this.ve_statuscode = ve_statuscode;
     }
 
-    public Long getVe_recordid() {
-        return ve_recordid;
-    }
-
-    public void setVe_recordid(Long ve_recordid) {
-        this.ve_recordid = ve_recordid;
-    }
-
-    public String getVe_recordname() {
-        return ve_recordname;
-    }
-
-    public void setVe_recordname(String ve_recordname) {
-        this.ve_recordname = ve_recordname;
-    }
-
-    public Date getVe_initdate() {
-        return ve_initdate;
-    }
-
-    public void setVe_initdate(Date ve_initdate) {
-        this.ve_initdate = ve_initdate;
-    }
-
     public String getVe_text1() {
         return ve_text1;
     }

+ 9 - 0
applications/money/money-server/src/main/java/com/usoftchina/saas/money/po/VendorAcountView.java

@@ -36,6 +36,15 @@ public class VendorAcountView {
     private Double pd_nettotal;
     private Integer companyId;
     private String pd_remark;
+    private int ym;
+
+    public int getYm() {
+        return ym;
+    }
+
+    public void setYm(int ym) {
+        this.ym = ym;
+    }
 
     public String getPd_remark() {
         return pd_remark;

+ 3 - 3
applications/money/money-server/src/main/java/com/usoftchina/saas/money/service/impl/FundtransferServiceImpl.java

@@ -72,7 +72,6 @@ public class FundtransferServiceImpl extends CommonBaseServiceImpl<FundtransferM
             }
         }else {
             fundtransfer.setCompanyId(BaseContextHolder.getCompanyId());
-            fundtransfer.setFt_recorder(BaseContextHolder.getUserName());
             fundtransfer.setCreatorName(BaseContextHolder.getUserName());
             fundtransferMapper.insertSelective(fundtransfer);
             id = fundtransfer.getId();
@@ -200,7 +199,7 @@ public class FundtransferServiceImpl extends CommonBaseServiceImpl<FundtransferM
 
         //删除中间表
         fundtransfer = fundtransferMapper.selectByPrimaryKey(id);
-        banksubledgerMapper.deleteByPrimaryKey(fundtransfer.getFt_code(), "资金转账");
+        banksubledgerMapper.deleteByPrimaryKey(fundtransfer.getFt_code(), "资金转账",BaseContextHolder.getCompanyId());
 
         //资金
         //取从表金额
@@ -256,9 +255,10 @@ public class FundtransferServiceImpl extends CommonBaseServiceImpl<FundtransferM
 
     @Override
     public void delete(int id) {
+        DocBaseDTO baseDTO = getBaseDTOById(Long.valueOf(id));
         fundtransferMapper.deleteByPrimaryKey(id);
         fundtransferdetailMapper.deleteByPrimaryKey(id);
-        DocBaseDTO baseDTO = getBaseDTOById(Long.valueOf(id));
+
         //日志记录
         messageLogService.delete(baseDTO);
     }

+ 46 - 3
applications/money/money-server/src/main/java/com/usoftchina/saas/money/service/impl/MoneyReportServiceImpl.java

@@ -1,17 +1,24 @@
 package com.usoftchina.saas.money.service.impl;
 
+import com.alibaba.fastjson.JSON;
 import com.alibaba.fastjson.JSONArray;
+import com.fasterxml.jackson.databind.jsonFormatVisitors.JsonArrayFormatVisitor;
 import com.github.pagehelper.PageHelper;
 import com.github.pagehelper.PageInfo;
 import com.usoftchina.saas.commons.dto.ListReqDTO;
 import com.usoftchina.saas.context.BaseContextHolder;
 import com.usoftchina.saas.money.mapper.*;
+import com.usoftchina.saas.money.po.VendorAcountView;
+import com.usoftchina.saas.money.po.VendorAdd;
 import com.usoftchina.saas.money.service.MoneyReportService;
 import com.usoftchina.saas.page.PageRequest;
+import com.usoftchina.saas.utils.DateUtils;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
 import org.springframework.util.StringUtils;
+import springfox.documentation.spring.web.json.Json;
 
+import java.util.ArrayList;
 import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
@@ -94,11 +101,41 @@ public class MoneyReportServiceImpl implements MoneyReportService {
         }
 
         String res = null;
+        VendorAdd vendorAdd = new VendorAdd();
+        List<Map<String, Double>> list1 = new ArrayList<>();
         if ("Supplier".equals(type)) {
             list = vendorAcountViewMapper.selectByCondition(con, companyId);
-            if (!StringUtils.isEmpty(calculateFieldsSql)) {
-                res = vendorAcountViewMapper.selectCalculateFields(calculateFieldsSql, con, companyId);
+//            if (!StringUtils.isEmpty(calculateFieldsSql)) {
+//                res = vendorAcountViewMapper.selectCalculateFields(calculateFieldsSql, con, companyId);
+//            }
+
+            VendorAcountView vendorAcountView = (VendorAcountView) list.get(0);
+            Integer vid = new Integer(0);
+            if (list.size() >0){
+                vid = vendorAcountViewMapper.getId(vendorAcountView.getPi_vendcode(), Long.valueOf(vendorAcountView.getCompanyId()));
             }
+            Integer ym = Integer.valueOf(req.getYm());
+            vendorAdd = vendorAcountViewMapper.selectVendAdd(vid, ym, Long.valueOf(vendorAcountView.getCompanyId()));
+            vendorAdd.setNowbalance((vendorAdd.getBeginamount() == null ? new Double(0) : vendorAdd.getBeginamount())
+                    + (vendorAdd.getNowamount() == null ? new Double(0) : vendorAdd.getNowamount())
+                    - (vendorAdd.getNowpay() == null ? new Double(0) : vendorAdd.getNowpay()));
+            //封装成list
+            Map<String, Double> map1 = new HashMap<>();
+            map1.put("beginamount", vendorAdd.getBeginamount());
+            list1.add(map1);
+
+            Map<String, Double> map2 = new HashMap<>();
+            map2.put("nowamount" ,vendorAdd.getNowamount());
+            list1.add(map2);
+
+            Map<String, Double> map3 = new HashMap<>();
+            map3.put("nowpay" ,vendorAdd.getNowpay());
+            list1.add(map3);
+
+            Map<String, Double> map4 = new HashMap<>();
+            map4.put("nowbalance",vendorAdd.getNowbalance());
+            list1.add(map4);
+
         } else if("payDetail".equals(type)){
             list = paydetailViewMapper.selectByCondition(con, companyId);
             if (!StringUtils.isEmpty(calculateFieldsSql)) {
@@ -132,7 +169,13 @@ public class MoneyReportServiceImpl implements MoneyReportService {
         }
         Map<String, Object> map = new HashMap<String, Object>();
         map.put("list", list);
-        map.put("calculate", arr);
+        Object arrs = null;
+        if ("Supplier".equals(type) || "customercheck".equals(type)){
+            arrs = JSONArray.toJSON(list1);
+            map.put("calculate", arrs);
+        }else {
+            map.put("calculate", arr);
+        }
         return map;
     }
 }

+ 6 - 5
applications/money/money-server/src/main/java/com/usoftchina/saas/money/service/impl/OthreceiptsServiceImpl.java

@@ -81,7 +81,6 @@ public class OthreceiptsServiceImpl extends CommonBaseServiceImpl<OthreceiptsMap
             }
         }else {
             othreceipts.setCompanyId(BaseContextHolder.getCompanyId());
-            othreceipts.setOr_recorder(BaseContextHolder.getUserName());
             othreceipts.setCreatorName(BaseContextHolder.getUserName());
             othreceipts.setCreateTime(new Date());
             othreceiptsMapper.insertSelective(othreceipts);
@@ -216,7 +215,7 @@ public class OthreceiptsServiceImpl extends CommonBaseServiceImpl<OthreceiptsMap
 
         //删除中间表
         othreceipts = othreceiptsMapper.selectByPrimaryKey(id);
-        banksubledgerMapper.deleteByPrimaryKey(othreceipts.getOr_code(), "其他收入单");
+        banksubledgerMapper.deleteByPrimaryKey(othreceipts.getOr_code(), "其他收入单",BaseContextHolder.getCompanyId());
 
 
         //更新资金
@@ -263,7 +262,7 @@ public class OthreceiptsServiceImpl extends CommonBaseServiceImpl<OthreceiptsMap
             customer.setCu_recamount(recamount - or_amount);
             customer.setCu_leftamount(beginapamount + beginprepayamount + recamount - or_amount - preamount);
             recbalanceMapper.updateCustomerByPrimaryKeySelective(customer);
-            subledgerMapper.deleteByPrimaryKey(othreceipts.getOr_code(), "其他收入单");
+            subledgerMapper.deleteByPrimaryKey(othreceipts.getOr_code(), "其他收入单",BaseContextHolder.getCompanyId());
         }
 
 
@@ -287,16 +286,18 @@ public class OthreceiptsServiceImpl extends CommonBaseServiceImpl<OthreceiptsMap
 
     @Override
     public void delete(int id) {
+        DocBaseDTO baseDTO = getBaseDTOById(Long.valueOf(id));
         othreceiptsMapper.deleteByPrimaryKey(id);
         othreceiptsdetailMapper.deleteByPrimaryKey(id);
-        DocBaseDTO baseDTO = getBaseDTOById(Long.valueOf(id));
+
         //日志记录
         messageLogService.delete(baseDTO);
     }
 
     public void deleteItem(int id) {
-        othreceiptsdetailMapper.deleteItem(id);
         DocBaseDTO baseDTO = getBaseDTOById(Long.valueOf(id));
+        othreceiptsdetailMapper.deleteItem(id);
+
         //日志记录
         messageLogService.deleteDetail(baseDTO);
     }

+ 7 - 5
applications/money/money-server/src/main/java/com/usoftchina/saas/money/service/impl/OthspendingsServiceImpl.java

@@ -76,7 +76,6 @@ public class OthspendingsServiceImpl extends CommonBaseServiceImpl<OthspendingsM
             }
         }else {
             othspendings.setCompanyId(BaseContextHolder.getCompanyId());
-            othspendings.setOs_recorder(BaseContextHolder.getUserName());
             othspendings.setCreatorName(BaseContextHolder.getUserName());
             othspendings.setCreateTime(new Date());
             othspendingsMapper.insertSelective(othspendings);
@@ -106,17 +105,20 @@ public class OthspendingsServiceImpl extends CommonBaseServiceImpl<OthspendingsM
 
     @Override
     public void delete(int id) {
+        DocBaseDTO baseDTO = getBaseDTOById(Long.valueOf(id));
+
         othspendingsMapper.deleteByPrimaryKey(id);
         othspendingsdetailMapper.deleteItem(id);
-        DocBaseDTO baseDTO = getBaseDTOById(Long.valueOf(id));
+
         //日志记录
         messageLogService.delete(baseDTO);
     }
 
     @Override
     public void deleteItem(int id) {
-        othspendingsdetailMapper.deleteItem(id);
         DocBaseDTO baseDTO = getBaseDTOById(Long.valueOf(id));
+        othspendingsdetailMapper.deleteItem(id);
+
         //日志记录
         messageLogService.deleteDetail(baseDTO);
     }
@@ -248,7 +250,7 @@ public class OthspendingsServiceImpl extends CommonBaseServiceImpl<OthspendingsM
 
         //删除中间表
         othspendings = othspendingsMapper.selectByPrimaryKey(id);
-        banksubledgerMapper.deleteByPrimaryKey(othspendings.getOs_code(), "其他支出单");
+        banksubledgerMapper.deleteByPrimaryKey(othspendings.getOs_code(), "其他支出单",BaseContextHolder.getCompanyId());
 
         //资金
         Double amount = banksubledgerMapper.selectThisamount(othspendings.getOs_bankcode());
@@ -294,7 +296,7 @@ public class OthspendingsServiceImpl extends CommonBaseServiceImpl<OthspendingsM
             vendor.setVe_leftamount(beginapamount + beginprepayamount - payamount + bk_amount + preamount);
             paybalanceMapper.updateVendorByPrimaryKeySelective(vendor);
 
-            subledgerMapper.deleteByPrimaryKey(othspendings.getOs_code(), "其他支出单");
+            subledgerMapper.deleteByPrimaryKey(othspendings.getOs_code(), "其他支出单",BaseContextHolder.getCompanyId());
         }
 
 

+ 7 - 5
applications/money/money-server/src/main/java/com/usoftchina/saas/money/service/impl/PaybalanceServiceImpl.java

@@ -81,7 +81,6 @@ public class PaybalanceServiceImpl extends CommonBaseServiceImpl<PaybalanceMappe
             }
         }else {
             paybalance.setCompanyId(BaseContextHolder.getCompanyId());
-            paybalance.setPb_recorder(BaseContextHolder.getUserName());
             paybalance.setCreatorName(BaseContextHolder.getUserName());
             paybalance.setCreateTime(new Date());
             paybalanceMapper.insertSelective(paybalance);
@@ -354,8 +353,8 @@ public class PaybalanceServiceImpl extends CommonBaseServiceImpl<PaybalanceMappe
 
         //删除中间表
         paybalance = paybalanceMapper.selectByPrimaryKey(Long.valueOf(id));
-        subledgerMapper.deleteByPrimaryKey(paybalance.getPb_code(), paybalance.getPb_kind());
-        banksubledgerMapper.deleteByPrimaryKey(paybalance.getPb_code(), paybalance.getPb_kind());
+        subledgerMapper.deleteByPrimaryKey(paybalance.getPb_code(), paybalance.getPb_kind(),BaseContextHolder.getCompanyId());
+        banksubledgerMapper.deleteByPrimaryKey(paybalance.getPb_code(), paybalance.getPb_kind(),BaseContextHolder.getCompanyId());
 
         //计算期间金额
         Statsinfo statsinfo = new Statsinfo();
@@ -377,10 +376,12 @@ public class PaybalanceServiceImpl extends CommonBaseServiceImpl<PaybalanceMappe
     }
 
     public void delete(int id){
+        DocBaseDTO baseDTO = getBaseDTOById(Long.valueOf(id));
+
         paybalanceMapper.deleteByPrimaryKey(id);
         paybalancedetailMapper.deleteByPrimaryKey(id);
         paybalancedetMapper.deleteByPrimaryKey(id);
-        DocBaseDTO baseDTO = getBaseDTOById(Long.valueOf(id));
+
         //日志记录
         messageLogService.delete(baseDTO);
     }
@@ -395,8 +396,9 @@ public class PaybalanceServiceImpl extends CommonBaseServiceImpl<PaybalanceMappe
 
     @Override
     public void deleteItems(int id) {
-        paybalancedetailMapper.deleteItem(id);
         DocBaseDTO baseDTO = getBaseDTOById(Long.valueOf(id));
+        paybalancedetailMapper.deleteItem(id);
+
         //日志记录
         messageLogService.deleteDetail(baseDTO);
     }

+ 20 - 33
applications/money/money-server/src/main/java/com/usoftchina/saas/money/service/impl/RecbalanceServiceImpl.java

@@ -79,7 +79,6 @@ public class RecbalanceServiceImpl extends CommonBaseServiceImpl<RecbalanceMappe
             }
         }else {
             recbalance.setCompanyId(BaseContextHolder.getCompanyId());
-            recbalance.setRb_recorder(BaseContextHolder.getUserName());
             recbalance.setCreatorName(BaseContextHolder.getUserName());
             recbalance.setCreateTime(new Date());
             recbalanceMapper.insertSelective(recbalance);
@@ -192,10 +191,12 @@ public class RecbalanceServiceImpl extends CommonBaseServiceImpl<RecbalanceMappe
 
     @Override
     public void delete(int id) {
+        DocBaseDTO baseDTO = getBaseDTOById(Long.valueOf(id));
+
         recbalanceMapper.deleteByPrimaryKey(id);
-        recbalancedetMapper.deleteByPrimaryKey(id);
         recbalancedetailMapper.deleteByPrimaryKey(id);
-        DocBaseDTO baseDTO = getBaseDTOById(Long.valueOf(id));
+        recbalancedetMapper.deleteByPrimaryKey(id);
+
         //日志记录
         messageLogService.delete(baseDTO);
     }
@@ -214,16 +215,18 @@ public class RecbalanceServiceImpl extends CommonBaseServiceImpl<RecbalanceMappe
 
     @Override
     public void deleteItem(int id) {
-        recbalancedetMapper.deleteItem(id);
         DocBaseDTO baseDTO = getBaseDTOById(Long.valueOf(id));
+        recbalancedetMapper.deleteItem(id);
+
         //日志记录
         messageLogService.deleteDetail(baseDTO);
     }
 
     @Override
     public void deleteItems(int id) {
-        recbalancedetailMapper.deleteItem(id);
         DocBaseDTO baseDTO = getBaseDTOById(Long.valueOf(id));
+        recbalancedetailMapper.deleteItem(id);
+
         //日志记录
         messageLogService.deleteDetail(baseDTO);
     }
@@ -378,8 +381,8 @@ public class RecbalanceServiceImpl extends CommonBaseServiceImpl<RecbalanceMappe
 
         //删除中间表
         recbalance = recbalanceMapper.selectByPrimaryKey(id.intValue());
-        subledgerMapper.deleteByPrimaryKey(recbalance.getRb_code(), recbalance.getRb_kind());
-        banksubledgerMapper.deleteByPrimaryKey(recbalance.getRb_code(), recbalance.getRb_kind());
+        subledgerMapper.deleteByPrimaryKey(recbalance.getRb_code(), recbalance.getRb_kind(),BaseContextHolder.getCompanyId());
+        banksubledgerMapper.deleteByPrimaryKey(recbalance.getRb_code(), recbalance.getRb_kind(),BaseContextHolder.getCompanyId());
 
         //更新源单数据
         List<Recbalancedetail> recbalancedetail = recbalancedetailMapper.selectByPrimaryKey(Math.toIntExact(id));
@@ -516,32 +519,15 @@ public class RecbalanceServiceImpl extends CommonBaseServiceImpl<RecbalanceMappe
         subledger.setSl_vendid(0);
         subledger.setSl_date(recbalance.getRb_date());
         subledger.setSl_ym(DateUtils.getYm(recbalance.getRb_date()));
-        if (recbalance.getRb_rdamount() == null){
-            subledger.setSl_amount((double) 0);
-        }else {
-            subledger.setSl_amount(recbalance.getRb_rdamount() * -1);
-        }
-        subledger.setSl_orderamount(recbalance.getRb_rdamount());
-
-        Double yamount = recbalance.getRb_preamount();
-        if (yamount == null){
-            yamount = Double.valueOf(0);
-        }
-        if (yamount > 0 || yamount < 0){
-            subledger.setSl_yamount(yamount);
-        }else {
-            subledger.setSl_yamount((double) 0);
-        }
-        if (subledger.getSl_orderamount() == null){
-            subledger.setSl_orderamount((double) 0);
-        }
+        Double rdamount = recbalance.getRb_rdamount()==null?new Double(0):recbalance.getRb_rdamount();
+        Double preamount = recbalance.getRb_preamount()==null?new Double(0):recbalance.getRb_preamount();
+        subledger.setSl_amount(-rdamount);
+        subledger.setSl_yamount(preamount);
+        subledger.setSl_orderamount(rdamount);
 
-        if (subledger.getSl_discount() == null){
-            subledger.setSl_discount((double) 0);
-        }
-        subledger.setSl_namount(subledger.getSl_orderamount() + subledger.getSl_discount() - subledger.getSl_yamount());
+        subledger.setSl_namount(rdamount-preamount);
         subledger.setSl_remark(subledger.getSl_remark());
-        subledger.setSl_preamount(subledger.getSl_preamount());
+        subledger.setSl_preamount(preamount);
 
         subledgerMapper.insertSelective(subledger);
     }
@@ -569,10 +555,11 @@ public class RecbalanceServiceImpl extends CommonBaseServiceImpl<RecbalanceMappe
             banksubledger.setBl_assid(recbalance.getRb_custid());
             banksubledger.setBl_asscode(recbalance.getRb_custcode());
             banksubledger.setBl_assname(recbalance.getRb_custname());
-            banksubledger.setBl_spending(recbalancedet.getRd_amount());
+            Double amount = recbalancedet.getRd_amount()==null?new Double(0):recbalancedet.getRd_amount();
+            banksubledger.setBl_spending(amount);
             banksubledger.setBl_manname(recbalance.getRb_manname());
             banksubledger.setBl_remark(recbalancedet.getRd_remark());
-            banksubledger.setBl_orderamount(recbalancedet.getRd_amount());
+            banksubledger.setBl_orderamount(amount);
             if (banksubledgerMapper.selectCode(banksubledger.getBl_code()) == null){
                 banksubledgerMapper.insertSelective(banksubledger);
             }else {

+ 25 - 22
applications/money/money-server/src/main/java/com/usoftchina/saas/money/service/impl/VerificationServiceImpl.java

@@ -373,27 +373,30 @@ public class VerificationServiceImpl extends CommonBaseServiceImpl<VerificationM
         if (null != id) {
             Verification verification = verificationMapper.selectByPrimaryKey(Math.toIntExact(id));
             SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyyMM");
-            String ym = simpleDateFormat.format(verification.getVc_date());
-            int detno = Integer.valueOf(ym);
-            if(checkSetAcount(detno)){
-                throw new BizException(500, BizExceptionCode.CHECK_SETACOUNT_EXIS.getMessage());
+            if(verification!=null){
+                String ym = simpleDateFormat.format(verification.getVc_date());
+                int detno = Integer.valueOf(ym);
+                if(checkSetAcount(detno)){
+                    throw new BizException(500, String.format(BizExceptionCode.CHECK_SETACOUNT_EXIS.getMessage(),detno));
+                }
+                //删除中间表
+                subledgerMapper.deleteByPrimaryKey(verification.getVc_code(),verification.getVc_kind(),BaseContextHolder.getCompanyId());
+
+                //从表删除
+                verificationdetMapper.deleteByParentPrimaryKey(id);
+                verificationdetailMapper.deleteByParentPrimaryKey(id);
+                //主表删除
+                verificationMapper.deleteByPrimaryKey(id);
+
+                DocBaseDTO baseDTO = new DocBaseDTO();
+                baseDTO.setId(id);
+                baseDTO.setCode(verification.getVc_code());
+                baseDTO.setName(BillCodeSeq.VERIFICATION.getName());
+                //日志
+                messageLogService.delete(baseDTO);
+            }else{
+                throw new BizException(500, BizExceptionCode.DELETE_NOT_EXIS.getMessage());
             }
-            //删除中间表
-            subledgerMapper.deleteByPrimaryKey(verification.getVc_code(),verification.getVc_kind());
-
-            //从表删除
-            verificationdetMapper.deleteByParentPrimaryKey(id);
-            verificationdetailMapper.deleteByParentPrimaryKey(id);
-            //主表删除
-            verificationMapper.deleteByPrimaryKey(id);
-
-            String code = verificationMapper.selectCodeById(id);
-            DocBaseDTO baseDTO = new DocBaseDTO();
-            baseDTO.setId(id);
-            baseDTO.setCode(code);
-            baseDTO.setName(BillCodeSeq.VERIFICATION.getName());
-            //日志
-            messageLogService.delete(baseDTO);
         }
     }
 
@@ -401,9 +404,9 @@ public class VerificationServiceImpl extends CommonBaseServiceImpl<VerificationM
      *
      * @param detno
      */
-    private boolean checkSetAcount(Integer detno){
+    private boolean checkSetAcount(int detno){
         boolean isSetAcount = false;
-        int count = verificationMapper.validateSetAcount(detno);
+        int count = verificationMapper.validateSetAcount(detno,BaseContextHolder.getCompanyId());
         if(count>0){
             isSetAcount = true;
         }

+ 2 - 37
applications/money/money-server/src/main/resources/mapper/BankinformationMapper.xml

@@ -11,9 +11,6 @@
     <result column="bk_thisamount" property="bk_thisamount" jdbcType="DOUBLE" />
     <result column="bk_status" property="bk_status" jdbcType="VARCHAR" />
     <result column="bk_statuscode" property="bk_statuscode" jdbcType="VARCHAR" />
-    <result column="bk_recorderid" property="bk_recorderid" jdbcType="INTEGER" />
-    <result column="bk_recorder" property="bk_recorder" jdbcType="VARCHAR" />
-    <result column="bk_recorddate" property="bk_recorddate" jdbcType="TIMESTAMP" />
     <result column="bk_ym" property="bk_ym" jdbcType="INTEGER" />
     <result column="companyid" property="companyId" jdbcType="INTEGER" />
     <result column="updaterId" property="updaterId" jdbcType="INTEGER" />
@@ -32,7 +29,7 @@
   </resultMap>
   <sql id="Base_Column_List" >
     bk_id, bk_bankcode, bk_bankname, bk_date, bk_type, bk_beginamount, bk_thisamount, 
-    bk_status, bk_statuscode, bk_recorderid, bk_recorder, bk_recorddate, bk_ym, companyid, 
+    bk_status, bk_statuscode, bk_ym, companyid,
     updaterId, updateTime, bk_text1, bk_text2, bk_text3, bk_text4, bk_text5, bk_spending,  bk_income
   </sql>
   <sql id="Blob_Column_List" >
@@ -53,8 +50,7 @@
   <insert id="insert" parameterType="com.usoftchina.saas.money.po.Bankinformation" >
     insert into bankinformation (bk_id, bk_bankcode, bk_bankname, 
       bk_date, bk_type, bk_beginamount, 
-      bk_thisamount, bk_status, bk_statuscode, 
-      bk_recorderid, bk_recorder, bk_recorddate, 
+      bk_thisamount, bk_status, bk_statuscode,
       bk_ym, companyid, updaterId, 
       updateTime, bk_text1, bk_text2, 
       bk_text3, bk_text4, bk_text5, 
@@ -62,7 +58,6 @@
     values (#{bk_bankcode,jdbcType=VARCHAR}, #{bk_bankname,jdbcType=VARCHAR},
       #{bk_date,jdbcType=TIMESTAMP}, #{bk_type,jdbcType=VARCHAR}, #{bk_beginamount,jdbcType=DOUBLE},
       #{bk_thisamount,jdbcType=DOUBLE}, #{bk_status,jdbcType=VARCHAR}, #{bk_statuscode,jdbcType=VARCHAR},
-      #{bk_recorderid,jdbcType=INTEGER}, #{bk_recorder,jdbcType=VARCHAR}, #{bk_recorddate,jdbcType=TIMESTAMP},
       #{bk_ym,jdbcType=INTEGER}, #{companyId,jdbcType=INTEGER}, #{updaterId,jdbcType=INTEGER},
       #{updateTime,jdbcType=TIMESTAMP}, #{bk_text1,jdbcType=VARCHAR}, #{bk_text2,jdbcType=VARCHAR},
       #{bk_text3,jdbcType=VARCHAR}, #{bk_text4,jdbcType=VARCHAR}, #{bk_text5,jdbcType=VARCHAR},
@@ -95,15 +90,6 @@
       <if test="bk_statuscode != null" >
         bk_statuscode,
       </if>
-      <if test="bk_recorderid != null" >
-        bk_recorderid,
-      </if>
-      <if test="bk_recorder != null" >
-        bk_recorder,
-      </if>
-      <if test="bk_recorddate != null" >
-        bk_recorddate,
-      </if>
       <if test="bk_ym != null" >
         bk_ym,
       </if>
@@ -166,15 +152,6 @@
       <if test="bk_statuscode != null" >
         #{bk_statuscode,jdbcType=VARCHAR},
       </if>
-      <if test="bk_recorderid != null" >
-        #{bk_recorderid,jdbcType=INTEGER},
-      </if>
-      <if test="bk_recorder != null" >
-        #{bk_recorder,jdbcType=VARCHAR},
-      </if>
-      <if test="bk_recorddate != null" >
-        #{bk_recorddate,jdbcType=TIMESTAMP},
-      </if>
       <if test="bk_ym != null" >
         #{bk_ym,jdbcType=INTEGER},
       </if>
@@ -240,15 +217,6 @@
       <if test="bk_statuscode != null" >
         bk_statuscode = #{bk_statuscode,jdbcType=VARCHAR},
       </if>
-      <if test="bk_recorderid != null" >
-        bk_recorderid = #{bk_recorderid,jdbcType=INTEGER},
-      </if>
-      <if test="bk_recorder != null" >
-        bk_recorder = #{bk_recorder,jdbcType=VARCHAR},
-      </if>
-      <if test="bk_recorddate != null" >
-        bk_recorddate = #{bk_recorddate,jdbcType=TIMESTAMP},
-      </if>
       <if test="bk_ym != null" >
         bk_ym = #{bk_ym,jdbcType=INTEGER},
       </if>
@@ -298,9 +266,6 @@
       bk_thisamount = #{bkThisamount,jdbcType=DOUBLE},
       bk_status = #{bkStatus,jdbcType=VARCHAR},
       bk_statuscode = #{bkStatuscode,jdbcType=VARCHAR},
-      bk_recorderid = #{bkRecorderid,jdbcType=INTEGER},
-      bk_recorder = #{bkRecorder,jdbcType=VARCHAR},
-      bk_recorddate = #{bkRecorddate,jdbcType=TIMESTAMP},
       bk_ym = #{bkYm,jdbcType=INTEGER},
       companyid = #{companyId,jdbcType=INTEGER},
       updaterId = #{updaterId,jdbcType=INTEGER},

+ 2 - 1
applications/money/money-server/src/main/resources/mapper/BanksubledgerMapper.xml

@@ -107,9 +107,10 @@
         from banksubledger
         where bl_id = #{bl_id,jdbcType=INTEGER}
     </select>
-    <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
+    <delete id="deleteByPrimaryKey">
     delete from banksubledger
     where bl_id = #{code,jdbcType=VARCHAR} and bl_kind = #{kind, jdbcType=VARCHAR}
+    and companyid = #{companyid}
   </delete>
     <delete id="deleteByExample" parameterType="com.usoftchina.saas.money.po.BanksubledgerExample">
         delete from banksubledger

+ 3 - 34
applications/money/money-server/src/main/resources/mapper/FundtransferMapper.xml

@@ -5,9 +5,6 @@
     <id column="ft_id" property="id" jdbcType="INTEGER" />
     <result column="ft_code" property="ft_code" jdbcType="VARCHAR" />
     <result column="ft_date" property="ft_date" jdbcType="TIMESTAMP" />
-    <result column="ft_recorderid" property="ft_recorderid" jdbcType="INTEGER" />
-    <result column="ft_recorder" property="ft_recorder" jdbcType="VARCHAR" />
-    <result column="ft_recorddate" property="ft_recorddate" jdbcType="TIMESTAMP" />
     <result column="ft_status" property="ft_status" jdbcType="VARCHAR" />
     <result column="ft_statuscode" property="ft_statuscode" jdbcType="VARCHAR" />
     <result column="ft_remark" property="ft_remark" jdbcType="VARCHAR" />
@@ -32,7 +29,7 @@
     <result column="createTime" property="createTime" jdbcType="TIMESTAMP" />
   </resultMap>
   <sql id="Base_Column_List" >
-    ft_id, ft_code, ft_date, ft_recorderid, ft_recorder, ft_recorddate, ft_status, ft_statuscode, 
+    ft_id, ft_code, ft_date, ft_status, ft_statuscode,
     ft_remark, fundtransfer.companyId, fundtransfer.updaterId, fundtransfer.updatedate,
     ft_text1, ft_text2, ft_text3, ft_text4, ft_text5, fundtransfer.creatorName, fundtransfer.createTime,
     ft_auditman, ft_auditdate
@@ -57,14 +54,12 @@
     where ft_id = #{id,jdbcType=INTEGER}
   </delete>
   <insert id="insert" parameterType="com.usoftchina.saas.money.po.Fundtransfer" >
-    insert into fundtransfer (ft_id, ft_code, ft_date, 
-      ft_recorderid, ft_recorder, ft_recorddate, 
+    insert into fundtransfer (ft_id, ft_code, ft_date,
       ft_status, ft_statuscode, ft_remark, 
       companyId, updaterId, updatedate, 
       ft_text1, ft_text2, ft_text3, 
       ft_text4, ft_text5)
-    values (#{ftId,jdbcType=INTEGER}, #{ftCode,jdbcType=VARCHAR}, #{ftDate,jdbcType=TIMESTAMP}, 
-      #{ftRecorderid,jdbcType=INTEGER}, #{ftRecorder,jdbcType=VARCHAR}, #{ftRecorddate,jdbcType=TIMESTAMP}, 
+    values (#{ftId,jdbcType=INTEGER}, #{ftCode,jdbcType=VARCHAR}, #{ftDate,jdbcType=TIMESTAMP},
       #{ftStatus,jdbcType=VARCHAR}, #{ftStatuscode,jdbcType=VARCHAR}, #{ftRemark,jdbcType=VARCHAR}, 
       #{companyId,jdbcType=INTEGER}, #{updaterid,jdbcType=INTEGER}, #{updatedate,jdbcType=TIMESTAMP}, 
       #{ftText1,jdbcType=VARCHAR}, #{ftText2,jdbcType=VARCHAR}, #{ftText3,jdbcType=VARCHAR}, 
@@ -79,13 +74,6 @@
       <if test="ft_date != null" >
         ft_date,
       </if>
-      <if test="ft_recorderid != null" >
-        ft_recorderid,
-      </if>
-      <if test="ft_recorder != null" >
-        ft_recorder,
-      </if>
-        ft_recorddate,
       <if test="ft_status != null" >
         ft_status,
       </if>
@@ -130,13 +118,6 @@
       <if test="ft_date != null" >
         #{ft_date,jdbcType=TIMESTAMP},
       </if>
-      <if test="ft_recorderid != null" >
-        #{ft_recorderid,jdbcType=INTEGER},
-      </if>
-      <if test="ft_recorder != null" >
-        #{ft_recorder,jdbcType=VARCHAR},
-      </if>
-        now(),
       <if test="ft_status != null" >
         #{ft_status,jdbcType=VARCHAR},
       </if>
@@ -187,15 +168,6 @@
       <if test="ft_date != null" >
         ft_date = #{ft_date,jdbcType=TIMESTAMP},
       </if>
-      <if test="ft_recorderid != null" >
-        ft_recorderid = #{ft_recorderid,jdbcType=INTEGER},
-      </if>
-      <if test="ft_recorder != null" >
-        ft_recorder = #{ft_recorder,jdbcType=VARCHAR},
-      </if>
-      <if test="ft_recorddate != null" >
-        ft_recorddate = #{ft_recorddate,jdbcType=TIMESTAMP},
-      </if>
       <if test="ft_status != null" >
         ft_status = #{ft_status,jdbcType=VARCHAR},
       </if>
@@ -235,9 +207,6 @@
     update fundtransfer
     set ft_code = #{ftCode,jdbcType=VARCHAR},
       ft_date = #{ftDate,jdbcType=TIMESTAMP},
-      ft_recorderid = #{ftRecorderid,jdbcType=INTEGER},
-      ft_recorder = #{ftRecorder,jdbcType=VARCHAR},
-      ft_recorddate = #{ftRecorddate,jdbcType=TIMESTAMP},
       ft_status = #{ftStatus,jdbcType=VARCHAR},
       ft_statuscode = #{ftStatuscode,jdbcType=VARCHAR},
       ft_remark = #{ftRemark,jdbcType=VARCHAR},

+ 3 - 34
applications/money/money-server/src/main/resources/mapper/OthreceiptsMapper.xml

@@ -12,9 +12,6 @@
     <result column="or_bankid" property="or_bankid" jdbcType="INTEGER" />
     <result column="or_bankname" property="or_bankname" jdbcType="VARCHAR" />
     <result column="or_amount" property="or_amount" jdbcType="DOUBLE" />
-    <result column="or_recorderid" property="or_recorderid" jdbcType="INTEGER" />
-    <result column="or_recorder" property="or_recorder" jdbcType="VARCHAR" />
-    <result column="or_recorddate" property="or_recorddate" jdbcType="TIMESTAMP" />
     <result column="or_status" property="or_status" jdbcType="VARCHAR" />
     <result column="or_statuscode" property="or_statuscode" jdbcType="VARCHAR" />
     <result column="or_remark" property="or_remark" jdbcType="VARCHAR" />
@@ -37,7 +34,7 @@
   </resultMap>
   <sql id="Base_Column_List" >
     or_id, or_code, or_date, or_custid, or_custcode, or_custname, or_bankcode, or_bankid, 
-    or_bankname, or_amount, or_recorderid, or_recorder, or_recorddate, or_status, or_statuscode, 
+    or_bankname, or_amount, or_status, or_statuscode,
     or_remark, Othreceipts.companyId, Othreceipts.updaterId, Othreceipts.updatedate, or_text1,
     or_text2, or_text3, or_text4, or_text5, othreceipts.creatorName, othreceipts.createTime, or_auditman, or_auditdate
   </sql>
@@ -65,8 +62,7 @@
     insert into othreceipts (or_id, or_code, or_date, 
       or_custid, or_custcode, or_custname, 
       or_bankcode, or_bankid, or_bankname, 
-      or_amount, or_recorderid, or_recorder, 
-      or_recorddate, or_status, or_statuscode, 
+      or_amount, or_status, or_statuscode,
       or_remark, companyId, updaterId, 
       updatedate, or_text1, or_text2, 
       or_text3, or_text4, or_text5
@@ -74,8 +70,7 @@
     values (#{orId,jdbcType=INTEGER}, #{orCode,jdbcType=VARCHAR}, #{orDate,jdbcType=TIMESTAMP}, 
       #{orCustid,jdbcType=INTEGER}, #{orCustcode,jdbcType=VARCHAR}, #{orCustname,jdbcType=VARCHAR}, 
       #{orBankcode,jdbcType=VARCHAR}, #{orBankid,jdbcType=INTEGER}, #{orBankname,jdbcType=VARCHAR}, 
-      #{orAmount,jdbcType=DOUBLE}, #{orRecorderid,jdbcType=INTEGER}, #{orRecorder,jdbcType=VARCHAR}, 
-      #{orRecorddate,jdbcType=TIMESTAMP}, #{orStatus,jdbcType=INTEGER}, #{orStatuscode,jdbcType=DECIMAL}, 
+      #{orAmount,jdbcType=DOUBLE}, #{orStatus,jdbcType=INTEGER}, #{orStatuscode,jdbcType=DECIMAL},
       #{orRemark,jdbcType=VARCHAR}, #{companyId,jdbcType=INTEGER}, #{updaterid,jdbcType=INTEGER}, 
       #{updatedate,jdbcType=TIMESTAMP}, #{orText1,jdbcType=VARCHAR}, #{orText2,jdbcType=VARCHAR}, 
       #{orText3,jdbcType=VARCHAR}, #{orText4,jdbcType=VARCHAR}, #{orText5,jdbcType=VARCHAR}
@@ -111,13 +106,6 @@
       <if test="or_amount != null" >
         or_amount,
       </if>
-      <if test="or_recorderid != null" >
-        or_recorderid,
-      </if>
-      <if test="or_recorder != null" >
-        or_recorder,
-      </if>
-        or_recorddate,
       <if test="or_status != null" >
         or_status,
       </if>
@@ -183,13 +171,6 @@
       <if test="or_amount != null" >
         #{or_amount,jdbcType=DOUBLE},
       </if>
-      <if test="or_recorderid != null" >
-        #{or_recorderid,jdbcType=INTEGER},
-      </if>
-      <if test="or_recorder != null" >
-        #{or_recorder,jdbcType=VARCHAR},
-      </if>
-      now(),
       <if test="or_status != null" >
         #{or_status,jdbcType=VARCHAR},
       </if>
@@ -261,15 +242,6 @@
       <if test="or_amount != null" >
         or_amount = #{or_amount,jdbcType=DOUBLE},
       </if>
-      <if test="or_recorderid != null" >
-        or_recorderid = #{or_recorderid,jdbcType=INTEGER},
-      </if>
-      <if test="or_recorder != null" >
-        or_recorder = #{or_recorder,jdbcType=VARCHAR},
-      </if>
-      <if test="or_recorddate != null" >
-        or_recorddate = #{or_recorddate,jdbcType=TIMESTAMP},
-      </if>
       <if test="or_status != null" >
         or_status = #{or_status,jdbcType=VARCHAR},
       </if>
@@ -316,9 +288,6 @@
       or_bankid = #{orBankid,jdbcType=INTEGER},
       or_bankname = #{orBankname,jdbcType=VARCHAR},
       or_amount = #{orAmount,jdbcType=DOUBLE},
-      or_recorderid = #{orRecorderid,jdbcType=INTEGER},
-      or_recorder = #{orRecorder,jdbcType=VARCHAR},
-      or_recorddate = #{orRecorddate,jdbcType=TIMESTAMP},
       or_status = #{orStatus,jdbcType=INTEGER},
       or_statuscode = #{orStatuscode,jdbcType=DECIMAL},
       or_remark = #{orRemark,jdbcType=VARCHAR},

+ 3 - 34
applications/money/money-server/src/main/resources/mapper/OthspendingsMapper.xml

@@ -12,9 +12,6 @@
     <result column="os_bankcode" property="os_bankcode" jdbcType="VARCHAR" />
     <result column="os_bankname" property="os_bankname" jdbcType="VARCHAR" />
     <result column="os_amount" property="os_amount" jdbcType="DOUBLE" />
-    <result column="os_recorderid" property="os_recorderid" jdbcType="INTEGER" />
-    <result column="os_recorder" property="os_recorder" jdbcType="VARCHAR" />
-    <result column="os_recorddate" property="os_recorddate" jdbcType="TIMESTAMP" />
     <result column="os_status" property="os_status" jdbcType="VARCHAR" />
     <result column="os_statuscode" property="os_statuscode" jdbcType="VARCHAR" />
     <result column="os_remark" property="os_remark" jdbcType="VARCHAR" />
@@ -36,7 +33,7 @@
   </resultMap>
   <sql id="Base_Column_List" >
     os_id, os_code, os_date, os_vendid, os_vendcode, os_vendname, os_bankid, os_bankcode, 
-    os_bankname, os_amount, os_recorderid, os_recorder, os_recorddate, os_status, os_statuscode, 
+    os_bankname, os_amount, os_status, os_statuscode,
     os_remark, othspendings.companyId, othspendings.updaterId,
     othspendings.updatedate, os_text1, os_text2, os_text3, os_text4,
     os_text5,othspendings.creatorName, othspendings.createTime, os_auditman, os_auditdate
@@ -58,8 +55,7 @@
     insert into othspendings (os_id, os_code, os_date, 
       os_vendid, os_vendcode, os_vendname, 
       os_bankid, os_bankcode, os_bankname, 
-      os_amount, os_recorderid, os_recorder, 
-      os_recorddate, os_status, os_statuscode, 
+      os_amount, os_status, os_statuscode,
       os_remark, companyId, updaterId, 
       updatedate, os_text1, os_text2, 
       os_text3, os_text4, os_text5
@@ -67,8 +63,7 @@
     values (#{osId,jdbcType=INTEGER}, #{osCode,jdbcType=VARCHAR}, #{osDate,jdbcType=TIMESTAMP}, 
       #{osVendid,jdbcType=INTEGER}, #{osVendcode,jdbcType=VARCHAR}, #{osVendname,jdbcType=VARCHAR}, 
       #{osBankid,jdbcType=INTEGER}, #{osBankcode,jdbcType=VARCHAR}, #{osBankname,jdbcType=VARCHAR}, 
-      #{osAmount,jdbcType=DOUBLE}, #{osRecorderid,jdbcType=INTEGER}, #{osRecorder,jdbcType=VARCHAR}, 
-      #{osRecorddate,jdbcType=TIMESTAMP}, #{osStatus,jdbcType=INTEGER}, #{osStatuscode,jdbcType=DECIMAL}, 
+      #{osAmount,jdbcType=DOUBLE}, #{osStatus,jdbcType=INTEGER}, #{osStatuscode,jdbcType=DECIMAL},
       #{osRemark,jdbcType=VARCHAR}, #{companyId,jdbcType=INTEGER}, #{updaterid,jdbcType=INTEGER}, 
       #{updatedate,jdbcType=TIMESTAMP}, #{osText1,jdbcType=VARCHAR}, #{osText2,jdbcType=VARCHAR}, 
       #{osText3,jdbcType=VARCHAR}, #{osText4,jdbcType=VARCHAR}, #{osText5,jdbcType=VARCHAR}
@@ -105,13 +100,6 @@
       <if test="os_amount != null" >
         os_amount,
       </if>
-      <if test="os_recorderid != null" >
-        os_recorderid,
-      </if>
-      <if test="os_recorder != null" >
-        os_recorder,
-      </if>
-        os_recorddate,
       <if test="os_status != null" >
         os_status,
       </if>
@@ -177,13 +165,6 @@
       <if test="os_amount != null" >
         #{os_amount,jdbcType=DOUBLE},
       </if>
-      <if test="os_recorderid != null" >
-        #{os_recorderid,jdbcType=INTEGER},
-      </if>
-      <if test="os_recorder != null" >
-        #{os_recorder,jdbcType=VARCHAR},
-      </if>
-      now(),
       <if test="os_status != null" >
         #{os_status,jdbcType=VARCHAR},
       </if>
@@ -255,15 +236,6 @@
       <if test="os_amount != null" >
         os_amount = #{os_amount,jdbcType=DOUBLE},
       </if>
-      <if test="os_recorderid != null" >
-        os_recorderid = #{os_recorderid,jdbcType=INTEGER},
-      </if>
-      <if test="os_recorder != null" >
-        os_recorder = #{os_recorder,jdbcType=VARCHAR},
-      </if>
-      <if test="os_recorddate != null" >
-        os_recorddate = #{os_recorddate,jdbcType=TIMESTAMP},
-      </if>
       <if test="os_status != null" >
         os_status = #{os_status,jdbcType=VARCHAR},
       </if>
@@ -311,9 +283,6 @@
       os_bankcode = #{osBankcode,jdbcType=VARCHAR},
       os_bankname = #{osBankname,jdbcType=VARCHAR},
       os_amount = #{osAmount,jdbcType=DOUBLE},
-      os_recorderid = #{osRecorderid,jdbcType=INTEGER},
-      os_recorder = #{osRecorder,jdbcType=VARCHAR},
-      os_recorddate = #{osRecorddate,jdbcType=TIMESTAMP},
       os_status = #{osStatus,jdbcType=INTEGER},
       os_statuscode = #{osStatuscode,jdbcType=DECIMAL},
       os_remark = #{osRemark,jdbcType=VARCHAR},

+ 6 - 61
applications/money/money-server/src/main/resources/mapper/PaybalanceMapper.xml

@@ -15,9 +15,6 @@
     <result column="pb_preamount" jdbcType="DOUBLE" property="pb_preamount" />
     <result column="pb_discounts" jdbcType="DOUBLE" property="pb_discounts" />
     <result column="pb_havebalance" jdbcType="DOUBLE" property="pb_havebalance" />
-    <result column="pb_recorderid" jdbcType="INTEGER" property="pb_recorderid" />
-    <result column="pb_recorder" jdbcType="VARCHAR" property="pb_recorder" />
-    <result column="pb_recorddate" jdbcType="TIMESTAMP" property="pb_recorddate" />
     <result column="pb_status" jdbcType="VARCHAR" property="pb_status" />
     <result column="pb_statuscode" jdbcType="VARCHAR" property="pb_statuscode" />
     <result column="pb_remark" jdbcType="VARCHAR" property="pb_remark" />
@@ -105,8 +102,8 @@
   </sql>
   <sql id="Base_Column_List">
     pb_id, pb_code, pb_kind, pb_date, pb_vendid, pb_vendcode, pb_vendname, pb_manname, 
-    pb_pdamount, pb_pbdamount, pb_preamount, pb_discounts, pb_havebalance, pb_recorderid, 
-    pb_recorder, pb_recorddate, pb_status, pb_statuscode, pb_remark, paybalance.companyId,
+    pb_pdamount, pb_pbdamount, pb_preamount, pb_discounts, pb_havebalance,
+     pb_status, pb_statuscode, pb_remark, paybalance.companyId,
     paybalance.updaterId,paybalance.updatedate, pb_text1, pb_text2, pb_text3, pb_text4, pb_text5, paybalance.creatorName,
     paybalance.createTime, pb_auditdate, pb_auditman
   </sql>
@@ -143,8 +140,7 @@
       pb_date, pb_vendid, pb_vendcode, 
       pb_vendname, pb_manname, pb_pdamount, 
       pb_pbdamount, pb_preamount, pb_discounts, 
-      pb_havebalance, pb_recorderid, pb_recorder, 
-      pb_recorddate, pb_status, pb_statuscode, 
+      pb_havebalance, pb_status, pb_statuscode,
       pb_remark, companyId, updaterId,
       updatedate, pb_text1, pb_text2, 
       pb_text3, pb_text4, pb_text5
@@ -153,8 +149,7 @@
       #{pb_date,jdbcType=TIMESTAMP}, #{pb_vendid,jdbcType=INTEGER}, #{pb_vendcode,jdbcType=VARCHAR}, 
       #{pb_vendname,jdbcType=VARCHAR}, #{pb_manname,jdbcType=VARCHAR}, #{pb_pdamount,jdbcType=DOUBLE}, 
       #{pb_pbdamount,jdbcType=DOUBLE}, #{pb_preamount,jdbcType=DOUBLE}, #{pb_discounts,jdbcType=DOUBLE}, 
-      #{pb_havebalance,jdbcType=DOUBLE}, #{pb_recorderid,jdbcType=INTEGER}, #{pb_recorder,jdbcType=VARCHAR}, 
-      #{pb_recorddate,jdbcType=TIMESTAMP}, #{pb_status,jdbcType=INTEGER}, #{pb_statuscode,jdbcType=DECIMAL}, 
+      #{pb_havebalance,jdbcType=DOUBLE},  #{pb_status,jdbcType=INTEGER}, #{pb_statuscode,jdbcType=DECIMAL},
       #{pb_remark,jdbcType=VARCHAR}, #{companyId,jdbcType=INTEGER}, #{updaterId,jdbcType=INTEGER},
       #{updateTime,jdbcType=TIMESTAMP}, #{pb_text1,jdbcType=VARCHAR}, #{pb_text2,jdbcType=VARCHAR},
       #{pb_text3,jdbcType=VARCHAR}, #{pb_text4,jdbcType=VARCHAR}, #{pb_text5,jdbcType=VARCHAR}
@@ -199,13 +194,6 @@
       <if test="pb_havebalance != null">
         pb_havebalance,
       </if>
-      <if test="pb_recorderid != null">
-        pb_recorderid,
-      </if>
-      <if test="pb_recorder != null">
-        pb_recorder,
-      </if>
-        pb_recorddate,
       <if test="pb_status != null">
         pb_status,
       </if>
@@ -280,13 +268,6 @@
       <if test="pb_havebalance != null">
         #{pb_havebalance,jdbcType=DOUBLE},
       </if>
-      <if test="pb_recorderid != null">
-        #{pb_recorderid,jdbcType=INTEGER},
-      </if>
-      <if test="pb_recorder != null">
-        #{pb_recorder,jdbcType=VARCHAR},
-      </if>
-      now(),
       <if test="pb_status != null">
         #{pb_status,jdbcType=INTEGER},
       </if>
@@ -374,15 +355,6 @@
       <if test="pb_havebalance != null">
         pb_havebalance = #{pb_havebalance,jdbcType=DOUBLE},
       </if>
-      <if test="pb_recorderid != null">
-        pb_recorderid = #{pb_recorderid,jdbcType=INTEGER},
-      </if>
-      <if test="pb_recorder != null">
-        pb_recorder = #{pb_recorder,jdbcType=VARCHAR},
-      </if>
-      <if test="pb_recorddate != null">
-        pb_recorddate = #{pb_recorddate,jdbcType=TIMESTAMP},
-      </if>
       <if test="pb_status != null">
         pb_status = #{pb_status,jdbcType=INTEGER},
       </if>
@@ -436,9 +408,6 @@
       pb_preamount = #{pb_preamount,jdbcType=DOUBLE},
       pb_discounts = #{pb_discounts,jdbcType=DOUBLE},
       pb_havebalance = #{pb_havebalance,jdbcType=DOUBLE},
-      pb_recorderid = #{pb_recorderid,jdbcType=INTEGER},
-      pb_recorder = #{pb_recorder,jdbcType=VARCHAR},
-      pb_recorddate = #{pb_recorddate,jdbcType=TIMESTAMP},
       pb_status = #{pb_status,jdbcType=INTEGER},
       pb_statuscode = #{pb_statuscode,jdbcType=DECIMAL},
       pb_remark = #{pb_remark,jdbcType=VARCHAR},
@@ -500,7 +469,7 @@
   <!-- 银行账户-->
   <sql id="Bank_Column_List" >
     bk_id, bk_bankcode, bk_bankname, bk_date, bk_type, bk_beginamount, bk_thisamount,
-    bk_status, bk_statuscode, bk_recorderid, bk_recorder, bk_recorddate, bk_ym, companyid,
+    bk_status, bk_statuscode, bk_ym, companyid,
     updaterId, updateTime, bk_text1, bk_text2, bk_text3, bk_text4, bk_text5, bk_remark,bk_spending,bk_income
   </sql>
   <sql id="Blob_Column_List" >
@@ -527,9 +496,6 @@
     <result column="bk_thisamount" property="bk_thisamount" jdbcType="DOUBLE" />
     <result column="bk_status" property="bk_status" jdbcType="VARCHAR" />
     <result column="bk_statuscode" property="bk_statuscode" jdbcType="VARCHAR" />
-    <result column="bk_recorderid" property="bk_recorderid" jdbcType="INTEGER" />
-    <result column="bk_recorder" property="bk_recorder" jdbcType="VARCHAR" />
-    <result column="bk_recorddate" property="bk_recorddate" jdbcType="TIMESTAMP" />
     <result column="bk_ym" property="bk_ym" jdbcType="INTEGER" />
     <result column="companyid" property="companyId" jdbcType="INTEGER" />
     <result column="updaterId" property="updaterId" jdbcType="INTEGER" />
@@ -570,15 +536,6 @@
       <if test="bk_statuscode != null" >
         bk_statuscode = #{bk_statuscode,jdbcType=VARCHAR},
       </if>
-      <if test="bk_recorderid != null" >
-        bk_recorderid = #{bk_recorderid,jdbcType=INTEGER},
-      </if>
-      <if test="bk_recorder != null" >
-        bk_recorder = #{bk_recorder,jdbcType=VARCHAR},
-      </if>
-      <if test="bk_recorddate != null" >
-        bk_recorddate = #{bk_recorddate,jdbcType=TIMESTAMP},
-      </if>
       <if test="bk_ym != null" >
         bk_ym = #{bk_ym,jdbcType=INTEGER},
       </if>
@@ -645,9 +602,6 @@
     <result column="ve_bankcode" property="ve_bankcode" jdbcType="VARCHAR" />
     <result column="ve_status" property="ve_status" jdbcType="VARCHAR" />
     <result column="ve_statuscode" property="ve_statuscode" jdbcType="VARCHAR" />
-    <result column="ve_recordid" property="ve_recordid" jdbcType="INTEGER" />
-    <result column="ve_recordname" property="ve_recordname" jdbcType="VARCHAR" />
-    <result column="ve_initdate" property="ve_initdate" jdbcType="TIMESTAMP" />
     <result column="companyId" property="companyId" jdbcType="INTEGER" />
     <result column="updaterId" property="updaterId" jdbcType="INTEGER" />
     <result column="updateTime" property="updateTime" jdbcType="TIMESTAMP" />
@@ -670,7 +624,7 @@
   <sql id="Vendor_Column_List" >
         ve_id, ve_code, ve_name, ve_uu, ve_type, ve_begindate, ve_beginapamount, ve_beginprepayamount,
         ve_promisedays, ve_taxrate, ve_nsrzh, ve_bankaccount, ve_bankcode, ve_status, ve_statuscode,
-        ve_recordid, ve_recordname, ve_initdate, companyId, updaterId, updateTime, ve_text1,
+       companyId, updaterId, updateTime, ve_text1,
         ve_text2, ve_text3, ve_text4, ve_text5, ve_payamount, ve_leftamount, ve_beginym, ve_preamount
     </sql>
 
@@ -719,15 +673,6 @@
       <if test="ve_statuscode != null" >
         ve_statuscode = #{ve_statuscode,jdbcType=VARCHAR},
       </if>
-      <if test="ve_recordid != null" >
-        ve_recordid = #{ve_recordid,jdbcType=DECIMAL},
-      </if>
-      <if test="ve_recordname != null" >
-        ve_recordname = #{ve_recordname,jdbcType=VARCHAR},
-      </if>
-      <if test="ve_initdate != null" >
-        ve_initdate = #{ve_initdate,jdbcType=TIMESTAMP},
-      </if>
       <if test="companyId != null" >
         companyId = #{companyId,jdbcType=DECIMAL},
       </if>

+ 6 - 73
applications/money/money-server/src/main/resources/mapper/RecbalanceMapper.xml

@@ -15,9 +15,6 @@
     <result column="rb_preamount" jdbcType="DOUBLE" property="rb_preamount" />
     <result column="rb_discounts" jdbcType="DOUBLE" property="rb_discounts" />
     <result column="rb_havebalance" jdbcType="DOUBLE" property="rb_havebalance" />
-    <result column="rb_recorderid" jdbcType="INTEGER" property="rb_recorderid" />
-    <result column="rb_recorder" jdbcType="VARCHAR" property="rb_recorder" />
-    <result column="rb_recorddate" jdbcType="TIMESTAMP" property="rb_recorddate" />
     <result column="rb_status" jdbcType="VARCHAR" property="rb_status" />
     <result column="rb_statuscode" jdbcType="VARCHAR" property="rb_statuscode" />
     <result column="rb_remark" jdbcType="VARCHAR" property="rb_remark" />
@@ -105,8 +102,8 @@
   </sql>
   <sql id="Base_Column_List">
     rb_id, rb_code, rb_kind, rb_date, rb_custid, rb_custcode, rb_custname, rb_manname,
-    rb_rdamount, rb_rbdamount, rb_preamount, rb_discounts, rb_havebalance, rb_recorderid,
-    rb_recorder, rb_recorddate, rb_status, rb_statuscode, rb_remark, recbalance.companyId,
+    rb_rdamount, rb_rbdamount, rb_preamount, rb_discounts, rb_havebalance, rb_status, rb_statuscode, rb_remark,
+    recbalance.companyId,
     recbalance.updaterId,recbalance.updatedate, rb_text1, rb_text2, rb_text3, rb_text4, rb_text5,
     recbalance.creatorName, recbalance.createTime, rb_auditman, rb_auditdate
   </sql>
@@ -184,8 +181,7 @@
       rb_date, rb_custid, rb_custcode, 
       rb_custname, rb_manname, rb_rdamount, 
       rb_rbdamount, rb_preamount, rb_discounts, 
-      rb_havebalance, rb_recorderid, rb_recorder, 
-      rb_recorddate, rb_status, rb_statuscode, 
+      rb_havebalance, rb_status, rb_statuscode,
       rb_remark, companyId, updaterId,
       updatedate, rb_text1, rb_text2, 
       rb_text3, rb_text4, rb_text5
@@ -194,8 +190,7 @@
       #{rb_date,jdbcType=TIMESTAMP}, #{rb_custid,jdbcType=INTEGER}, #{rb_custcode,jdbcType=VARCHAR}, 
       #{rb_custname,jdbcType=VARCHAR}, #{rb_manname,jdbcType=VARCHAR}, #{rb_rdamount,jdbcType=DOUBLE}, 
       #{rb_rbdamount,jdbcType=DOUBLE}, #{rb_preamount,jdbcType=DOUBLE}, #{rb_discounts,jdbcType=DOUBLE}, 
-      #{rb_havebalance,jdbcType=DOUBLE}, #{rb_recorderid,jdbcType=INTEGER}, #{rb_recorder,jdbcType=VARCHAR}, 
-      #{rb_recorddate,jdbcType=TIMESTAMP}, #{rb_status,jdbcType=INTEGER}, #{rb_statuscode,jdbcType=DECIMAL}, 
+      #{rb_havebalance,jdbcType=DOUBLE}, #{rb_status,jdbcType=INTEGER}, #{rb_statuscode,jdbcType=DECIMAL},
       #{rb_remark,jdbcType=VARCHAR}, #{companyId,jdbcType=INTEGER}, #{updaterId,jdbcType=INTEGER},
       #{updateTime,jdbcType=TIMESTAMP}, #{rb_text1,jdbcType=VARCHAR}, #{rb_text2,jdbcType=VARCHAR},
       #{rb_text3,jdbcType=VARCHAR}, #{rb_text4,jdbcType=VARCHAR}, #{rb_text5,jdbcType=VARCHAR}
@@ -243,13 +238,6 @@
       <if test="rb_havebalance != null">
         rb_havebalance,
       </if>
-      <if test="rb_recorderid != null">
-        rb_recorderid,
-      </if>
-      <if test="rb_recorder != null">
-        rb_recorder,
-      </if>
-        rb_recorddate,
       <if test="rb_status != null">
         rb_status,
       </if>
@@ -324,13 +312,6 @@
       <if test="rb_havebalance != null">
         #{rb_havebalance,jdbcType=DOUBLE},
       </if>
-      <if test="rb_recorderid != null">
-        #{rb_recorderid,jdbcType=INTEGER},
-      </if>
-      <if test="rb_recorder != null">
-        #{rb_recorder,jdbcType=VARCHAR},
-      </if>
-      now(),
       <if test="rb_status != null">
         #{rb_status,jdbcType=INTEGER},
       </if>
@@ -420,15 +401,6 @@
       <if test="record.rb_havebalance != null">
         rb_havebalance = #{record.rb_havebalance,jdbcType=DOUBLE},
       </if>
-      <if test="record.rb_recorderid != null">
-        rb_recorderid = #{record.rb_recorderid,jdbcType=INTEGER},
-      </if>
-      <if test="record.rb_recorder != null">
-        rb_recorder = #{record.rb_recorder,jdbcType=VARCHAR},
-      </if>
-      <if test="record.rb_recorddate != null">
-        rb_recorddate = #{record.rb_recorddate,jdbcType=TIMESTAMP},
-      </if>
       <if test="record.rb_status != null">
         rb_status = #{record.rb_status,jdbcType=INTEGER},
       </if>
@@ -482,9 +454,6 @@
       rb_preamount = #{record.rb_preamount,jdbcType=DOUBLE},
       rb_discounts = #{record.rb_discounts,jdbcType=DOUBLE},
       rb_havebalance = #{record.rb_havebalance,jdbcType=DOUBLE},
-      rb_recorderid = #{record.rb_recorderid,jdbcType=INTEGER},
-      rb_recorder = #{record.rb_recorder,jdbcType=VARCHAR},
-      rb_recorddate = #{record.rb_recorddate,jdbcType=TIMESTAMP},
       rb_status = #{record.rb_status,jdbcType=INTEGER},
       rb_statuscode = #{record.rb_statuscode,jdbcType=DECIMAL},
       rb_remark = #{record.rb_remark,jdbcType=VARCHAR},
@@ -539,15 +508,6 @@
       <if test="rb_havebalance != null">
         rb_havebalance = #{rb_havebalance,jdbcType=DOUBLE},
       </if>
-      <if test="rb_recorderid != null">
-        rb_recorderid = #{rb_recorderid,jdbcType=INTEGER},
-      </if>
-      <if test="rb_recorder != null">
-        rb_recorder = #{rb_recorder,jdbcType=VARCHAR},
-      </if>
-      <if test="rb_recorddate != null">
-        rb_recorddate = #{rb_recorddate,jdbcType=TIMESTAMP},
-      </if>
       <if test="rb_status != null">
         rb_status = #{rb_status,jdbcType=INTEGER},
       </if>
@@ -601,9 +561,6 @@
       rb_preamount = #{rb_preamount,jdbcType=DOUBLE},
       rb_discounts = #{rb_discounts,jdbcType=DOUBLE},
       rb_havebalance = #{rb_havebalance,jdbcType=DOUBLE},
-      rb_recorderid = #{rb_recorderid,jdbcType=INTEGER},
-      rb_recorder = #{rb_recorder,jdbcType=VARCHAR},
-      rb_recorddate = #{rb_recorddate,jdbcType=TIMESTAMP},
       rb_status = #{rb_status,jdbcType=INTEGER},
       rb_statuscode = #{rb_statuscode,jdbcType=DECIMAL},
       rb_remark = #{rb_remark,jdbcType=VARCHAR},
@@ -635,7 +592,7 @@
   <!-- 银行账户-->
   <sql id="Bank_Column_List" >
     bk_id, bk_bankcode, bk_bankname, bk_date, bk_type, bk_beginamount, bk_thisamount,
-    bk_status, bk_statuscode, bk_recorderid, bk_recorder, bk_recorddate, bk_ym, companyid,
+    bk_status, bk_statuscode, bk_ym, companyid,
     updaterId, updateTime, bk_text1, bk_text2, bk_text3, bk_text4, bk_text5, bk_remark,bk_spending,bk_income
   </sql>
   <sql id="Blob_Column_List" >
@@ -662,9 +619,6 @@
     <result column="bk_thisamount" property="bk_thisamount" jdbcType="DOUBLE" />
     <result column="bk_status" property="bk_status" jdbcType="VARCHAR" />
     <result column="bk_statuscode" property="bk_statuscode" jdbcType="VARCHAR" />
-    <result column="bk_recorderid" property="bk_recorderid" jdbcType="INTEGER" />
-    <result column="bk_recorder" property="bk_recorder" jdbcType="VARCHAR" />
-    <result column="bk_recorddate" property="bk_recorddate" jdbcType="TIMESTAMP" />
     <result column="bk_ym" property="bk_ym" jdbcType="INTEGER" />
     <result column="companyid" property="companyId" jdbcType="INTEGER" />
     <result column="updaterId" property="updaterId" jdbcType="INTEGER" />
@@ -705,15 +659,6 @@
       <if test="bk_statuscode != null" >
         bk_statuscode = #{bk_statuscode,jdbcType=VARCHAR},
       </if>
-      <if test="bk_recorderid != null" >
-        bk_recorderid = #{bk_recorderid,jdbcType=INTEGER},
-      </if>
-      <if test="bk_recorder != null" >
-        bk_recorder = #{bk_recorder,jdbcType=VARCHAR},
-      </if>
-      <if test="bk_recorddate != null" >
-        bk_recorddate = #{bk_recorddate,jdbcType=TIMESTAMP},
-      </if>
       <if test="bk_ym != null" >
         bk_ym = #{bk_ym,jdbcType=INTEGER},
       </if>
@@ -772,9 +717,6 @@
     <result column="cu_credit" jdbcType="DOUBLE" property="cu_credit" />
     <result column="cu_status" jdbcType="VARCHAR" property="cu_status" />
     <result column="cu_statuscode" jdbcType="VARCHAR" property="cu_statuscode" />
-    <result column="cu_recordmanid" jdbcType="INTEGER" property="cu_recordmanid" />
-    <result column="cu_recordman" jdbcType="VARCHAR" property="cu_recordman" />
-    <result column="cu_recorddate" jdbcType="TIMESTAMP" property="cu_recorddate" />
     <result column="companyid" jdbcType="INTEGER" property="companyId" />
     <result column="updaterid" jdbcType="INTEGER" property="updaterId" />
     <result column="updatetime" jdbcType="TIMESTAMP" property="updateTime" />
@@ -789,7 +731,7 @@
   <sql id="Customer_Column_List">
     cu_id, cu_code, cu_name, cu_uu, cu_type, cu_begindate, cu_beginaramount, cu_beginprerecamount,
     cu_promisedays, cu_taxrate, cu_sellerid, cu_sellercode, cu_sellername, cu_credit,
-    cu_status, cu_statuscode, cu_recordmanid, cu_recordman, cu_recorddate, companyid,
+    cu_status, cu_statuscode, companyid,
     updaterid, updatetime, cu_text1, cu_text2, cu_text3, cu_text4, cu_text5, cu_leftamount,
     cu_recamount,cu_preamount
   </sql>
@@ -848,15 +790,6 @@
       <if test="cu_statuscode != null">
         cu_statuscode = #{cu_statuscode,jdbcType=VARCHAR},
       </if>
-      <if test="cu_recordmanid != null">
-        cu_recordmanid = #{cu_recordmanid,jdbcType=INTEGER},
-      </if>
-      <if test="cu_recordman != null">
-        cu_recordman = #{cu_recordman,jdbcType=VARCHAR},
-      </if>
-      <if test="cu_recorddate != null">
-        cu_recorddate = #{cu_recorddate,jdbcType=TIMESTAMP},
-      </if>
       <if test="companyId != null">
         companyid = #{companyId,jdbcType=INTEGER},
       </if>

+ 2 - 15
applications/money/money-server/src/main/resources/mapper/SubledgerMapper.xml

@@ -21,11 +21,6 @@
     <result column="sl_ym" property="sl_ym" jdbcType="INTEGER" />
   </resultMap>
 
-  <resultMap id="BaseAddMap" type="com.usoftchina.saas.money.po.VendorAdd" >
-    <result column="beginamount" property="beginamount" jdbcType="DOUBLE" />
-    <result column="nowamount" property="nowamount" jdbcType="DOUBLE" />
-    <result column="nowpay" property="beginamount" jdbcType="DOUBLE" />
-  </resultMap>
   <sql id="Base_Column_List" >
     sl_id, sl_code, sl_kind, sl_custid, sl_vendid, sl_date, sl_amount, sl_preamount, 
     sl_yamount, sl_namount, sl_remark, companyId, updaterId, updateTime, sl_orderamount, 
@@ -37,9 +32,10 @@
     from subledger
     where sl_id = #{sl_id,jdbcType=INTEGER}
   </select>
-  <delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
+  <delete id="deleteByPrimaryKey" >
     delete from subledger
     where sl_code = #{code,jdbcType=VARCHAR} and sl_kind = #{kind, jdbcType=VARCHAR}
+    and companyid = #{companyid}
   </delete>
   <insert id="insert" parameterType="com.usoftchina.saas.money.po.Subledger" >
     insert into subledger (sl_id, sl_code, sl_kind, 
@@ -253,13 +249,4 @@
         where sl_code = #{sl_code,jdbcType=VARCHAR}
     </select>
 
-  <select id="selectAdd" resultMap="BaseAddMap">
-    select a.sl_orderamount as beginamount, b.sl_orderamount as nowamount, c.sl_orderamount as nowpay FROM
-(select sl_orderamount,sl_vendid,sl_ym from subledger where sl_kind = '期初余额') a
-left join (select sum(sl_orderamount) sl_orderamount,sl_vendid,sl_ym from subledger where sl_kind = '采购验收单' or sl_kind = '采购验退单'
-group by sl_vendid,sl_ym) b on a.sl_vendid=b.sl_vendid
-left join (select sum(sl_orderamount) sl_orderamount,sl_vendid,sl_ym from subledger where sl_kind = '付款单' or sl_kind = '其他支出单'
-group by sl_vendid,sl_ym) c on a.sl_vendid=c.sl_vendid
- where a.sl_vendid=#{sl_vendid,jdbcType=INTEGER} and a.sl_ym=#{sl_ym, jdbcType=INTEGER}
-  </select>
 </mapper>

+ 21 - 0
applications/money/money-server/src/main/resources/mapper/VendorAcountViewMapper.xml

@@ -20,6 +20,7 @@
     <result column="pd_nettotal" property="pd_nettotal" jdbcType="DOUBLE" />
     <result column="companyId" property="companyId" jdbcType="INTEGER" />
     <result column="pd_remark" property="pd_remark" jdbcType="VARCHAR"/>
+    <result column="ym" property="ym" jdbcType="INTEGER" />
   </resultMap>
 
   <select id="selectByCondition" resultMap="BaseResultMap">
@@ -46,4 +47,24 @@
       </if>
     </where>
   </select>
+
+
+  <resultMap id="BaseAddMap" type="com.usoftchina.saas.money.po.VendorAdd" >
+    <result column="beginamount" property="beginamount" jdbcType="DOUBLE" />
+    <result column="nowamount" property="nowamount" jdbcType="DOUBLE" />
+    <result column="nowpay" property="beginamount" jdbcType="DOUBLE" />
+  </resultMap>
+  <select id="selectVendAdd" resultMap="BaseAddMap">
+    select a.sl_orderamount as beginamount, b.sl_orderamount as nowamount, c.sl_orderamount as nowpay FROM
+(select sl_orderamount,sl_vendid,sl_ym, companyid from subledger where sl_kind = '期初余额') a
+left join (select sum(sl_orderamount) sl_orderamount,sl_vendid,sl_ym from subledger where sl_kind = '采购验收单' or sl_kind = '采购验退单'
+group by sl_vendid,sl_ym) b on a.sl_vendid=b.sl_vendid
+left join (select sum(sl_orderamount) sl_orderamount,sl_vendid,sl_ym from subledger where sl_kind = '付款单' or sl_kind = '其他支出单'
+group by sl_vendid,sl_ym) c on a.sl_vendid=c.sl_vendid
+ where a.sl_vendid=#{sl_vendid,jdbcType=INTEGER} and a.sl_ym=#{sl_ym, jdbcType=INTEGER} and a.companyid = #{companyId}
+  </select>
+
+  <select id="getId" resultType="java.lang.Integer">
+    select ve_id from vendor where ve_code = #{code} and companyId = #{companyId}
+  </select>
 </mapper>

+ 3 - 2
applications/money/money-server/src/main/resources/mapper/VerificationMapper.xml

@@ -645,8 +645,9 @@
     select vc_code from Verification where vc_id = #{id} and IFNULL(vc_statuscode,'UNAUDITED')='UNAUDITED'
   </select>
 
-  <select id="validateSetAcount" parameterType="long" resultType="java.lang.String">
-    select count(1) from periodsdetail where pd_detno = #{detno} and IFNULL(pd_status,0)=0
+  <select id="validateSetAcount" resultType="java.lang.Integer">
+    select count(1) from periodsdetail where pd_detno = #{detno} and IFNULL(pd_status,0)=99
+    and companyid= #{companyid}
   </select>
   <select id="checkStatus" resultType="int">
     select count(1) from Verification where ifnull(vc_statuscode,'')='AUDITED' and vc_id= #{id,jdbcType=INTEGER}

+ 0 - 6
applications/purchase/purchase-dto/src/main/java/com/usoftchina/saas/purchase/dto/ProdInOutDTO.java

@@ -43,12 +43,6 @@ public class ProdInOutDTO extends CommonBaseDTO implements Serializable {
 
     private Double pi_nettotal;
 
-    private Long pi_recordmanid;
-
-    private String pi_recordman;
-
-    private Date pi_recorddate;
-
     private String pi_status;
 
     private String pi_statuscode;

+ 1 - 7
applications/purchase/purchase-dto/src/main/java/com/usoftchina/saas/purchase/dto/ProdInOutListDTO.java

@@ -40,13 +40,7 @@ public class ProdInOutListDTO extends CommonBaseDTO implements Serializable {
     private String pi_sacode;
 
     private Double pi_total;
-
-    private Integer pi_recordmanid;
-
-    private String pi_recordman;
-
-    private Date pi_recorddate;
-
+    
     private String pi_status;
 
     private String pi_statuscode;

+ 0 - 6
applications/purchase/purchase-server/src/main/java/com/usoftchina/saas/purchase/po/ProdInOut.java

@@ -39,12 +39,6 @@ public class ProdInOut extends CommonBaseEntity implements Serializable {
 
     private Double pi_nettotal;
 
-    private Long pi_recordmanid;
-
-    private String pi_recordman;
-
-    private Date pi_recorddate;
-
     private String pi_status;
 
     private String pi_statuscode;

+ 0 - 9
applications/purchase/purchase-server/src/main/java/com/usoftchina/saas/purchase/po/ProdInOutList.java

@@ -40,12 +40,6 @@ public class ProdInOutList extends CommonBaseEntity{
 
     private Double pi_total;
 
-    private Integer pi_recordmanid;
-
-    private String pi_recordman;
-
-    private Date pi_recorddate;
-
     private String pi_status;
 
     private String pi_statuscode;
@@ -170,9 +164,6 @@ public class ProdInOutList extends CommonBaseEntity{
     private long pr_vendid;
     private String pr_vendname;
     private String pr_vendcode;
-    private Date pr_docdate;
-    private long pr_recordmanid;
-    private String pr_recordman;
     private String pr_status;
     private String pr_statuscode;
     private String pr_text1;

+ 0 - 3
applications/purchase/purchase-server/src/main/java/com/usoftchina/saas/purchase/po/PurchaseList.java

@@ -144,9 +144,6 @@ public class PurchaseList extends CommonBaseEntity implements Serializable {
     private long pr_vendid;
     private String pr_vendname;
     private String pr_vendcode;
-    private Date pr_docdate;
-    private long pr_recordmanid;
-    private String pr_recordman;
     private String pr_status;
     private String pr_statuscode;
     private String pr_text1;

+ 0 - 3
applications/purchase/purchase-server/src/main/java/com/usoftchina/saas/purchase/po/report/PurchaseReportDetail.java

@@ -139,9 +139,6 @@ public class PurchaseReportDetail extends CommonBaseEntity implements Serializab
     private long pr_vendid;
     private String pr_vendname;
     private String pr_vendcode;
-    private Date pr_docdate;
-    private long pr_recordmanid;
-    private String pr_recordman;
     private String pr_status;
     private String pr_statuscode;
     private String pr_text1;

+ 0 - 2
applications/purchase/purchase-server/src/main/java/com/usoftchina/saas/purchase/service/impl/PurchaseServiceImpl.java

@@ -432,7 +432,6 @@ public class PurchaseServiceImpl extends CommonBaseServiceImpl<PurchaseMapper, P
         prodInOut.setPi_date(new Date());
         prodInOut.setPi_status("未审核");
         prodInOut.setPi_statuscode("UNAUDITED");
-        prodInOut.setPi_recorddate(new Date());
         prodInOut.setPi_vendid(purchase.getPu_vendid());
         prodInOut.setPi_vendcode(purchase.getPu_vendcode());
         prodInOut.setPi_vendname(purchase.getPu_vendname());
@@ -441,7 +440,6 @@ public class PurchaseServiceImpl extends CommonBaseServiceImpl<PurchaseMapper, P
         //设置付款状态
         prodInOut.setPi_prstatus(Status.PAYNONE.getDisplay());
         prodInOut.setPi_prstatuscode(Status.PAYNONE.name());
-
         //设置公司id
         prodInOut.setCompanyId(purchase.getCompanyId());
         prodInOut.setCreatorId(userId);

+ 0 - 3
applications/purchase/purchase-server/src/main/resources/mapper/ProdIODetailMapper.xml

@@ -62,9 +62,6 @@
       <result column="pr_vendid" property="pr_vendid"/>
       <result column="pr_vendname" property="pr_vendname"/>
       <result column="pr_vendcode" property="pr_vendcode"/>
-      <result column="pr_docdate" property="pr_docdate"/>
-      <result column="pr_recordmanid" property="pr_recordmanid"/>
-      <result column="pr_recordman" property="pr_recordman"/>
       <result column="pr_status" property="pr_status"/>
       <result column="pr_statuscode" property="pr_statuscode"/>
       <result column="pr_text1" property="pr_text1"/>

+ 0 - 6
applications/purchase/purchase-server/src/main/resources/mapper/ProdInOutListMapper.xml

@@ -17,9 +17,6 @@
     <result column="pi_said" jdbcType="INTEGER" property="pi_said" />
     <result column="pi_sacode" jdbcType="VARCHAR" property="pi_sacode" />
     <result column="pi_total" jdbcType="DOUBLE" property="pi_total" />
-    <result column="pi_recordmanid" jdbcType="INTEGER" property="pi_recordmanid" />
-    <result column="pi_recordman" jdbcType="VARCHAR" property="pi_recordman" />
-    <result column="pi_recorddate" jdbcType="TIMESTAMP" property="pi_recorddate" />
     <result column="pi_status" jdbcType="VARCHAR" property="pi_status" />
     <result column="pi_statuscode" jdbcType="VARCHAR" property="pi_statuscode" />
     <result column="pi_printstatus" jdbcType="VARCHAR" property="pi_printstatus" />
@@ -96,9 +93,6 @@
     <result column="pr_vendid" property="pr_vendid"/>
     <result column="pr_vendname" property="pr_vendname"/>
     <result column="pr_vendcode" property="pr_vendcode"/>
-    <result column="pr_docdate" property="pr_docdate"/>
-    <result column="pr_recordmanid" property="pr_recordmanid"/>
-    <result column="pr_recordman" property="pr_recordman"/>
     <result column="pr_status" property="pr_status"/>
     <result column="pr_statuscode" property="pr_statuscode"/>
     <result column="pr_text1" property="pr_text1"/>

+ 1 - 26
applications/purchase/purchase-server/src/main/resources/mapper/ProdInOutMapper.xml

@@ -17,9 +17,6 @@
     <result column="pi_said" jdbcType="INTEGER" property="pi_said" />
     <result column="pi_sacode" jdbcType="VARCHAR" property="pi_sacode" />
     <result column="pi_total" jdbcType="DOUBLE" property="pi_total" />
-    <result column="pi_recordmanid" jdbcType="INTEGER" property="pi_recordmanid" />
-    <result column="pi_recordman" jdbcType="VARCHAR" property="pi_recordman" />
-    <result column="pi_recorddate" jdbcType="TIMESTAMP" property="createTime" />
     <result column="pi_status" jdbcType="VARCHAR" property="pi_status" />
     <result column="pi_statuscode" jdbcType="VARCHAR" property="pi_statuscode" />
     <result column="pi_printstatus" jdbcType="VARCHAR" property="pi_printstatus" />
@@ -52,8 +49,7 @@
 
   <sql id="Base_Column_List">
     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_recordman, pi_recorddate, pi_status, pi_statuscode, pi_printstatus, pi_printstatuscode, 
+    pi_custcode, pi_custname, pi_puid, pi_pucode, pi_said, pi_sacode, pi_total, pi_status, pi_statuscode, pi_printstatus, pi_printstatuscode,
     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,pi_iocode,pi_prstatus,pi_prstatuscode
   </sql>
@@ -123,12 +119,6 @@
       <if test="pi_total != null">
         pi_total,
       </if>
-      <if test="pi_recordmanid != null">
-        pi_recordmanid,
-      </if>
-      <if test="pi_recordman != null">
-        pi_recordman,
-      </if>
       <if test="pi_status != null">
         pi_status,
       </if>
@@ -247,12 +237,6 @@
       <if test="pi_total != null">
         #{pi_total,jdbcType=DOUBLE},
       </if>
-      <if test="pi_recordmanid != null">
-        #{pi_recordmanid,jdbcType=INTEGER},
-      </if>
-      <if test="pi_recordman != null">
-        #{pi_recordman,jdbcType=VARCHAR},
-      </if>
       <if test="pi_status != null">
         #{pi_status,jdbcType=VARCHAR},
       </if>
@@ -375,15 +359,6 @@
       <if test="pi_total != null">
         pi_total = #{pi_total,jdbcType=DOUBLE},
       </if>
-      <if test="pi_recordmanid != null">
-        pi_recordmanid = #{pi_recordmanid,jdbcType=INTEGER},
-      </if>
-      <if test="pi_recordman != null">
-        pi_recordman = #{pi_recordman,jdbcType=VARCHAR},
-      </if>
-      <if test="createTime != null">
-        pi_recorddate = #{createTime,jdbcType=TIMESTAMP},
-      </if>
       <if test="pi_status != null">
         pi_status = #{pi_status,jdbcType=VARCHAR},
       </if>

+ 0 - 4
applications/purchase/purchase-server/src/main/resources/mapper/PurchaseListMapper.xml

@@ -16,7 +16,6 @@
         <result column="PU_TOTAL" property="pu_total" jdbcType="DOUBLE" />
         <result column="PU_REMARK" property="pu_remark" jdbcType="VARCHAR" />
         <result column="PU_TOTALUPPER" property="pu_totalupper" jdbcType="VARCHAR" />
-        <result column="PU_INDATE" property="createTime" jdbcType="TIMESTAMP" />
         <result column="PU_PRINTSTATUS" property="pu_printstatus" jdbcType="VARCHAR" />
         <result column="PU_PRINTSTATUSCODE" property="pu_printstatuscode" jdbcType="VARCHAR" />
         <result column="PU_ACCEPTSTATUSCODE" property="pu_acceptstatuscode" jdbcType="VARCHAR" />
@@ -79,9 +78,6 @@
         <result column="pr_vendid" property="pr_vendid"/>
         <result column="pr_vendname" property="pr_vendname"/>
         <result column="pr_vendcode" property="pr_vendcode"/>
-        <result column="pr_docdate" property="pr_docdate"/>
-        <result column="pr_recordmanid" property="pr_recordmanid"/>
-        <result column="pr_recordman" property="pr_recordman"/>
         <result column="pr_status" property="pr_status"/>
         <result column="pr_statuscode" property="pr_statuscode"/>
         <result column="pr_text1" property="pr_text1"/>

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

@@ -16,7 +16,6 @@
     <result column="PU_TOTAL" property="pu_total" jdbcType="DOUBLE" />
     <result column="PU_REMARK" property="pu_remark" jdbcType="VARCHAR" />
     <result column="PU_TOTALUPPER" property="pu_totalupper" jdbcType="VARCHAR" />
-    <result column="PU_INDATE" property="createTime" jdbcType="TIMESTAMP" />
     <result column="PU_PRINTSTATUS" property="pu_printstatus" jdbcType="VARCHAR" />
     <result column="PU_PRINTSTATUSCODE" property="pu_printstatuscode" jdbcType="VARCHAR" />
     <result column="PU_ACCEPTSTATUSCODE" property="pu_acceptstatuscode" jdbcType="VARCHAR" />
@@ -44,7 +43,7 @@
 
   <sql id="Base_Column_List" >
     pu_id, pu_code, pu_date, pu_vendid, PU_VENDCODE, PU_VENDNAME, PU_BUYERID, PU_BUYERCODE, 
-    PU_BUYERNAME, PU_DELIVERY, PU_TAXTOTAL, PU_TOTAL, PU_REMARK, PU_TOTALUPPER, PU_INDATE, 
+    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
@@ -309,9 +308,6 @@
       <if test="pu_totalupper != null" >
         PU_TOTALUPPER = #{pu_totalupper,jdbcType=VARCHAR},
       </if>
-      <if test="createTime != null" >
-        PU_INDATE = #{createTime,jdbcType=TIMESTAMP},
-      </if>
       <if test="pu_printstatus != null" >
         PU_PRINTSTATUS = #{pu_printstatus,jdbcType=VARCHAR},
       </if>
@@ -378,7 +374,6 @@
       PU_TOTAL = #{pu_total,jdbcType=DOUBLE},
       PU_REMARK = #{pu_remark,jdbcType=VARCHAR},
       PU_TOTALUPPER = #{pu_totalupper,jdbcType=VARCHAR},
-      PU_INDATE = #{createTime,jdbcType=TIMESTAMP},
       PU_PRINTSTATUS = #{pu_printstatus,jdbcType=VARCHAR},
       PU_PRINTSTATUSCODE = #{pu_printstatuscode,jdbcType=VARCHAR},
       PU_ACCEPTSTATUSCODE = #{pu_acceptstatuscode,jdbcType=VARCHAR},

+ 1 - 4
applications/purchase/purchase-server/src/main/resources/mapper/PurchaseReportMapper.xml

@@ -17,7 +17,7 @@
 
     <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="creatorName" jdbcType="VARCHAR" />
   </resultMap>
   <resultMap id="ListMap" type="com.usoftchina.saas.purchase.po.report.PurchaseReportDetail">
     <id column="pu_id" property="pu_id" jdbcType="INTEGER" />
@@ -89,9 +89,6 @@
     <result column="pr_vendid" property="pr_vendid"/>
     <result column="pr_vendname" property="pr_vendname"/>
     <result column="pr_vendcode" property="pr_vendcode"/>
-    <result column="pr_docdate" property="pr_docdate"/>
-    <result column="pr_recordmanid" property="pr_recordmanid"/>
-    <result column="pr_recordman" property="pr_recordman"/>
     <result column="pr_status" property="pr_status"/>
     <result column="pr_statuscode" property="pr_statuscode"/>
     <result column="pr_text1" property="pr_text1"/>

+ 0 - 3
applications/purchase/purchase-server/src/main/resources/mapper/PurchasedetailMapper.xml

@@ -50,9 +50,6 @@
       <result column="pr_vendid" property="pr_vendid"/>
       <result column="pr_vendname" property="pr_vendname"/>
       <result column="pr_vendcode" property="pr_vendcode"/>
-      <result column="pr_docdate" property="pr_docdate"/>
-      <result column="pr_recordmanid" property="pr_recordmanid"/>
-      <result column="pr_recordman" property="pr_recordman"/>
       <result column="pr_status" property="pr_status"/>
       <result column="pr_statuscode" property="pr_statuscode"/>
       <result column="pr_text1" property="pr_text1"/>

+ 0 - 3
applications/sale/sale-dto/src/main/java/com/usoftchina/saas/sale/dto/PurchaseListDTO.java

@@ -144,9 +144,6 @@ public class PurchaseListDTO extends CommonBaseEntity implements Serializable {
     private long pr_vendid;
     private String pr_vendname;
     private String pr_vendcode;
-    private Date pr_docdate;
-    private long pr_recordmanid;
-    private String pr_recordman;
     private String pr_status;
     private String pr_statuscode;
     private String pr_text1;

+ 0 - 3
applications/sale/sale-server/src/main/java/com/usoftchina/saas/sale/po/SaleList.java

@@ -133,9 +133,6 @@ public class SaleList implements Serializable {
     private long pr_vendid;
     private String pr_vendname;
     private String pr_vendcode;
-    private Date pr_docdate;
-    private long pr_recordmanid;
-    private String pr_recordman;
     private String pr_status;
     private String pr_statuscode;
     private String pr_text1;

+ 0 - 3
applications/sale/sale-server/src/main/resources/mapper/ProdIODetailMapper.xml

@@ -63,9 +63,6 @@
       <result column="pr_vendid" property="pr_vendid"/>
       <result column="pr_vendname" property="pr_vendname"/>
       <result column="pr_vendcode" property="pr_vendcode"/>
-      <result column="pr_docdate" property="pr_docdate"/>
-      <result column="pr_recordmanid" property="pr_recordmanid"/>
-      <result column="pr_recordman" property="pr_recordman"/>
       <result column="pr_status" property="pr_status"/>
       <result column="pr_statuscode" property="pr_statuscode"/>
       <result column="pr_text1" property="pr_text1"/>

+ 0 - 3
applications/sale/sale-server/src/main/resources/mapper/SaleListMapper.xml

@@ -71,9 +71,6 @@
         <result column="pr_vendid" property="pr_vendid"/>
         <result column="pr_vendname" property="pr_vendname"/>
         <result column="pr_vendcode" property="pr_vendcode"/>
-        <result column="pr_docdate" property="pr_docdate"/>
-        <result column="pr_recordmanid" property="pr_recordmanid"/>
-        <result column="pr_recordman" property="pr_recordman"/>
         <result column="pr_status" property="pr_status"/>
         <result column="pr_statuscode" property="pr_statuscode"/>
         <result column="pr_text1" property="pr_text1"/>

+ 2 - 1
applications/sale/sale-server/src/main/resources/mapper/SaleMapper.xml

@@ -35,6 +35,7 @@
     <result column="sa_date" property="sa_date" jdbcType="TIMESTAMP"/>
     <result column="creatorName" property="creatorName" jdbcType="VARCHAR" />
     <result column="updaterName" property="updaterName" jdbcType="VARCHAR" />
+    <result column="createTime" property="createTime" jdbcType="TIMESTAMP"/>
   </resultMap>
   <sql id="Base_Column_List" >
     sa_id, sa_code, sa_custid, sa_custcode, sa_custname, sa_toplace, sa_total, sa_totalupper, 
@@ -419,7 +420,7 @@
     and ifnull(sd_yqty, 0) > 0;
   </select>
   <update id="updateCreator">
-    update sale set creatorId = #{userId} , creatorName=#{userName} where sa_id=#{id}
+    update sale set creatorId = #{userId} ,createTime=now(), creatorName=#{userName} where sa_id=#{id}
   </update>
 
   <select id="checkIsTurnPurchase"  resultType="java.lang.String">

+ 0 - 3
applications/sale/sale-server/src/main/resources/mapper/SaledetailMapper.xml

@@ -46,9 +46,6 @@
       <result column="pr_vendid" property="pr_vendid"/>
       <result column="pr_vendname" property="pr_vendname"/>
       <result column="pr_vendcode" property="pr_vendcode"/>
-      <result column="pr_docdate" property="pr_docdate"/>
-      <result column="pr_recordmanid" property="pr_recordmanid"/>
-      <result column="pr_recordman" property="pr_recordman"/>
       <result column="pr_status" property="pr_status"/>
       <result column="pr_statuscode" property="pr_statuscode"/>
       <result column="pr_text1" property="pr_text1"/>

+ 0 - 6
applications/storage/storage-dto/src/main/java/com/usoftchina/saas/storage/dto/ProdInOutDTO.java

@@ -45,12 +45,6 @@ public class ProdInOutDTO extends CommonBaseDTO implements Serializable {
 
     private Double pi_nettotal;
 
-    private Long pi_recordmanid;
-
-    private String pi_recordman;
-
-    private Date pi_recorddate;
-
     private String pi_status;
 
     private String pi_statuscode;

+ 0 - 6
applications/storage/storage-dto/src/main/java/com/usoftchina/saas/storage/dto/ProdInOutListDTO.java

@@ -41,12 +41,6 @@ public class ProdInOutListDTO extends CommonBaseEntity implements Serializable {
 
     private Double pi_total;
 
-    private Long pi_recordmanid;
-
-    private String pi_recordman;
-
-    private Date pi_recorddate;
-
     private String pi_status;
 
     private String pi_statuscode;

+ 0 - 6
applications/storage/storage-dto/src/main/java/com/usoftchina/saas/storage/po/Make.java

@@ -36,12 +36,6 @@ public class Make extends CommonBaseEntity implements Serializable {
 
     private String ma_whname;
 
-    private Date ma_recorddate;
-
-    private Integer ma_recordid;
-
-    private String ma_recorder;
-
     private Double ma_price;
 
     private Double ma_total;

+ 0 - 6
applications/storage/storage-dto/src/main/java/com/usoftchina/saas/storage/po/ProdInOut.java

@@ -39,12 +39,6 @@ public class ProdInOut extends CommonBaseEntity implements Serializable {
 
     private Double pi_nettotal;
 
-    private Long pi_recordmanid;
-
-    private String pi_recordman;
-
-    private Date pi_recorddate;
-
     private String pi_status;
 
     private String pi_statuscode;

+ 0 - 9
applications/storage/storage-dto/src/main/java/com/usoftchina/saas/storage/po/ProdInOutList.java

@@ -40,12 +40,6 @@ public class ProdInOutList extends CommonBaseEntity{
 
     private Double pi_total;
 
-    private Long pi_recordmanid;
-
-    private String pi_recordman;
-
-    private Date pi_recorddate;
-
     private String pi_status;
 
     private String pi_statuscode;
@@ -166,9 +160,6 @@ public class ProdInOutList extends CommonBaseEntity{
     private long pr_vendid;
     private String pr_vendname;
     private String pr_vendcode;
-    private Date pr_docdate;
-    private long pr_recordmanid;
-    private String pr_recordman;
     private String pr_status;
     private String pr_statuscode;
     private String pr_text1;

+ 16 - 15
applications/storage/storage-server/src/main/java/com/usoftchina/saas/storage/service/impl/MakeServiceImpl.java

@@ -353,6 +353,11 @@ public class MakeServiceImpl extends CommonBaseServiceImpl<MakeMapper, Make> imp
         Make make = makeListDTO.getMain();
         Long ma_id = make.getId();
         List<MakeMaterial> items = makeListDTO.getItems();
+        //公司ID
+        Long companyId = BaseContextHolder.getCompanyId();
+        //人员Id
+        Long userId = BaseContextHolder.getUserId();
+        String userName = BaseContextHolder.getUserName();
         Result res = null;
         Object result =  null;
         if ("组装".equals(make.getMa_type())){
@@ -363,18 +368,17 @@ public class MakeServiceImpl extends CommonBaseServiceImpl<MakeMapper, Make> imp
             String code = maxnumberService.getMaxnumber("MakeOut", true).getData();
             prodInOut.setPi_inoutno(code);
             prodInOut.setPi_date(new Date());       //出入库日期
-            prodInOut.setPi_recorddate(new Date());     //录入日期
             prodInOut.setPi_auditdate(new Date());      //审核日期
             prodInOut.setPi_auditman("");               //审核人
             prodInOut.setPi_status(Status.UNAUDITED.getDisplay());  //单据状态
             prodInOut.setPi_statuscode(Status.UNAUDITED.name());    //单据状态码
             prodInOut.setPi_macode(make.getMa_code());       //制造单号
             prodInOut.setPi_maid(make.getId());             //制造单ID
-            prodInOut.setCompanyId(BaseContextHolder.getCompanyId());   //公司ID
-            prodInOut.setCreateTime(new Date());
-            prodInOut.setCreatorId(BaseContextHolder.getUserId());      //创建人ID
+            prodInOut.setCompanyId(companyId);   //公司ID
             prodInOutMapper.insertSelective(prodInOut);
             long pi_id = prodInOut.getId();
+            //更新录入人
+            prodInOutMapper.updateCreator(userId, userName, pi_id);
             //b.从表
             List<ProdIODetail> prodIODetailList = new ArrayList<ProdIODetail>();
             int detno = 0;
@@ -422,19 +426,18 @@ public class MakeServiceImpl extends CommonBaseServiceImpl<MakeMapper, Make> imp
             code = maxnumberService.getMaxnumber("MakeIn", true).getData();
             prodInOut.setPi_inoutno(code);
             prodInOut.setPi_date(new Date());       //出入库日期
-            prodInOut.setPi_recorddate(new Date());     //录入日期
             prodInOut.setPi_auditdate(new Date());      //审核日期
             prodInOut.setPi_auditman("");               //审核人
             prodInOut.setPi_status(Status.UNAUDITED.getDisplay());  //单据状态
             prodInOut.setPi_statuscode(Status.UNAUDITED.name());    //单据状态码
             prodInOut.setPi_macode(make.getMa_code());       //制造单号
             prodInOut.setPi_maid(make.getId());             //制造单ID
-            prodInOut.setCompanyId(BaseContextHolder.getCompanyId());   //公司ID
-            prodInOut.setCreateTime(new Date());
-            prodInOut.setCreatorId(BaseContextHolder.getUserId());      //创建人ID
+            prodInOut.setCompanyId(companyId);   //公司ID
             prodInOut.setPi_total(make.getMa_total());
             prodInOutMapper.insertSelective(prodInOut);
             pi_id = prodInOut.getId();
+            //更新录入人
+            prodInOutMapper.updateCreator(userId, userName, pi_id);
             //b.从表
             ProdIODetail prodIODetail = new ProdIODetail();
             prodIODetail.setPd_piid(pi_id);     //主表ID
@@ -474,18 +477,17 @@ public class MakeServiceImpl extends CommonBaseServiceImpl<MakeMapper, Make> imp
             String code = maxnumberService.getMaxnumber("MakeOut", true).getData();
             prodInOut.setPi_inoutno(code);
             prodInOut.setPi_date(new Date());       //出入库日期
-            prodInOut.setPi_recorddate(new Date());     //录入日期
             prodInOut.setPi_auditdate(new Date());      //审核日期
             prodInOut.setPi_auditman("");               //审核人
             prodInOut.setPi_status(Status.UNAUDITED.getDisplay());  //单据状态
             prodInOut.setPi_statuscode(Status.UNAUDITED.name());    //单据状态码
             prodInOut.setPi_macode(make.getMa_code());       //制造单号
             prodInOut.setPi_maid(make.getId());             //制造单ID
-            prodInOut.setCompanyId(BaseContextHolder.getCompanyId());   //公司ID
-            prodInOut.setCreateTime(new Date());
-            prodInOut.setCreatorId(BaseContextHolder.getUserId());      //创建人ID
+            prodInOut.setCompanyId(companyId);   //公司ID
             prodInOutMapper.insertSelective(prodInOut);
             long pi_id = prodInOut.getId();
+            //更新录入人
+            prodInOutMapper.updateCreator(userId, userName, pi_id);
             //b.从表
             ProdIODetail prodIODetail = new ProdIODetail();
             prodIODetail.setPd_piid(pi_id);     //主表ID
@@ -534,7 +536,6 @@ public class MakeServiceImpl extends CommonBaseServiceImpl<MakeMapper, Make> imp
             code = maxnumberService.getMaxnumber("MakeIn", true).getData();
             prodInOut.setPi_inoutno(code);
             prodInOut.setPi_date(new Date());       //出入库日期
-            prodInOut.setPi_recorddate(new Date());     //录入日期
             prodInOut.setPi_auditdate(new Date());      //审核日期
             prodInOut.setPi_auditman("");               //审核人
             prodInOut.setPi_status(Status.UNAUDITED.getDisplay());  //单据状态
@@ -542,10 +543,10 @@ public class MakeServiceImpl extends CommonBaseServiceImpl<MakeMapper, Make> imp
             prodInOut.setPi_macode(make.getMa_code());       //制造单号
             prodInOut.setPi_maid(make.getId());             //制造单ID
             prodInOut.setCompanyId(BaseContextHolder.getCompanyId());   //公司ID
-            prodInOut.setCreateTime(new Date());
-            prodInOut.setCreatorId(BaseContextHolder.getUserId());      //创建人ID
             prodInOutMapper.insertSelective(prodInOut);
             pi_id = prodInOut.getId();
+            //更新录入人
+            prodInOutMapper.updateCreator(userId, userName, pi_id);
             //计算完工入库单主表金额
             prodIODetailMapper.calcProdIn(pi_id);
             //b.从表

+ 0 - 5
applications/storage/storage-server/src/main/java/com/usoftchina/saas/storage/service/impl/ProdInOutServiceImpl.java

@@ -113,8 +113,6 @@ public class ProdInOutServiceImpl extends CommonBaseServiceImpl<ProdInOutMapper,
         //人员Id
         Long userId = BaseContextHolder.getUserId();
         String userName = BaseContextHolder.getUserName();
-
-
         //获取主表信息
         ProdInOutDTO main = formdata.getMain();
         List<ProdIODetailDTO> items = formdata.getItems();
@@ -128,8 +126,6 @@ public class ProdInOutServiceImpl extends CommonBaseServiceImpl<ProdInOutMapper,
         String pi_class = main.getPi_class();
         ProdInOut prodInOut = BeanMapper.map(main,ProdInOut.class);
         prodInOut.setCompanyId(companyId);
-        prodInOut.setCreatorId(userId);
-        prodInOut.setCreateTime(prodInOut.getPi_recorddate()==null?new Date():prodInOut.getPi_recorddate());
         prodInOut.setPi_date(prodInOut.getPi_date()==null?new Date():prodInOut.getPi_date());
         //编号获取
         pi_inoutno = pushMaxnubmer(prodInOut);
@@ -150,7 +146,6 @@ public class ProdInOutServiceImpl extends CommonBaseServiceImpl<ProdInOutMapper,
                 detail.setCompanyId(companyId);
                 detail.setCreatorId(userId);
                 detail.setCreateTime(new Date());
-
                 insertDetails.add(detail);
             }
             //插入从表

+ 3 - 54
applications/storage/storage-server/src/main/resources/mapper/MakeMapper.xml

@@ -17,9 +17,6 @@
     <result column="ma_whid" property="ma_whid" jdbcType="INTEGER" />
     <result column="ma_whcode" property="ma_whcode" jdbcType="VARCHAR" />
     <result column="ma_whname" property="ma_whname" jdbcType="VARCHAR" />
-    <result column="ma_recorddate" property="createTime" jdbcType="TIMESTAMP" />
-    <result column="ma_recordid" property="ma_recordid" jdbcType="INTEGER" />
-    <result column="ma_recorder" property="ma_recorder" jdbcType="VARCHAR" />
     <result column="ma_price" property="ma_price" jdbcType="DOUBLE" />
     <result column="ma_total" property="ma_total" jdbcType="DOUBLE" />
     <result column="ma_auditman" property="ma_auditman" jdbcType="DOUBLE" />
@@ -40,10 +37,6 @@
 
 
 
-
-
-
-
   <resultMap id="ResultMapWithBLOBs" type="com.usoftchina.saas.storage.po.ProdInOut">
     <id column="pi_id" jdbcType="INTEGER" property="id" />
     <result column="pi_inoutno" jdbcType="VARCHAR" property="pi_inoutno" />
@@ -60,8 +53,6 @@
     <result column="pi_said" jdbcType="INTEGER" property="pi_said" />
     <result column="pi_sacode" jdbcType="VARCHAR" property="pi_sacode" />
     <result column="pi_total" jdbcType="DOUBLE" property="pi_total" />
-    <result column="pi_recordmanid" jdbcType="INTEGER" property="pi_recordmanid" />
-    <result column="pi_recordman" jdbcType="VARCHAR" property="pi_recordman" />
     <result column="pi_recorddate" jdbcType="TIMESTAMP" property="createTime" />
     <result column="pi_status" jdbcType="VARCHAR" property="pi_status" />
     <result column="pi_statuscode" jdbcType="VARCHAR" property="pi_statuscode" />
@@ -86,15 +77,9 @@
   </resultMap>
 
 
-
-
-
-
-
   <sql id="Base_Column_List" >
     ma_id, ma_code, ma_status, ma_statuscode, ma_type, ma_prodid, ma_prodcode, ma_proddetail, 
-    ma_prodspec, ma_version, ma_produnit, ma_qty, ma_whid, ma_whcode, ma_whname, ma_recorddate,
-    ma_recordid, ma_recorder, ma_price, ma_total,ma_auditman,ma_auditdate, companyId, updaterId,updaterName,updateTime,creatorid,creatorName,createtime, ma_text1,
+    ma_prodspec, ma_version, ma_produnit, ma_qty, ma_whid, ma_whcode, ma_whname,ma_price, ma_total,ma_auditman,ma_auditdate, companyId, updaterId,updaterName,updateTime,creatorid,creatorName,createtime, ma_text1,
     ma_text2, ma_text3, ma_text4, ma_text5
   </sql>
   <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" >
@@ -115,8 +100,7 @@
       ma_statuscode, ma_type, ma_prodid, 
       ma_prodcode, ma_proddetail, ma_prodspec, 
       ma_version, ma_produnit, ma_qty, 
-      ma_whid, ma_whcode, ma_whname, ma_recorddate,
-      ma_recordid, ma_recorder, ma_price, 
+      ma_whid, ma_whcode, ma_whname, ma_price,
       ma_total, ma_auditman,ma_auditdate,companyId, updaterId,
       updateTime, ma_text1, ma_text2, 
       ma_text3, ma_text4, ma_text5
@@ -125,8 +109,7 @@
       #{ma_statuscode,jdbcType=VARCHAR}, #{ma_type,jdbcType=VARCHAR}, #{ma_prodid,jdbcType=INTEGER}, 
       #{ma_prodcode,jdbcType=VARCHAR}, #{ma_proddetail,jdbcType=VARCHAR}, #{ma_prodspec,jdbcType=VARCHAR}, 
       #{ma_version,jdbcType=VARCHAR}, #{ma_produnit,jdbcType=VARCHAR}, #{ma_qty,jdbcType=DOUBLE}, 
-      #{ma_whid,jdbcType=INTEGER}, #{ma_whcode,jdbcType=VARCHAR}, #{ma_whname,jdbcType=VARCHAR}, #{ma_recorddate,jdbcType=TIMESTAMP},
-      #{ma_recordid,jdbcType=INTEGER}, #{ma_recorder,jdbcType=VARCHAR}, #{ma_price,jdbcType=DOUBLE}, 
+      #{ma_whid,jdbcType=INTEGER}, #{ma_whcode,jdbcType=VARCHAR}, #{ma_whname,jdbcType=VARCHAR}, #{ma_price,jdbcType=DOUBLE},
       #{ma_total,jdbcType=DOUBLE}, #{ma_auditman,jdbcType=VARCHAR},#{ma_auditdate.jdbcType=TIMESTAMP},#{companyId,jdbcType=INTEGER}, #{updaterId,jdbcType=INTEGER},
       #{updateTime,jdbcType=TIMESTAMP}, #{ma_text1,jdbcType=VARCHAR}, #{ma_text2,jdbcType=VARCHAR}, 
       #{ma_text3,jdbcType=VARCHAR}, #{ma_text4,jdbcType=VARCHAR}, #{ma_text5,jdbcType=VARCHAR}
@@ -181,15 +164,6 @@
       <if test="ma_whname != null">
         ma_whname,
       </if>
-      <if test="ma_recorddate != null">
-        ma_recorddate,
-      </if>
-      <if test="ma_recordid != null">
-        ma_recordid,
-      </if>
-      <if test="ma_recorder != null">
-        ma_recorder,
-      </if>
       <if test="ma_price != null">
         ma_price,
       </if>
@@ -283,15 +257,6 @@
       <if test="ma_whname != null">
         #{ma_whname,jdbcType=VARCHAR},
       </if>
-      <if test="ma_recorddate != null">
-        #{ma_recorddate,jdbcType=TIMESTAMP},
-      </if>
-      <if test="ma_recordid != null">
-        #{ma_recordid,jdbcType=INTEGER},
-      </if>
-      <if test="ma_recorder != null">
-        #{ma_recorder,jdbcType=VARCHAR},
-      </if>
       <if test="ma_price != null">
         #{ma_price,jdbcType=DOUBLE},
       </if>
@@ -387,15 +352,6 @@
       <if test="ma_whname != null" >
         ma_whname = #{ma_whname,jdbcType=VARCHAR},
       </if>
-      <if test="ma_recorddate != null" >
-        ma_recorddate = #{ma_recorddate,jdbcType=TIMESTAMP},
-      </if>
-      <if test="ma_recordid != null" >
-        ma_recordid = #{ma_recordid,jdbcType=INTEGER},
-      </if>
-      <if test="ma_recorder != null" >
-        ma_recorder = #{ma_recorder,jdbcType=VARCHAR},
-      </if>
       <if test="ma_price != null" >
         ma_price = #{ma_price,jdbcType=DOUBLE},
       </if>
@@ -408,9 +364,6 @@
       <if test="ma_auditdate !=null">
         ma_auditdate =  #{ma_auditdate,jdbcType=TIMESTAMP},
       </if>
-
-
-
       <if test="companyId != null" >
         companyId = #{companyId,jdbcType=INTEGER},
       </if>
@@ -454,14 +407,10 @@
       ma_whid = #{ma_whid,jdbcType=INTEGER},
       ma_whcode = #{ma_whcode,jdbcType=VARCHAR},
       ma_whname = #{ma_whname,jdbcType=VARCHAR},
-      ma_recorddate = #{ma_recorddate,jdbcType=TIMESTAMP},
-      ma_recordid = #{ma_recordid,jdbcType=INTEGER},
-      ma_recorder = #{ma_recorder,jdbcType=VARCHAR},
       ma_price = #{ma_price,jdbcType=DOUBLE},
       ma_total = #{ma_total,jdbcType=DOUBLE},
       ma_auditman = #{ma_auditman,jdbcType=VARCHAR},
       ma_auditdate = #{ma_auditdate,jdbcType=TIMESTAMP},
-
       companyId = #{companyId,jdbcType=INTEGER},
       updaterId = #{updaterId,jdbcType=INTEGER},
       updateTime = #{updateTime,jdbcType=TIMESTAMP},

+ 12 - 15
applications/storage/storage-server/src/main/resources/mapper/MakematerialMapper.xml

@@ -39,9 +39,6 @@
         <result column="pr_vendid" property="pr_vendid" jdbcType="INTEGER" />
         <result column="pr_vendcode" property="pr_vendcode" jdbcType="VARCHAR" />
         <result column="pr_vendname" property="pr_vendname" jdbcType="VARCHAR" />
-        <result column="pr_docdate" property="pr_docdate" jdbcType="TIMESTAMP" />
-        <result column="pr_recordmanid" property="pr_recordmanid" jdbcType="INTEGER" />
-        <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="updateTime" property="updateTime" jdbcType="TIMESTAMP" />
@@ -100,9 +97,9 @@
       <if test="mm_whcode != null" >
         mm_whcode,
       </if>
-        <if test="mm_whname != null" >
-            mm_whname,
-        </if>
+      <if test="mm_whname != null" >
+          mm_whname,
+      </if>
       <if test="mm_price != null" >
         mm_price,
       </if>
@@ -150,9 +147,9 @@
       <if test="mm_whcode != null" >
         #{mm_whcode,jdbcType=VARCHAR},
       </if>
-        <if test="mm_whname != null" >
-            #{mm_whname,jdbcType=VARCHAR},
-        </if>
+      <if test="mm_whname != null" >
+        #{mm_whname,jdbcType=VARCHAR},
+      </if>
       <if test="mm_price != null" >
         #{mm_price,jdbcType=DOUBLE},
       </if>
@@ -203,9 +200,9 @@
       <if test="mm_whcode != null" >
         mm_whcode = #{mm_whcode,jdbcType=VARCHAR},
       </if>
-        <if test="mm_whname != null" >
-            mm_whname = #{mm_whname,jdbcType=VARCHAR},
-        </if>
+      <if test="mm_whname != null" >
+          mm_whname = #{mm_whname,jdbcType=VARCHAR},
+      </if>
       <if test="mm_price != null" >
         mm_price = #{mm_price,jdbcType=DOUBLE},
       </if>
@@ -303,9 +300,9 @@
         <if test="item.mm_whcode != null" >
           mm_whcode = #{item.mm_whcode,jdbcType=VARCHAR},
         </if>
-          <if test="item.mm_whname != null" >
-              mm_whname = #{item.mm_whname,jdbcType=VARCHAR},
-          </if>
+        <if test="item.mm_whname != null" >
+          mm_whname = #{item.mm_whname,jdbcType=VARCHAR},
+        </if>
         <if test="item.mm_price != null" >
           mm_price = #{item.mm_price,jdbcType=DOUBLE},
         </if>

+ 0 - 3
applications/storage/storage-server/src/main/resources/mapper/ProdIODetailMapper.xml

@@ -62,9 +62,6 @@
       <result column="pr_vendid" property="pr_vendid"/>
       <result column="pr_vendname" property="pr_vendname"/>
       <result column="pr_vendcode" property="pr_vendcode"/>
-      <result column="pr_docdate" property="pr_docdate"/>
-      <result column="pr_recordmanid" property="pr_recordmanid"/>
-      <result column="pr_recordman" property="pr_recordman"/>
       <result column="pr_status" property="pr_status"/>
       <result column="pr_statuscode" property="pr_statuscode"/>
       <result column="pr_text1" property="pr_text1"/>

+ 0 - 6
applications/storage/storage-server/src/main/resources/mapper/ProdInOutListMapper.xml

@@ -17,9 +17,6 @@
     <result column="pi_said" jdbcType="INTEGER" property="pi_said" />
     <result column="pi_sacode" jdbcType="VARCHAR" property="pi_sacode" />
     <result column="pi_total" jdbcType="DOUBLE" property="pi_total" />
-    <result column="pi_recordmanid" jdbcType="INTEGER" property="pi_recordmanid" />
-    <result column="pi_recordman" jdbcType="VARCHAR" property="pi_recordman" />
-    <result column="pi_recorddate" jdbcType="TIMESTAMP" property="pi_recorddate" />
     <result column="pi_status" jdbcType="VARCHAR" property="pi_status" />
     <result column="pi_statuscode" jdbcType="VARCHAR" property="pi_statuscode" />
     <result column="pi_printstatus" jdbcType="VARCHAR" property="pi_printstatus" />
@@ -95,9 +92,6 @@
     <result column="pr_vendid" property="pr_vendid"/>
     <result column="pr_vendname" property="pr_vendname"/>
     <result column="pr_vendcode" property="pr_vendcode"/>
-    <result column="pr_docdate" property="pr_docdate"/>
-    <result column="pr_recordmanid" property="pr_recordmanid"/>
-    <result column="pr_recordman" property="pr_recordman"/>
     <result column="pr_status" property="pr_status"/>
     <result column="pr_statuscode" property="pr_statuscode"/>
     <result column="pr_text1" property="pr_text1"/>

+ 1 - 29
applications/storage/storage-server/src/main/resources/mapper/ProdInOutMapper.xml

@@ -17,9 +17,6 @@
     <result column="pi_said" jdbcType="INTEGER" property="pi_said" />
     <result column="pi_sacode" jdbcType="VARCHAR" property="pi_sacode" />
     <result column="pi_total" jdbcType="DOUBLE" property="pi_total" />
-    <result column="pi_recordmanid" jdbcType="INTEGER" property="pi_recordmanid" />
-    <result column="pi_recordman" jdbcType="VARCHAR" property="pi_recordman" />
-    <result column="pi_recorddate" jdbcType="TIMESTAMP" property="createTime" />
     <result column="pi_status" jdbcType="VARCHAR" property="pi_status" />
     <result column="pi_statuscode" jdbcType="VARCHAR" property="pi_statuscode" />
     <result column="pi_printstatus" jdbcType="VARCHAR" property="pi_printstatus" />
@@ -49,8 +46,7 @@
 
   <sql id="Base_Column_List">
     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_recordman, pi_recorddate, pi_status, pi_statuscode, pi_printstatus, pi_printstatuscode, 
+    pi_custcode, pi_custname, pi_puid, pi_pucode, pi_said, pi_sacode, pi_total,pi_status, pi_statuscode, pi_printstatus, pi_printstatuscode,
     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>
@@ -119,12 +115,6 @@
       <if test="pi_total != null">
         pi_total,
       </if>
-      <if test="pi_recordmanid != null">
-        pi_recordmanid,
-      </if>
-      <if test="pi_recordman != null">
-        pi_recordman,
-      </if>
       <if test="pi_status != null">
         pi_status,
       </if>
@@ -137,7 +127,6 @@
       <if test="pi_printstatuscode != null">
         pi_printstatuscode,
       </if>
-
       <if test="companyId != null" >
         companyid,
       </if>
@@ -240,12 +229,6 @@
       <if test="pi_total != null">
         #{pi_total,jdbcType=DOUBLE},
       </if>
-      <if test="pi_recordmanid != null">
-        #{pi_recordmanid,jdbcType=INTEGER},
-      </if>
-      <if test="pi_recordman != null">
-        #{pi_recordman,jdbcType=VARCHAR},
-      </if>
       <if test="pi_status != null">
         #{pi_status,jdbcType=VARCHAR},
       </if>
@@ -258,7 +241,6 @@
       <if test="pi_printstatuscode != null">
         #{pi_printstatuscode,jdbcType=VARCHAR},
       </if>
-
       <if test="companyId != null" >
         #{companyId,jdbcType=INTEGER},
       </if>
@@ -277,7 +259,6 @@
       <if test="creatorName != null">
         #{creatorName,jdbcType=VARCHAR},
       </if>
-
       <if test="createTime != null" >
         #{createTime,jdbcType=TIMESTAMP},
       </if>
@@ -365,15 +346,6 @@
       <if test="pi_total != null">
         pi_total = #{pi_total,jdbcType=DOUBLE},
       </if>
-      <if test="pi_recordmanid != null">
-        pi_recordmanid = #{pi_recordmanid,jdbcType=INTEGER},
-      </if>
-      <if test="pi_recordman != null">
-        pi_recordman = #{pi_recordman,jdbcType=VARCHAR},
-      </if>
-      <if test="createTime != null">
-        pi_recorddate = #{createTime,jdbcType=TIMESTAMP},
-      </if>
       <if test="pi_status != null">
         pi_status = #{pi_status,jdbcType=VARCHAR},
       </if>

+ 14 - 5
base-servers/account/account-dto/src/main/java/com/usoftchina/saas/account/dto/CompanyRegDTO.java

@@ -20,10 +20,19 @@ public class CompanyRegDTO implements Serializable{
      */
     private String businessCode;
     private String address;
-    private String logoId;
+    private String logoUrl;
     private String tel;
     private String fax;
     private String signet;      //电子章
+    private String type;        //所属行业
+
+    public String getType() {
+        return type;
+    }
+
+    public void setType(String type) {
+        this.type = type;
+    }
 
     public Long getId() {
         return id;
@@ -82,11 +91,11 @@ public class CompanyRegDTO implements Serializable{
     }
 
     public String getLogoUrl() {
-        return logoId;
+        return logoUrl;
     }
 
-    public void setLogoUrl(String logoId) {
-        this.logoId = logoId;
+    public void setLogoUrl(String logoUrl) {
+        this.logoUrl = logoUrl;
     }
 
     @Override
@@ -95,7 +104,7 @@ public class CompanyRegDTO implements Serializable{
                 "name='" + name + '\'' +
                 ", businessCode='" + businessCode + '\'' +
                 ", address='" + address + '\'' +
-                ", logoUrl='" + logoId + '\'' +
+                ", logoUrl='" + logoUrl + '\'' +
                 '}';
     }
 }

+ 14 - 1
base-servers/account/account-dto/src/main/java/com/usoftchina/saas/account/dto/CompanyRspDTO.java

@@ -23,6 +23,10 @@ public class CompanyRspDTO implements Serializable {
      */
     private boolean saas_;
     private String uu;
+    /**
+     * 所属行业
+     */
+    private String type;
     /**
      * 是否有默认企业
      */
@@ -39,6 +43,14 @@ public class CompanyRspDTO implements Serializable {
 
     private Long adminId;
 
+    public String getType() {
+        return type;
+    }
+
+    public void setType(String type) {
+        this.type = type;
+    }
+
     public Long getAdminId() {
         return adminId;
     }
@@ -127,7 +139,7 @@ public class CompanyRspDTO implements Serializable {
         this.default_ = default_;
     }
 
-    public CompanyRspDTO(String name, String businessCode, String address, boolean default_, boolean saas_, String uu, String admin, Long adminId) {
+    public CompanyRspDTO(String name, String businessCode, String address, boolean default_, boolean saas_, String uu, String admin, Long adminId, String type) {
         this.name = name;
         this.businessCode = businessCode;
         this.address = address;
@@ -136,6 +148,7 @@ public class CompanyRspDTO implements Serializable {
         this.uu = uu;
         this.admin = admin;
         this.adminId = adminId;
+        this.type = type;
     }
 
     public CompanyRspDTO() {

+ 12 - 0
base-servers/account/account-server/src/main/java/com/usoftchina/saas/account/po/Company.java

@@ -27,6 +27,18 @@ public class Company implements Serializable {
     private String tel;
     private String fax;
     private String signet;
+    /**
+     * 所属行业
+     */
+    private String type;
+
+    public String getType() {
+        return type;
+    }
+
+    public void setType(String type) {
+        this.type = type;
+    }
 
     public String getTel() {
         return tel;

+ 4 - 3
base-servers/account/account-server/src/main/java/com/usoftchina/saas/account/service/impl/AccountCenterServiceImpl.java

@@ -83,13 +83,13 @@ public class AccountCenterServiceImpl implements AccountCenterService {
 
         //调用存储过程, 对新开账套数据初始化
         Map<String, Object> map = new HashMap<String, Object>();
-        map.put("fromCompany", 2);
+        map.put("fromCompany", 3);
         map.put("newCompany", company.getId());
         map.put("accountId", accountId);
         map.put("result", null);
         accountCompanyMapper.initData(map);
 
-        return null;
+        return Result.success();
     }
 
     @Override
@@ -154,7 +154,8 @@ public class AccountCenterServiceImpl implements AccountCenterService {
                         false,
                         ssoUserSpace.getSpaceUU().toString(),
                         ssoUserSpace.getAdmin().getVipName(),
-                        0l
+                        0L,
+                        ssoUserSpace.getProfession()
                 );
                 resultList.add(companyRspDTO);
             }

+ 4 - 1
base-servers/account/account-server/src/main/resources/application.yml

@@ -82,4 +82,7 @@ mybatis:
 auth:
   public-key: auth/pub.key
 sso:
-  base-url: http://192.168.253.12:32323
+  base-url: http://192.168.253.12:32323
+ribbon:
+  ReadTimeout: 6000
+  ConnectTimeout: 2000

+ 1 - 1
base-servers/account/account-server/src/main/resources/mapper/AccountCompanyMapper.xml

@@ -14,7 +14,7 @@
         delete from ac_account_company where company_id=#{companyId}
     </delete>
     <select id="getCompanyListByAccountMobile" resultType="com.usoftchina.saas.account.dto.CompanyRspDTO">
-        SELECT cmp.id,cmp.name,cmp.uu,cmp.business_code businessCode,cmp.address,accmp.is_default default_,'1' saas_,aci.realname admin,cmp.creator_id adminId from ac_company cmp
+        SELECT cmp.id,cmp.name,cmp.uu,cmp.business_code businessCode,cmp.address,accmp.is_default default_,'1' saas_,aci.realname admin,cmp.creator_id adminId,cmp.type from ac_company cmp
         left join ac_account_company accmp on accmp.company_id=cmp.id
         left join ac_account ac on ac.id = accmp.account_id
         left join ac_account aci on aci.id = cmp.creator_id

Some files were not shown because too many files changed in this diff