|
@@ -308,7 +308,7 @@ module.exports = app => {
|
|
|
* @param {int} order 期数
|
|
|
* @return {void}
|
|
|
*/
|
|
|
- async save(data, order) {
|
|
|
+ async save(data) {
|
|
|
if (!this.ctx.tender || !this.ctx.change) {
|
|
|
throw '数据错误';
|
|
|
}
|
|
@@ -481,7 +481,7 @@ module.exports = app => {
|
|
|
// const sqlParam = [this.tableName, this.change.cid];
|
|
|
// const tp = await transaction.queryOne(sql, sqlParam);
|
|
|
// 防止小数位不精确,采用取值计算
|
|
|
- const sql = 'SELECT unit_price, spamount FROM ?? WHERE cid = ?';
|
|
|
+ const sql = 'SELECT unit_price, spamount, is_valuation FROM ?? WHERE cid = ?';
|
|
|
const sqlParam = [this.tableName, this.ctx.change.cid];
|
|
|
const changeList = await transaction.query(sql, sqlParam);
|
|
|
let total_price = 0;
|