|
@@ -593,10 +593,10 @@ module.exports = app => {
|
|
|
* @return {void}
|
|
|
*/
|
|
|
async getChangeTp(tenderId) {
|
|
|
- const sql = 'SELECT SUM(`total_price`) AS tp, SUM(`positive_tp`) AS p_tp, SUM(`negative_tp`) AS n_tp FROM ?? WHERE tid = ? AND status = ?';
|
|
|
+ const sql = 'SELECT SUM(`total_price`) AS tp, SUM(`positive_tp`) AS p_tp, SUM(`negative_tp`) AS n_tp, SUM(`valuation_tp`) AS v_tp, SUM(`unvaluation_tp`) AS uv_tp FROM ?? WHERE tid = ? AND status = ?';
|
|
|
const sqlParam = [this.tableName, tenderId, audit.change.status.checked];
|
|
|
const result = await this.db.queryOne(sql, sqlParam);
|
|
|
- return result ? [result.tp, result.p_tp, result.n_tp] : [0, 0, 0];
|
|
|
+ return result ? [result.tp, result.p_tp, result.n_tp, result.v_tp, result.uv_tp] : [0, 0, 0, 0, 0];
|
|
|
}
|
|
|
|
|
|
/**
|