|
@@ -397,6 +397,20 @@ public class HanaOrderComponent {
|
|
|
return j;
|
|
return j;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ /**HANA已复核线下月底手动过账的交货单仍需自提同步*/
|
|
|
|
|
+ public void hanaSelfReviewedDeliverOrderSync() throws Exception {
|
|
|
|
|
+ Connection con = this.getHanaConnection();
|
|
|
|
|
+ PreparedStatement pstmt = con.prepareStatement("SELECT MANDT,VBELN,DATUM from ERP.ZSDT_POST_IN_ADV where DATUM >= TO_CHAR(add_months(CURRENT_DATE ,-3),'YYYYMMDD')and DATUM<= TO_CHAR(CURRENT_DATE,'YYYYMMDD')");
|
|
|
|
|
+
|
|
|
|
|
+ Long startTime = System.currentTimeMillis();
|
|
|
|
|
+ ResultSet rs = pstmt.executeQuery();
|
|
|
|
|
+ Long endTime = System.currentTimeMillis();
|
|
|
|
|
+ log.info("DeliverOrder查询用时:" + (endTime - startTime)+"毫秒");
|
|
|
|
|
+ this.createSelfReviewedDeliverOrderTxt(rs);
|
|
|
|
|
+ this.runLoadSelfReviewedDeliverOrder();
|
|
|
|
|
+ this.closeConnection(con, pstmt);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
public void hanaDeliverOrderSync() throws Exception {
|
|
public void hanaDeliverOrderSync() throws Exception {
|
|
|
Connection con = this.getHanaConnection();
|
|
Connection con = this.getHanaConnection();
|
|
|
PreparedStatement pstmt = con.prepareStatement("SELECT\n" +
|
|
PreparedStatement pstmt = con.prepareStatement("SELECT\n" +
|