Browse Source

alter stroke strategy

lloyd 3 years ago
parent
commit
78229401bf

+ 2 - 2
src/main/java/com/gct/tools/etlcamelhuge/routeconfig/CamelJDBCConfiguration.java

@@ -381,7 +381,7 @@ public class CamelJDBCConfiguration /*extends RouteBuilder */ {
381
                         aRow.put("frequency",frequency);
381
                         aRow.put("frequency",frequency);
382
                     }
382
                     }
383
                     if (aRow.get("stroke") != null){
383
                     if (aRow.get("stroke") != null){
384
-                        double stroke1 = Double.parseDouble(aRow.get("stroke").toString())/10;
384
+                        double stroke1 = Double.parseDouble(aRow.get("stroke").toString());
385
                         BigDecimal bd=new BigDecimal(stroke1);
385
                         BigDecimal bd=new BigDecimal(stroke1);
386
                         double stroke=bd.setScale(1,BigDecimal.ROUND_HALF_UP).doubleValue();
386
                         double stroke=bd.setScale(1,BigDecimal.ROUND_HALF_UP).doubleValue();
387
                         aRow.put("stroke",stroke);
387
                         aRow.put("stroke",stroke);
@@ -423,7 +423,7 @@ public class CamelJDBCConfiguration /*extends RouteBuilder */ {
423
                     Message in = exchange.getIn();
423
                     Message in = exchange.getIn();
424
                     HashMap<String, Object> aRow = in.getBody(HashMap.class);
424
                     HashMap<String, Object> aRow = in.getBody(HashMap.class);
425
                     if (aRow.get("stroke_length")!=null && aRow.get("stroke_frequency")!=null){
425
                     if (aRow.get("stroke_length")!=null && aRow.get("stroke_frequency")!=null){
426
-                        double stroke_length=Double.parseDouble(aRow.get("stroke_length").toString())/10;
426
+                        double stroke_length=Double.parseDouble(aRow.get("stroke_length").toString());
427
                         double stroke_frequency=Double.parseDouble(aRow.get("stroke_frequency").toString());
427
                         double stroke_frequency=Double.parseDouble(aRow.get("stroke_frequency").toString());
428
                         BigDecimal bd=new BigDecimal(stroke_length);
428
                         BigDecimal bd=new BigDecimal(stroke_length);
429
                         double stroke_lengt1=bd.setScale(1,BigDecimal.ROUND_HALF_UP).doubleValue();
429
                         double stroke_lengt1=bd.setScale(1,BigDecimal.ROUND_HALF_UP).doubleValue();