Commit 15e10d4e by guojuxing

财务管理订购详情修改

parent 3eb80e9b
......@@ -90,7 +90,19 @@ public class ServiceInfoVO implements Serializable{
}
JSONObject jsonObject = JSONObject.parseObject(skuInfo);
JSONObject period = jsonObject.getJSONObject("period");
return period.get("effect_time") + (String) period.get("name");
Integer unitNum = (Integer) period.get("effect_time_unit");
String unit = "";
if (unitNum != null) {
unit = unitNum.toString();
}
if ("3".equals(unit)) {
unit = "年";
} else if("2".equals(unit)) {
unit = "月";
} else {
unit = "天";
}
return period.get("effect_time") + unit;
}
public String getServeInfo() {
......
......@@ -332,16 +332,16 @@ public class TransferApprovalServiceVO implements Serializable{
public String getRelationOrderTypeStr() {
//1购买 2续费 3升级 4扩容
if (orderType == null) {
if (relationOrderType == null) {
return "--";
}
if (orderType.intValue() == 1) {
if (relationOrderType.intValue() == 1) {
return "服务开通";
} else if (orderType.intValue() == 2) {
} else if (relationOrderType.intValue() == 2) {
return "服务续费";
} else if (orderType.intValue() == 3) {
} else if (relationOrderType.intValue() == 3) {
return "版本升级";
} else if (orderType.intValue() == 4) {
} else if (relationOrderType.intValue() == 4) {
return "license扩容";
}
return "未知";
......
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