Commit e4e550bca523e613c77e3ccefebca0af92682610
1 parent
f57c54e7
update...
Showing
2 changed files
with
4 additions
and
4 deletions
src/main/java/com/bsth/server_ws/electric_oil/entity/ClsCDL.java
| ... | ... | @@ -31,7 +31,7 @@ public class ClsCDL { |
| 31 | 31 | /** |
| 32 | 32 | * 充电量 |
| 33 | 33 | */ |
| 34 | - private String cdl; | |
| 34 | + private int cdl; | |
| 35 | 35 | |
| 36 | 36 | public String getYyrq() { |
| 37 | 37 | return yyrq; |
| ... | ... | @@ -65,11 +65,11 @@ public class ClsCDL { |
| 65 | 65 | this.jsyGh = jsyGh; |
| 66 | 66 | } |
| 67 | 67 | |
| 68 | - public String getCdl() { | |
| 68 | + public int getCdl() { | |
| 69 | 69 | return cdl; |
| 70 | 70 | } |
| 71 | 71 | |
| 72 | - public void setCdl(String cdl) { | |
| 72 | + public void setCdl(int cdl) { | |
| 73 | 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 | 57 | e.setRq(fmtyyyyMMdd.parseDateTime(clsCDL.getYyrq()).toDate()); |
| 58 | 58 | e.setCreateDate(fmtyyyyMMddHHmmss.parseDateTime(clsCDL.getCreateRq()).toDate()); |
| 59 | 59 | e.setNbbm(nbbm); |
| 60 | - e.setJdl(Double.parseDouble(clsCDL.getCdl())); | |
| 60 | + e.setJdl(Double.parseDouble(String.valueOf(clsCDL.getCdl()))); | |
| 61 | 61 | }catch (Exception e){ |
| 62 | 62 | logger.error("异常数据;" + JSON.toJSONString(clsCDL)); |
| 63 | 63 | } | ... | ... |