Browse Source

修改详情接口

anderx 2 years ago
parent
commit
f819fe95a1

+ 29 - 0
src/main/java/com/goafanti/expenseAccount/bo/OutExpenseAccount.java

@@ -2,6 +2,7 @@ package com.goafanti.expenseAccount.bo;
 
 import com.goafanti.common.model.ExpenseAccount;
 
+import java.math.BigDecimal;
 
 
 public class OutExpenseAccount extends ExpenseAccount {
@@ -11,10 +12,38 @@ public class OutExpenseAccount extends ExpenseAccount {
     private String releaseEndStr;
     private String appDepName;
     private String payDepName;
+    private String contractNo;
+    private String buyerName;
+    private BigDecimal debitTotalAmount;
+
     private String name;
     private String bank;
     private String accounts;
 
+    public BigDecimal getDebitTotalAmount() {
+        return debitTotalAmount;
+    }
+
+    public void setDebitTotalAmount(BigDecimal debitTotalAmount) {
+        this.debitTotalAmount = debitTotalAmount;
+    }
+
+    public String getContractNo() {
+        return contractNo;
+    }
+
+    public void setContractNo(String contractNo) {
+        this.contractNo = contractNo;
+    }
+
+    public String getBuyerName() {
+        return buyerName;
+    }
+
+    public void setBuyerName(String buyerName) {
+        this.buyerName = buyerName;
+    }
+
     public String getName() {
         return name;
     }

+ 4 - 0
src/main/java/com/goafanti/expenseAccount/service/impl/ExpenseAccountServiceImpl.java

@@ -310,6 +310,10 @@ public class ExpenseAccountServiceImpl extends BaseMybatisDao<ExpenseAccountMapp
     @Override
     public Object selectById(Integer id) {
         OutExpenseAccount useEa = expenseAccountMapper.selectByid(id);
+        if (useEa.getDebitId()!=null){
+            ExpenseAccount debit = expenseAccountMapper.selectByPrimaryKey(useEa.getDebitId());
+            if (debit!=null&&debit.getTotalAmount()!=null)useEa.setDebitTotalAmount(debit.getTotalAmount());
+        }
         return useEa;
     }