...
|
...
|
@@ -2,7 +2,9 @@ package com.sunyo.energy.location.model; |
|
|
|
|
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
|
|
|
|
|
import java.beans.SimpleBeanInfo;
|
|
|
import java.math.BigDecimal;
|
|
|
import java.text.SimpleDateFormat;
|
|
|
import java.util.Date;
|
|
|
|
|
|
public class PayRecords {
|
...
|
...
|
@@ -39,6 +41,14 @@ public class PayRecords { |
|
|
|
|
|
private String paytypeaddress;
|
|
|
|
|
|
private String stringType;
|
|
|
|
|
|
private String stringStatus;
|
|
|
|
|
|
private String stringReamke3;
|
|
|
|
|
|
private String stringDate;
|
|
|
|
|
|
public Integer getId() {
|
|
|
return id;
|
|
|
}
|
...
|
...
|
@@ -167,4 +177,52 @@ public class PayRecords { |
|
|
public void setPaytypeaddress(String paytypeaddress) {
|
|
|
this.paytypeaddress = paytypeaddress == null ? null : paytypeaddress.trim();
|
|
|
}
|
|
|
|
|
|
public String getStringType() {
|
|
|
if (getPaytype()){
|
|
|
return stringReamke3 = "电";
|
|
|
}else {
|
|
|
return stringReamke3 = "水";
|
|
|
}
|
|
|
}
|
|
|
|
|
|
public void setStringType(String stringType) {
|
|
|
this.stringType = stringType;
|
|
|
}
|
|
|
|
|
|
public String getStringStatus() {
|
|
|
if (getPaystatus()){
|
|
|
return stringReamke3 = "支付成功";
|
|
|
}else {
|
|
|
return stringReamke3 = "支付失败";
|
|
|
}
|
|
|
}
|
|
|
|
|
|
public void setStringStatus(String stringStatus) {
|
|
|
this.stringStatus = stringStatus;
|
|
|
}
|
|
|
|
|
|
public String getStringReamke3() {
|
|
|
if ("1".equals(getReamke3())){
|
|
|
return stringReamke3 = "充值成功";
|
|
|
}else {
|
|
|
return stringReamke3 = "充值失败";
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
public void setStringReamke3(String stringReamke3) {
|
|
|
this.stringReamke3 = stringReamke3;
|
|
|
}
|
|
|
|
|
|
public String getStringDate() {
|
|
|
Date paytime = getPaytime();
|
|
|
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
|
String format = simpleDateFormat.format(paytime);
|
|
|
return format;
|
|
|
}
|
|
|
|
|
|
public void setStringDate(String stringDate) {
|
|
|
this.stringDate = stringDate;
|
|
|
}
|
|
|
} |
|
|
\ No newline at end of file |
...
|
...
|
|