|
@@ -401,13 +401,13 @@ public class HanaOrderComponent {
|
|
|
public void hanaFreezeCustomer()throws Exception{
|
|
|
Connection con = this.getHanaConnection();
|
|
|
PreparedStatement pstmt = con.prepareStatement(" SELECT KUNNR, \n" +
|
|
|
- " VTWEG \n" +
|
|
|
+ " SPART \n" +
|
|
|
" FROM ERP.KNVV \n" +
|
|
|
" WHERE \n" +
|
|
|
" (SPART = (case when SPART='14' then '14' \n" +
|
|
|
" when SPART='15' then '15' \n" +
|
|
|
" else '16' end ) and (LIFSD IS NULL or LIFSD = '') AND VTWEG = 'D9'and VKORG = 'S200' and KVGR3 not in ('D03')) or (KVGR3 = 'D03' and (LIFSD IS NULL or LIFSD = '') AND VTWEG = 'D9' ) \n" +
|
|
|
- " group by \tKUNNR order by SPART asc ");
|
|
|
+ " group by KUNNR order by SPART asc ");
|
|
|
Long startTime = System.currentTimeMillis();
|
|
|
ResultSet rs = pstmt.executeQuery();
|
|
|
Long endTime = System.currentTimeMillis();
|
|
@@ -616,7 +616,7 @@ public class HanaOrderComponent {
|
|
|
|
|
|
fw.write(
|
|
|
result.getString("KUNNR")
|
|
|
- +"$$"+result.getString("VTWEG")
|
|
|
+ +"$$"+result.getString("SPART")
|
|
|
+"\r\n");
|
|
|
fw.flush();
|
|
|
i++;
|