Commit b6b0997e authored by 耿迪迪's avatar 耿迪迪

交易总额添加

parent 96574544
...@@ -15,6 +15,9 @@ public class TradeExpensesStatistics { ...@@ -15,6 +15,9 @@ public class TradeExpensesStatistics {
@Excel(name = "条数") @Excel(name = "条数")
private int countNum; private int countNum;
@Excel(name = "交易总额",isStatistics = true)
private BigDecimal tradeTotal;
@Excel(name = "交易支出总额",isStatistics = true) @Excel(name = "交易支出总额",isStatistics = true)
private BigDecimal totalDealPrice; private BigDecimal totalDealPrice;
...@@ -48,6 +51,14 @@ public class TradeExpensesStatistics { ...@@ -48,6 +51,14 @@ public class TradeExpensesStatistics {
this.countNum = countNum; this.countNum = countNum;
} }
public BigDecimal getTradeTotal() {
return tradeTotal;
}
public void setTradeTotal(BigDecimal tradeTotal) {
this.tradeTotal = tradeTotal;
}
public BigDecimal getTotalDealPrice() { public BigDecimal getTotalDealPrice() {
return totalDealPrice; return totalDealPrice;
} }
......
...@@ -15,6 +15,9 @@ public class TradeIncomeStatistics { ...@@ -15,6 +15,9 @@ public class TradeIncomeStatistics {
@Excel(name = "条数") @Excel(name = "条数")
private int countNum; private int countNum;
@Excel(name = "交易总额",isStatistics = true)
private BigDecimal tradeTotal;
@Excel(name = "交易收入总额",isStatistics = true) @Excel(name = "交易收入总额",isStatistics = true)
private BigDecimal totalDealPrice; private BigDecimal totalDealPrice;
...@@ -46,6 +49,14 @@ public class TradeIncomeStatistics { ...@@ -46,6 +49,14 @@ public class TradeIncomeStatistics {
this.countNum = countNum; this.countNum = countNum;
} }
public BigDecimal getTradeTotal() {
return tradeTotal;
}
public void setTradeTotal(BigDecimal tradeTotal) {
this.tradeTotal = tradeTotal;
}
public BigDecimal getTotalDealPrice() { public BigDecimal getTotalDealPrice() {
return totalDealPrice; return totalDealPrice;
} }
......
...@@ -12,6 +12,9 @@ public class DeptTradeExpensesStatisticsVo { ...@@ -12,6 +12,9 @@ public class DeptTradeExpensesStatisticsVo {
@Excel(name = "条数") @Excel(name = "条数")
private int countNum; private int countNum;
@Excel(name = "交易总额",isStatistics = true)
private BigDecimal tradeTotal;
@Excel(name = "交易支出总额",isStatistics = true) @Excel(name = "交易支出总额",isStatistics = true)
private BigDecimal totalDealPrice; private BigDecimal totalDealPrice;
...@@ -32,6 +35,14 @@ public class DeptTradeExpensesStatisticsVo { ...@@ -32,6 +35,14 @@ public class DeptTradeExpensesStatisticsVo {
this.countNum = countNum; this.countNum = countNum;
} }
public BigDecimal getTradeTotal() {
return tradeTotal;
}
public void setTradeTotal(BigDecimal tradeTotal) {
this.tradeTotal = tradeTotal;
}
public BigDecimal getTotalDealPrice() { public BigDecimal getTotalDealPrice() {
return totalDealPrice; return totalDealPrice;
} }
......
...@@ -12,6 +12,9 @@ public class DeptTradeIncomeStatisticsVo { ...@@ -12,6 +12,9 @@ public class DeptTradeIncomeStatisticsVo {
@Excel(name = "条数") @Excel(name = "条数")
private int countNum; private int countNum;
@Excel(name = "交易总额",isStatistics = true)
private BigDecimal tradeTotal;
@Excel(name = "交易收入总额",isStatistics = true) @Excel(name = "交易收入总额",isStatistics = true)
private BigDecimal totalDealPrice; private BigDecimal totalDealPrice;
...@@ -31,6 +34,14 @@ public class DeptTradeIncomeStatisticsVo { ...@@ -31,6 +34,14 @@ public class DeptTradeIncomeStatisticsVo {
this.countNum = countNum; this.countNum = countNum;
} }
public BigDecimal getTradeTotal() {
return tradeTotal;
}
public void setTradeTotal(BigDecimal tradeTotal) {
this.tradeTotal = tradeTotal;
}
public BigDecimal getTotalDealPrice() { public BigDecimal getTotalDealPrice() {
return totalDealPrice; return totalDealPrice;
} }
......
...@@ -27,6 +27,9 @@ public class TradeExpensesStatisticsDetailExportVo { ...@@ -27,6 +27,9 @@ public class TradeExpensesStatisticsDetailExportVo {
@Excel(name = "项目状态",dictType = "t_transaction_project_status") @Excel(name = "项目状态",dictType = "t_transaction_project_status")
private String tradeStatus; private String tradeStatus;
@Excel(name = "交易总额")
private BigDecimal tradeTotal;
@Excel(name = "交易成交价") @Excel(name = "交易成交价")
private BigDecimal dealPrice; private BigDecimal dealPrice;
...@@ -86,6 +89,14 @@ public class TradeExpensesStatisticsDetailExportVo { ...@@ -86,6 +89,14 @@ public class TradeExpensesStatisticsDetailExportVo {
this.tradeStatus = tradeStatus; this.tradeStatus = tradeStatus;
} }
public BigDecimal getTradeTotal() {
return tradeTotal;
}
public void setTradeTotal(BigDecimal tradeTotal) {
this.tradeTotal = tradeTotal;
}
public BigDecimal getDealPrice() { public BigDecimal getDealPrice() {
return dealPrice; return dealPrice;
} }
......
...@@ -27,6 +27,9 @@ public class TradeIncomeStatisticsDetailExportVo { ...@@ -27,6 +27,9 @@ public class TradeIncomeStatisticsDetailExportVo {
@Excel(name = "项目状态",dictType = "t_transaction_project_status") @Excel(name = "项目状态",dictType = "t_transaction_project_status")
private String tradeStatus; private String tradeStatus;
@Excel(name = "交易总额")
private BigDecimal tradeTotal;
@Excel(name = "交易成交价") @Excel(name = "交易成交价")
private BigDecimal dealPrice; private BigDecimal dealPrice;
...@@ -86,6 +89,14 @@ public class TradeIncomeStatisticsDetailExportVo { ...@@ -86,6 +89,14 @@ public class TradeIncomeStatisticsDetailExportVo {
this.tradeStatus = tradeStatus; this.tradeStatus = tradeStatus;
} }
public BigDecimal getTradeTotal() {
return tradeTotal;
}
public void setTradeTotal(BigDecimal tradeTotal) {
this.tradeTotal = tradeTotal;
}
public BigDecimal getDealPrice() { public BigDecimal getDealPrice() {
return dealPrice; return dealPrice;
} }
......
...@@ -8,6 +8,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -8,6 +8,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="applyDeptName" column="apply_dept_name"/> <result property="applyDeptName" column="apply_dept_name"/>
<result property="applyName" column="apply_name"/> <result property="applyName" column="apply_name"/>
<result property="countNum" column="count_num"/> <result property="countNum" column="count_num"/>
<result property="tradeTotal" column="trade_total"/>
<result property="totalDealPrice" column="total_deal_price"/> <result property="totalDealPrice" column="total_deal_price"/>
<result property="applyDeptId" column="apply_dept_id"/> <result property="applyDeptId" column="apply_dept_id"/>
<result property="applyId" column="apply_id"/> <result property="applyId" column="apply_id"/>
...@@ -17,6 +18,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -17,6 +18,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="tradeDeptName" column="trade_dept_name"/> <result property="tradeDeptName" column="trade_dept_name"/>
<result property="tradeTransactorName" column="trade_transactor_name"/> <result property="tradeTransactorName" column="trade_transactor_name"/>
<result property="countNum" column="count_num"/> <result property="countNum" column="count_num"/>
<result property="tradeTotal" column="trade_total"/>
<result property="totalDealPrice" column="total_deal_price"/> <result property="totalDealPrice" column="total_deal_price"/>
<result property="tradeDeptId" column="trade_dept_id"/> <result property="tradeDeptId" column="trade_dept_id"/>
<result property="tradeTransactor" column="trade_transactor"/> <result property="tradeTransactor" column="trade_transactor"/>
...@@ -48,6 +50,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -48,6 +50,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
dept.dept_name AS apply_dept_name, dept.dept_name AS apply_dept_name,
us.nick_name AS apply_name, us.nick_name AS apply_name,
count(1) AS count_num, count(1) AS count_num,
ROUND(IFNULL(sum(project.trade_total),0),2) AS trade_total,
ROUND(IFNULL(sum(project.deal_price),0),2) AS total_deal_price, ROUND(IFNULL(sum(project.deal_price),0),2) AS total_deal_price,
project.apply_dept_id, project.apply_dept_id,
project.apply_id project.apply_id
...@@ -80,6 +83,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -80,6 +83,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
dept.dept_name AS trade_dept_name, dept.dept_name AS trade_dept_name,
us.nick_name AS trade_transactor_name, us.nick_name AS trade_transactor_name,
count(1) AS count_num, count(1) AS count_num,
ROUND(IFNULL(sum(project.trade_total),0),2) AS trade_total,
ROUND(IFNULL(sum(project.deal_price),0),2) AS total_deal_price, ROUND(IFNULL(sum(project.deal_price),0),2) AS total_deal_price,
project.trade_dept_id, project.trade_dept_id,
project.trade_transactor project.trade_transactor
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
<span class="detail" @click="detail(scope.row)">{{scope.row.countNum}}</span> <span class="detail" @click="detail(scope.row)">{{scope.row.countNum}}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="交易总额" align="center" prop="tradeTotal" />
<el-table-column label="交易支出总额" align="center" prop="totalDealPrice" /> <el-table-column label="交易支出总额" align="center" prop="totalDealPrice" />
</el-table> </el-table>
...@@ -42,6 +43,7 @@ ...@@ -42,6 +43,7 @@
</el-table-column> </el-table-column>
<el-table-column label="申请时间" align="center" prop="createTime" width="150px"/> <el-table-column label="申请时间" align="center" prop="createTime" width="150px"/>
<el-table-column label="项目状态" align="center" prop="tradeStatus" :formatter="getTradeStatus" :show-overflow-tooltip="true"/> <el-table-column label="项目状态" align="center" prop="tradeStatus" :formatter="getTradeStatus" :show-overflow-tooltip="true"/>
<el-table-column label="交易总价" align="center" prop="tradeTotal" />
<el-table-column label="交易成交价" align="center" prop="dealPrice" /> <el-table-column label="交易成交价" align="center" prop="dealPrice" />
</el-table> </el-table>
<pagination <pagination
...@@ -154,7 +156,8 @@ ...@@ -154,7 +156,8 @@
} }
const values = data.map((item) => Number(item[column.property])); const values = data.map((item) => Number(item[column.property]));
if ( if (
column.property === "totalDealPrice" column.property === "totalDealPrice" ||
column.property === "tradeTotal"
) { ) {
sums[index] = values.reduce((prev, curr) => { sums[index] = values.reduce((prev, curr) => {
const value = Number(curr); const value = Number(curr);
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
<span class="detail" @click="detail(scope.row)">{{scope.row.countNum}}</span> <span class="detail" @click="detail(scope.row)">{{scope.row.countNum}}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="交易总额" align="center" prop="tradeTotal" />
<el-table-column label="交易收入总额" align="center" prop="totalDealPrice" /> <el-table-column label="交易收入总额" align="center" prop="totalDealPrice" />
</el-table> </el-table>
...@@ -42,6 +43,7 @@ ...@@ -42,6 +43,7 @@
</el-table-column> </el-table-column>
<el-table-column label="申请时间" align="center" prop="createTime" width="150px"/> <el-table-column label="申请时间" align="center" prop="createTime" width="150px"/>
<el-table-column label="项目状态" align="center" prop="tradeStatus" :formatter="getTradeStatus" :show-overflow-tooltip="true"/> <el-table-column label="项目状态" align="center" prop="tradeStatus" :formatter="getTradeStatus" :show-overflow-tooltip="true"/>
<el-table-column label="交易总价" align="center" prop="tradeTotal" />
<el-table-column label="交易成交价" align="center" prop="dealPrice" /> <el-table-column label="交易成交价" align="center" prop="dealPrice" />
</el-table> </el-table>
<pagination <pagination
...@@ -155,7 +157,8 @@ ...@@ -155,7 +157,8 @@
} }
const values = data.map((item) => Number(item[column.property])); const values = data.map((item) => Number(item[column.property]));
if ( if (
column.property === "totalDealPrice" column.property === "totalDealPrice" ||
column.property === "tradeTotal"
) { ) {
sums[index] = values.reduce((prev, curr) => { sums[index] = values.reduce((prev, curr) => {
const value = Number(curr); const value = Number(curr);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment