소스 검색

材差数据问题

MaiXinRong 2 년 전
부모
커밋
ec893f0726
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      app/service/material_list.js

+ 2 - 1
app/service/material_list.js

@@ -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);
         }