dev:设备禁用不影响和MES进行接口对接,只影响AGV运行
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package org.nl.modules.wql.core.engine.syntax;
|
||||
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.nl.modules.wql.WQLCore;
|
||||
import org.nl.modules.wql.core.DataType;
|
||||
@@ -370,10 +371,15 @@ public class wqlSELECT extends IWQL {
|
||||
//2.2、对分页进行处理
|
||||
Set keySettTempTable = WQLCore.tempTableMap.keySet();
|
||||
if (this.isInQuery && this.isPageQuery) {
|
||||
if ((wo.wp.PAGE_PAGESTART != -99 && wo.wp.PAGE_PAGERECORDNUM != -99) && (wo.wp.SORT_ORDERBYFIELD.length() > 0)) {
|
||||
if ((wo.wp.PAGE_PAGESTART != -99 && wo.wp.PAGE_PAGERECORDNUM != -99) ) {
|
||||
// String sqlTmp = "select * from("+wo.wp.sSQL+") TOTALRECORDVIEW order by " + wo.wp.SORT_ORDERBYFIELD + " limit "+wo.wp.PAGE_PAGESTART+","+wo.wp.PAGE_PAGERECORDNUM;
|
||||
String sqlTmp = wo.wp.sSQL + " order by " + wo.wp.SORT_ORDERBYFIELD + " limit " + wo.wp.PAGE_PAGESTART + "," + wo.wp.PAGE_PAGERECORDNUM;
|
||||
|
||||
if (StrUtil.isEmpty(wo.wp.SORT_ORDERBYFIELD)){
|
||||
sqlTmp = wo.wp.sSQL + " limit " + wo.wp.PAGE_PAGESTART + "," + wo.wp.PAGE_PAGERECORDNUM;
|
||||
|
||||
}
|
||||
|
||||
// String sqlTmp = "select * from (select PAGE_SRCRESULTSET_1.*, row_number() over(order by " + wo.wp.SORT_ORDERBYFIELD + ")"
|
||||
// + " as SORT_INDEXFIELDALIAS from ( "
|
||||
// + wo.wp.sSQL
|
||||
@@ -406,7 +412,7 @@ public class wqlSELECT extends IWQL {
|
||||
log.error("关闭st,rs出错" + e.toString());
|
||||
}
|
||||
}
|
||||
if (wo.wp.SORT_ORDERBYFIELD.length() > 0) {
|
||||
if (this.isPageQuery) {
|
||||
//对sql进行特殊处理,找出和第一个select配对的from,并把中间全部换为1
|
||||
// String page_sql = change_1(wo.wp.sSQL);
|
||||
String page_sql = wo.wp.sSQL;
|
||||
|
||||
Reference in New Issue
Block a user