|
@@ -385,7 +385,7 @@ module.exports = app => {
|
|
|
* @return {Promise<*>}
|
|
|
*/
|
|
|
async getExPreTpHs(tid, order, tp) {
|
|
|
- const sql = 'SELECT SUM(ROUND(`ex_tp`*(1+ `rate`/100),' + tp + ')) AS `ex_pre_tp_hs` FROM ?? WHERE `tid` = ? AND `order` < ?';
|
|
|
+ const sql = 'SELECT SUM(ROUND(`ex_tp`*(1+ `exponent_rate`/100),' + tp + ')) AS `ex_pre_tp_hs` FROM ?? WHERE `tid` = ? AND `order` < ?';
|
|
|
const sqlParam = [this.tableName, tid, order];
|
|
|
const result = await this.db.queryOne(sql, sqlParam);
|
|
|
return result.ex_pre_tp_hs;
|