Commit af7310ea by chongli

部分退款订单开票时要减去退款

parent de764df5
...@@ -62,6 +62,11 @@ public class OrderListBean { ...@@ -62,6 +62,11 @@ public class OrderListBean {
* 新加属性余额 * 新加属性余额
*/ */
private BigDecimal prePayCardAmount; private BigDecimal prePayCardAmount;
/**
* 退款金额
*/
private BigDecimal refundAmount;
/** /**
* 新加属性兑换卷 * 新加属性兑换卷
*/ */
...@@ -394,6 +399,13 @@ public class OrderListBean { ...@@ -394,6 +399,13 @@ public class OrderListBean {
this.insuranceAmount = insuranceAmount; this.insuranceAmount = insuranceAmount;
} }
public BigDecimal getRefundAmount() {
return refundAmount;
}
public void setRefundAmount(BigDecimal refundAmount) {
this.refundAmount = refundAmount;
}
} }
...@@ -179,6 +179,27 @@ public enum OrderStatusBitEnum { ...@@ -179,6 +179,27 @@ public enum OrderStatusBitEnum {
return value; return value;
} }
public static String getStatusDesc(int processStatus) {
StringBuffer sb = new StringBuffer("");
for (OrderStatusBitEnum orderStatusBitEnum : OrderStatusBitEnum.values()) {
if((processStatus&orderStatusBitEnum.getValue())==orderStatusBitEnum.getValue()){
sb.append(orderStatusBitEnum.getCname());
sb.append("-");
}
}
if(sb.length()>1){
return sb.substring(0, sb.length()-1).toString();
}else{
return sb.toString();
}
}
public static void main(String[] args) {
System.out.println(getStatusDesc(7444));
}
public int getValue() { public int getValue() {
return value; return value;
} }
......
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 sign in to comment