|
@@ -337,7 +337,8 @@ module.exports = app => {
|
|
|
' LEFT JOIN ' + this.ctx.service.materialStageBills.tableName + ' as msb ON ml.`mb_id` = msb.mb_id AND ml.ms_id = msb.ms_id And ml.mid = msb.mid' +
|
|
|
' LEFT JOIN ' + this.ctx.service.materialStage.tableName + ' as ms ON ml.`ms_id` = ms.`id`' +
|
|
|
' WHERE ml.`tid` = ? AND ml.`mid` = ?';
|
|
|
- const sqlParam = [mid, tid, mid];
|
|
|
+ const sqlParam = [tid, mid];
|
|
|
+ console.log(this.db.format(sql, sqlParam));
|
|
|
return await this.db.query(sql, sqlParam);
|
|
|
}
|
|
|
|