添加禁用前代码

master
bynt 8 months ago
parent fe18d614a0
commit 7a4486ed8d

@ -61,6 +61,10 @@ public class ChannelCustom implements Serializable {
@Column(name = "surplus_num")
private Integer surplusNum = 0;
@ApiModelProperty(value = "禁用前剩余数量")
@Column(name = "pre_disabled_num")
private Integer preDisabledNum = 0;
@ApiModelProperty(value = "用户状态 1 正常 2-待开通-3 禁用")
@Column(name = "status")
private Integer status;
@ -97,6 +101,10 @@ public class ChannelCustom implements Serializable {
@Column(name = "surplus_phone_bill")
private Integer surplusPhoneBill = 0;
@ApiModelProperty(value = "禁用前剩余数量")
@Column(name = "pre_surplus_phone_bill")
private Integer preSurplusPhoneNum = 0;
@ApiModelProperty(value = "子账号")
@Transient
private List<ChannelCustom> children;

@ -595,6 +595,9 @@ public class CustomManageServiceImpl implements CustomManageService {
custom.setSurplusPhoneBill(0);
custom.setTotalPhoneBill(0);
custom.setTotalNum(0);
// change params date 2024-1-11
custom.setPreDisabledNum(custom.getSurplusNum());
custom.setPreSurplusPhoneNum(custom.getSurplusPhoneBill());
channelCustoms.add(custom);
//代理商
if (custom.getType() == 1) {
@ -606,5 +609,4 @@ public class CustomManageServiceImpl implements CustomManageService {
}
}
}
}

Loading…
Cancel
Save