充电报文加入消息代码/帧编码
This commit is contained in:
parent
7424295932
commit
03abd1255f
@ -13,6 +13,7 @@ public class XhpcMessage extends BaseEntity {
|
|||||||
private String chargeOrderNo;
|
private String chargeOrderNo;
|
||||||
private String content;
|
private String content;
|
||||||
private Integer status;
|
private Integer status;
|
||||||
|
private String code;
|
||||||
|
|
||||||
public Long getMessageId() {
|
public Long getMessageId() {
|
||||||
|
|
||||||
@ -41,14 +42,30 @@ public class XhpcMessage extends BaseEntity {
|
|||||||
|
|
||||||
public void setContent(String content) {
|
public void setContent(String content) {
|
||||||
|
|
||||||
|
if (content != null && content.startsWith("68")) {
|
||||||
|
this.code = content.substring(10, 12);
|
||||||
|
}
|
||||||
this.content = content;
|
this.content = content;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Integer getStatus() {
|
public Integer getStatus() {
|
||||||
|
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setStatus(Integer status) {
|
public void setStatus(Integer status) {
|
||||||
|
|
||||||
this.status = status;
|
this.status = status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getCode() {
|
||||||
|
|
||||||
|
return code;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCode(String code) {
|
||||||
|
|
||||||
|
this.code = code;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -13,6 +13,7 @@
|
|||||||
<result property="updateTime" column="update_time"/>
|
<result property="updateTime" column="update_time"/>
|
||||||
<result property="updateBy" column="update_by"/>
|
<result property="updateBy" column="update_by"/>
|
||||||
<result property="remark" column="remark"/>
|
<result property="remark" column="remark"/>
|
||||||
|
<result property="code" column="code"/>
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
<insert id="insertItemsBy" parameterType="com.xhpc.pp.domain.XhpcMessage">
|
<insert id="insertItemsBy" parameterType="com.xhpc.pp.domain.XhpcMessage">
|
||||||
@ -22,6 +23,7 @@
|
|||||||
<if test="status != null and status != ''">status,</if>
|
<if test="status != null and status != ''">status,</if>
|
||||||
<if test="createBy != null and createBy != ''">create_by,</if>
|
<if test="createBy != null and createBy != ''">create_by,</if>
|
||||||
<if test="remark != null and remark != ''">remark,</if>
|
<if test="remark != null and remark != ''">remark,</if>
|
||||||
|
<if test="code != null and code != ''">code,</if>
|
||||||
<if test="updateBy != null and updateBy != ''">update_by,</if>
|
<if test="updateBy != null and updateBy != ''">update_by,</if>
|
||||||
create_time,
|
create_time,
|
||||||
update_time
|
update_time
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user