Commit e81baf3dfe71037aabf8aec7be428af9b52ccfd5
1 parent
3a0dd0c3
青浦电量接口添加供应商名称与供应商ID字段。
Showing
2 changed files
with
19 additions
and
0 deletions
src/main/java/com/bsth/entity/JdlReception.java
| ... | ... | @@ -62,6 +62,8 @@ public class JdlReception { |
| 62 | 62 | private String dateStr; |
| 63 | 63 | private Integer origin; |
| 64 | 64 | private Integer sumTime; |
| 65 | + private String operatorName; | |
| 66 | + private String operatorId; | |
| 65 | 67 | private String createBy; |
| 66 | 68 | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| 67 | 69 | private Date createDate; |
| ... | ... | @@ -190,6 +192,18 @@ public class JdlReception { |
| 190 | 192 | public void setSumTime(Integer sumTime) { |
| 191 | 193 | this.sumTime = sumTime; |
| 192 | 194 | } |
| 195 | + public String getOperatorName() { | |
| 196 | + return operatorName; | |
| 197 | + } | |
| 198 | + public void setOperatorName(String operatorName) { | |
| 199 | + this.operatorName = operatorName; | |
| 200 | + } | |
| 201 | + public String getOperatorId() { | |
| 202 | + return operatorId; | |
| 203 | + } | |
| 204 | + public void setOperatorId(String operatorId) { | |
| 205 | + this.operatorId = operatorId; | |
| 206 | + } | |
| 193 | 207 | public String getCreateBy() { |
| 194 | 208 | return createBy; |
| 195 | 209 | } | ... | ... |
src/main/java/com/bsth/server_rs/electric/ElectricService.java
| ... | ... | @@ -91,6 +91,11 @@ public class ElectricService { |
| 91 | 91 | jdlReception.setCardNo(body.getString("cardNo")); |
| 92 | 92 | jdlReception.setCarCode(body.getString("carCode")); |
| 93 | 93 | jdlReception.setCarPlate(body.getString("carPlate")); |
| 94 | + if(body.containsKey("operatorName")){ | |
| 95 | + jdlReception.setOperatorName(body.getString("operatorName")); | |
| 96 | + }if(body.containsKey("operatorId")){ | |
| 97 | + jdlReception.setOperatorName(body.getString("operatorId")); | |
| 98 | + } | |
| 94 | 99 | jdlReception.setOrigin(0); |
| 95 | 100 | jdlReception.setCreateBy("接口接入"); |
| 96 | 101 | jdlReception.setCreateDate(new Date()); | ... | ... |