Commit e4e550bca523e613c77e3ccefebca0af92682610

Authored by 潘钊
1 parent f57c54e7

update...

src/main/java/com/bsth/server_ws/electric_oil/entity/ClsCDL.java
@@ -31,7 +31,7 @@ public class ClsCDL { @@ -31,7 +31,7 @@ public class ClsCDL {
31 /** 31 /**
32 * 充电量 32 * 充电量
33 */ 33 */
34 - private String cdl; 34 + private int cdl;
35 35
36 public String getYyrq() { 36 public String getYyrq() {
37 return yyrq; 37 return yyrq;
@@ -65,11 +65,11 @@ public class ClsCDL { @@ -65,11 +65,11 @@ public class ClsCDL {
65 this.jsyGh = jsyGh; 65 this.jsyGh = jsyGh;
66 } 66 }
67 67
68 - public String getCdl() { 68 + public int getCdl() {
69 return cdl; 69 return cdl;
70 } 70 }
71 71
72 - public void setCdl(String cdl) { 72 + public void setCdl(int cdl) {
73 this.cdl = cdl; 73 this.cdl = cdl;
74 } 74 }
75 } 75 }
src/main/java/com/bsth/server_ws/electric_oil/entity/Electric.java
@@ -57,7 +57,7 @@ public class Electric { @@ -57,7 +57,7 @@ public class Electric {
57 e.setRq(fmtyyyyMMdd.parseDateTime(clsCDL.getYyrq()).toDate()); 57 e.setRq(fmtyyyyMMdd.parseDateTime(clsCDL.getYyrq()).toDate());
58 e.setCreateDate(fmtyyyyMMddHHmmss.parseDateTime(clsCDL.getCreateRq()).toDate()); 58 e.setCreateDate(fmtyyyyMMddHHmmss.parseDateTime(clsCDL.getCreateRq()).toDate());
59 e.setNbbm(nbbm); 59 e.setNbbm(nbbm);
60 - e.setJdl(Double.parseDouble(clsCDL.getCdl())); 60 + e.setJdl(Double.parseDouble(String.valueOf(clsCDL.getCdl())));
61 }catch (Exception e){ 61 }catch (Exception e){
62 logger.error("异常数据;" + JSON.toJSONString(clsCDL)); 62 logger.error("异常数据;" + JSON.toJSONString(clsCDL));
63 } 63 }