|
@@ -37,7 +37,7 @@ module.exports = app => {
|
|
|
* @return {Promise<*>}
|
|
|
*/
|
|
|
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.*,' +
|
|
|
' oc.p_code As c_code, oc.new_code As c_new_code' +
|
|
|
' FROM ' + this.tableName + ' As c ' +
|
|
@@ -68,7 +68,7 @@ module.exports = app => {
|
|
|
* @return {Promise<*>}
|
|
|
*/
|
|
|
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.*,' +
|
|
|
' 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 ' +
|