Commit 105ded9a by 吕明尚

增加收支枚举

parent eec69701
...@@ -2,18 +2,21 @@ package share.common.enums; ...@@ -2,18 +2,21 @@ package share.common.enums;
public enum SignEnum { public enum SignEnum {
//+,- //+,-
STRAINHT(1, "+"), STRAINHT(1, "收入", "income"),
BURDEN(2, "-"), BURDEN(2, "支出", "expenditure"),
; ;
private Integer code; private Integer code;
private String name;
private String value; private String value;
SignEnum() { SignEnum() {
} }
SignEnum(Integer code, String value) {
SignEnum(Integer code, String name, String value) {
this.code = code; this.code = code;
this.name = name;
this.value = value; this.value = value;
} }
...@@ -32,4 +35,12 @@ public enum SignEnum { ...@@ -32,4 +35,12 @@ public enum SignEnum {
public void setValue(String value) { public void setValue(String value) {
this.value = value; this.value = value;
} }
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
} }
...@@ -43,6 +43,9 @@ public class SConsumptionRecords extends BaseEntity ...@@ -43,6 +43,9 @@ public class SConsumptionRecords extends BaseEntity
*/ */
private String payType; private String payType;
/**
* 收入(正),支出(负)号
*/
private String sign; private String sign;
public void setId(Long id) public void setId(Long id)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment