|
@@ -63,6 +63,7 @@ public class HanaOrderComponent {
|
|
|
"A.SPART,\t\n" +
|
|
|
"A.VKGRP,\t\n" +
|
|
|
"A.WERKS,\t\n" +
|
|
|
+ "C.NAME1 WERKS_NAME,\t\n" +
|
|
|
"A.AUART,\t\n" +
|
|
|
"A.ERDAT,\t\n" +
|
|
|
"A.ERDAT_P,\t\n" +
|
|
@@ -88,10 +89,9 @@ public class HanaOrderComponent {
|
|
|
"\t '"+DateUtils.dateTime()+"'),\n" +
|
|
|
"\t 'PLACEHOLDER' = ('$$IP_STATDATE$$',\n" +
|
|
|
"\t '"+DateUtils.getThreeMonthDate()+"')) A LEFT JOIN ERP.MARA B ON B.MATNR = A.MATNR \n" +
|
|
|
-// "\t where A.VTWEG IN ('D9','Y9') AND A.VKORG != '4000'\n" +
|
|
|
- "\t WHERE A.VTWEG = 'D9' AND A.SPART != '16' AND A.AUART NOT IN ('31','32','33','35','36','39') and A.ZCMGST !='信用通过' or (A.ZCMGST ='信用通过' and A.ABGRU='')\n" +
|
|
|
+ "\t LEFT JOIN ERP.T001W C ON C.WERKS = A.WERKS \n" +
|
|
|
+ "\t WHERE A.VTWEG = 'D9' AND A.SPART != '16' AND A.AUART NOT IN ('31','32','33','35','36','39') and (A.ZCMGST !='信用通过' or (A.ZCMGST ='信用通过' and A.ABGRU=''))\n" +
|
|
|
" order by A.VBELN,A.POSNR ");
|
|
|
-// " order by A.VBELN,A.POSNR limit 10000");
|
|
|
|
|
|
Long startTime = System.currentTimeMillis();
|
|
|
ResultSet rs = pstmt.executeQuery();
|
|
@@ -249,6 +249,7 @@ public class HanaOrderComponent {
|
|
|
+"?"+ result.getString("SPART")
|
|
|
+"?"+ result.getString("VKGRP")
|
|
|
+"?"+ result.getString("WERKS")
|
|
|
+ +"?"+ result.getString("WERKS_NAME")
|
|
|
+"?"+ result.getString("AUART")
|
|
|
+"?"+ result.getString("ERDAT")
|
|
|
+"?"+ result.getString("ERDAT_P")
|