Browse Source

调用变更令bug

MaiXinRong 2 years ago
parent
commit
7a18973ff7
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/service/stage_change.js

+ 2 - 2
app/service/stage_change.js

@@ -37,7 +37,7 @@ module.exports = app => {
          * @return {Promise<*>}
          * @return {Promise<*>}
          */
          */
         async getLastestStageData(tid, sid, lid, pid, noValue) {
         async getLastestStageData(tid, sid, lid, pid, noValue) {
-            const filter = noValue !== undefined ? 'And no_value = ?' : '';
+            const filter = noValue !== undefined ? ' And no_value = ?' : '';
             const sql = 'SELECT c.*,' +
             const sql = 'SELECT c.*,' +
                 '  oc.p_code As c_code, oc.new_code As c_new_code' +
                 '  oc.p_code As c_code, oc.new_code As c_new_code' +
                 '  FROM ' + this.tableName + ' As c ' +
                 '  FROM ' + this.tableName + ' As c ' +
@@ -68,7 +68,7 @@ module.exports = app => {
          * @return {Promise<*>}
          * @return {Promise<*>}
          */
          */
         async getAuditorStageData(tid, sid, times, order, lid, pid, noValue) {
         async getAuditorStageData(tid, sid, times, order, lid, pid, noValue) {
-            const filter = noValue !== undefined ? 'And no_value = ?' : '';
+            const filter = noValue !== undefined ? ' And no_value = ?' : '';
             const sql = 'SELECT c.*,' +
             const sql = 'SELECT c.*,' +
                 '  oc.p_code As c_code, oc.new_code As c_new_code, oc.quality, ocb.code as b_code, ocb.name, ocb.unit' +
                 '  oc.p_code As c_code, oc.new_code As c_new_code, oc.quality, ocb.code as b_code, ocb.name, ocb.unit' +
                 '  FROM ' + this.tableName + ' As c ' +
                 '  FROM ' + this.tableName + ' As c ' +