|
@@ -4,6 +4,7 @@ import cn.muchinfo.rma.global.GlobalDataCollection
|
|
|
import cn.muchinfo.rma.global.database.DataBase
|
|
import cn.muchinfo.rma.global.database.DataBase
|
|
|
import cn.muchinfo.rma.view.autoWidget.utils.NumberUtils
|
|
import cn.muchinfo.rma.view.autoWidget.utils.NumberUtils
|
|
|
import cn.muchinfo.rma.view.base.app.Constant
|
|
import cn.muchinfo.rma.view.base.app.Constant
|
|
|
|
|
+import com.google.gson.annotations.SerializedName
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 资金账户信息
|
|
* 资金账户信息
|
|
@@ -61,56 +62,107 @@ import cn.muchinfo.rma.view.base.app.Constant
|
|
|
* @constructor
|
|
* @constructor
|
|
|
*/
|
|
*/
|
|
|
open class AccountData(
|
|
open class AccountData(
|
|
|
|
|
+ @SerializedName("accountflag")
|
|
|
val accountflag: Long = 0,//账户标识 - 0\1 (默认为0, 当上级账户与本账户的关联用户均为自己时更新为1)
|
|
val accountflag: Long = 0,//账户标识 - 0\1 (默认为0, 当上级账户与本账户的关联用户均为自己时更新为1)
|
|
|
|
|
+ @SerializedName("accountid")
|
|
|
val accountid: Long = 0,//资金账户ID
|
|
val accountid: Long = 0,//资金账户ID
|
|
|
|
|
+ @SerializedName("accountname")
|
|
|
val accountname: String = "",//账户名称
|
|
val accountname: String = "",//账户名称
|
|
|
|
|
+ @SerializedName("balance")
|
|
|
val balance: Double = 0.0,//期初余额
|
|
val balance: Double = 0.0,//期初余额
|
|
|
|
|
+ @SerializedName("capitalbalance")
|
|
|
val capitalbalance: Double = 0.0,//本金余额[外部子账户实际出入金余额]
|
|
val capitalbalance: Double = 0.0,//本金余额[外部子账户实际出入金余额]
|
|
|
|
|
+ @SerializedName("changeflag")
|
|
|
val changeflag: Long = 0,//变动标志(当前账户资金有任何变动更新为1系统结算时更新0;供清算时使用) 0:无变动 1:有变动
|
|
val changeflag: Long = 0,//变动标志(当前账户资金有任何变动更新为1系统结算时更新0;供清算时使用) 0:无变动 1:有变动
|
|
|
|
|
+ @SerializedName("changetime")
|
|
|
val changetime: String = "",//账户状态变更时间
|
|
val changetime: String = "",//账户状态变更时间
|
|
|
|
|
+ @SerializedName("closepl")
|
|
|
val closepl: Double = 0.0,//今日平仓盈亏
|
|
val closepl: Double = 0.0,//今日平仓盈亏
|
|
|
|
|
+ @SerializedName("creditdecrease")
|
|
|
val creditdecrease: Double = 0.0,//今日授信减少
|
|
val creditdecrease: Double = 0.0,//今日授信减少
|
|
|
|
|
+ @SerializedName("creditincrease")
|
|
|
val creditincrease: Double = 0.0,//今日授信增加
|
|
val creditincrease: Double = 0.0,//今日授信增加
|
|
|
|
|
+ @SerializedName("currencyid")
|
|
|
val currencyid: Int = 0,//货币ID
|
|
val currencyid: Int = 0,//货币ID
|
|
|
|
|
+ @SerializedName("currentbalance")
|
|
|
val currentbalance: Double = 0.0,//期末余额
|
|
val currentbalance: Double = 0.0,//期末余额
|
|
|
|
|
+ @SerializedName("freezecharge")
|
|
|
val freezecharge: Double = 0.0,//手续费冻结
|
|
val freezecharge: Double = 0.0,//手续费冻结
|
|
|
|
|
+ @SerializedName("freezemargin")
|
|
|
val freezemargin: Double = 0.0,//冻结保证金
|
|
val freezemargin: Double = 0.0,//冻结保证金
|
|
|
|
|
+ @SerializedName("fromaccountid")
|
|
|
val fromaccountid: Long = 0,//所属上级账户
|
|
val fromaccountid: Long = 0,//所属上级账户
|
|
|
|
|
+ @SerializedName("inamount")
|
|
|
val inamount: Double = 0.0,//今日入金金额(包括三方入金)
|
|
val inamount: Double = 0.0,//今日入金金额(包括三方入金)
|
|
|
|
|
+ @SerializedName("ismain")
|
|
|
val ismain: Int = 0,//是否母账号 0:不是母账户 1:是母账户
|
|
val ismain: Int = 0,//是否母账号 0:不是母账户 1:是母账户
|
|
|
|
|
+ @SerializedName("ismarketaccount")
|
|
|
val ismarketaccount: Long = 0,//是否机构接单账号 0:不是 1:是
|
|
val ismarketaccount: Long = 0,//是否机构接单账号 0:不是 1:是
|
|
|
|
|
+ @SerializedName("isreckonaccount")
|
|
|
val isreckonaccount: Long = 0,//是否机构分润账号 0:不是 1:是
|
|
val isreckonaccount: Long = 0,//是否机构分润账号 0:不是 1:是
|
|
|
|
|
+ @SerializedName("mortgagecredit")
|
|
|
val mortgagecredit: Double = 0.0,//授信金额
|
|
val mortgagecredit: Double = 0.0,//授信金额
|
|
|
|
|
+ @SerializedName("orifreezecharge")
|
|
|
val orifreezecharge: Double = 0.0,//期初手续费冻结
|
|
val orifreezecharge: Double = 0.0,//期初手续费冻结
|
|
|
|
|
+ @SerializedName("orifreezemargin")
|
|
|
val orifreezemargin: Double = 0.0,//期初冻结保证金
|
|
val orifreezemargin: Double = 0.0,//期初冻结保证金
|
|
|
|
|
+ @SerializedName("orimortgagecredit")
|
|
|
val orimortgagecredit: Double = 0.0,//期初授信金额
|
|
val orimortgagecredit: Double = 0.0,//期初授信金额
|
|
|
|
|
+ @SerializedName("oriothercredit")
|
|
|
val oriothercredit: Double = 0.0,//期初其它授信金额
|
|
val oriothercredit: Double = 0.0,//期初其它授信金额
|
|
|
|
|
+ @SerializedName("oriotherfreezemargin")
|
|
|
val oriotherfreezemargin: Double = 0.0,//期初其他冻结保证金(出金冻结资金 交割买方冻结 申购冻结 全款买入 商城买入)
|
|
val oriotherfreezemargin: Double = 0.0,//期初其他冻结保证金(出金冻结资金 交割买方冻结 申购冻结 全款买入 商城买入)
|
|
|
|
|
+ @SerializedName("orioutamountfreeze")
|
|
|
val orioutamountfreeze: Double = 0.0,//期初出金冻结
|
|
val orioutamountfreeze: Double = 0.0,//期初出金冻结
|
|
|
|
|
+ @SerializedName("oriusedmargin")
|
|
|
val oriusedmargin: Double = 0.0,//期初占用保证金
|
|
val oriusedmargin: Double = 0.0,//期初占用保证金
|
|
|
|
|
+ @SerializedName("othercredit")
|
|
|
val othercredit: Double = 0.0,//其它授信金额
|
|
val othercredit: Double = 0.0,//其它授信金额
|
|
|
|
|
+ @SerializedName("othercreditdecrease")
|
|
|
val othercreditdecrease: Double = 0.0,//今日其它授信减少
|
|
val othercreditdecrease: Double = 0.0,//今日其它授信减少
|
|
|
|
|
+ @SerializedName("othercreditincrease")
|
|
|
val othercreditincrease: Double = 0.0,//今日其它授信增加
|
|
val othercreditincrease: Double = 0.0,//今日其它授信增加
|
|
|
|
|
+ @SerializedName("otherfreezemargin")
|
|
|
val otherfreezemargin: Double = 0.0,//其他冻结保证金(交割买方冻结 申购冻结 全款买入 商城买入)
|
|
val otherfreezemargin: Double = 0.0,//其他冻结保证金(交割买方冻结 申购冻结 全款买入 商城买入)
|
|
|
|
|
+ @SerializedName("otherincome")
|
|
|
val otherincome: Double = 0.0,//其他收入(交割收款 申购收款 全款卖出 商城卖出 买家退货 会员手续费收入)
|
|
val otherincome: Double = 0.0,//其他收入(交割收款 申购收款 全款卖出 商城卖出 买家退货 会员手续费收入)
|
|
|
|
|
+ @SerializedName("otherpay")
|
|
|
val otherpay: Double = 0.0,//其他支出(交割付款 申购付款 全款买入 商城买入 卖家退货)
|
|
val otherpay: Double = 0.0,//其他支出(交割付款 申购付款 全款买入 商城买入 卖家退货)
|
|
|
|
|
+ @SerializedName("outamount")
|
|
|
val outamount: Double = 0.0,//今日出金金额(包括三方出金)
|
|
val outamount: Double = 0.0,//今日出金金额(包括三方出金)
|
|
|
|
|
+ @SerializedName("outamountfreeze")
|
|
|
val outamountfreeze: Double = 0.0,//出金冻结
|
|
val outamountfreeze: Double = 0.0,//出金冻结
|
|
|
|
|
+ @SerializedName("outthreshold")
|
|
|
val outthreshold: Double = 0.0,//出金阈值
|
|
val outthreshold: Double = 0.0,//出金阈值
|
|
|
|
|
+ @SerializedName("parentaccountid")
|
|
|
val parentaccountid: Long = 0,//所属根账号
|
|
val parentaccountid: Long = 0,//所属根账号
|
|
|
|
|
+ @SerializedName("paycharge")
|
|
|
val paycharge: Double = 0.0,//今日手续费支出
|
|
val paycharge: Double = 0.0,//今日手续费支出
|
|
|
|
|
+ @SerializedName("relatedaccountstatus")
|
|
|
val relatedaccountstatus: Long = 0,//关联用户交易权限状态 - 1:正常(可交易) 2:受限(可平仓,不可建仓) 3:冻结(不可交易)
|
|
val relatedaccountstatus: Long = 0,//关联用户交易权限状态 - 1:正常(可交易) 2:受限(可平仓,不可建仓) 3:冻结(不可交易)
|
|
|
|
|
+ @SerializedName("relateduserid")
|
|
|
val relateduserid: Long = 0,//关联用户
|
|
val relateduserid: Long = 0,//关联用户
|
|
|
|
|
+ @SerializedName("serivcegroup")
|
|
|
val serivcegroup: Long = 0,//服务分组
|
|
val serivcegroup: Long = 0,//服务分组
|
|
|
|
|
+ @SerializedName("signstatus")
|
|
|
val signstatus: Long = 0,//签约状态 - 1:未签约 2:签约待审核 3:签约中 4:已签约 5:解约待审核 6:解约中 7:已解约 8:已解绑 9:绑卡中
|
|
val signstatus: Long = 0,//签约状态 - 1:未签约 2:签约待审核 3:签约中 4:已签约 5:解约待审核 6:解约中 7:已解约 8:已解绑 9:绑卡中
|
|
|
|
|
+ @SerializedName("sublevelpath")
|
|
|
val sublevelpath: String = "",//账号层级路径(逗号分隔,首尾加逗号)
|
|
val sublevelpath: String = "",//账号层级路径(逗号分隔,首尾加逗号)
|
|
|
|
|
+ @SerializedName("taaccounttype")
|
|
|
val taaccounttype: Long = 0,//账号类型 - 1:外部账号 2:内部账号 3:内部做市自营账号 4:内部做市接单账号
|
|
val taaccounttype: Long = 0,//账号类型 - 1:外部账号 2:内部账号 3:内部做市自营账号 4:内部做市接单账号
|
|
|
|
|
+ @SerializedName("thirdinamount")
|
|
|
val thirdinamount: Double = 0.0,//今日三方入金
|
|
val thirdinamount: Double = 0.0,//今日三方入金
|
|
|
|
|
+ @SerializedName("thirdoutamount")
|
|
|
val thirdoutamount: Double = 0.0,//今日三方出金
|
|
val thirdoutamount: Double = 0.0,//今日三方出金
|
|
|
|
|
+ @SerializedName("tradestatus")
|
|
|
val tradestatus: Long = 0,//交易状态 - 1:正常 2:受限 3:冻结 4:禁止建仓(人工受限) 5:禁止交易(人工冻结) 6:待激活 7:已注销
|
|
val tradestatus: Long = 0,//交易状态 - 1:正常 2:受限 3:冻结 4:禁止建仓(人工受限) 5:禁止交易(人工冻结) 6:待激活 7:已注销
|
|
|
|
|
+ @SerializedName("tradestatuschangetime")
|
|
|
val tradestatuschangetime: String = "",//激活时间
|
|
val tradestatuschangetime: String = "",//激活时间
|
|
|
|
|
+ @SerializedName("transferamount")
|
|
|
val transferamount: Double = 0.0,//今日划转金额(母子账号资金划转,从划入账号为正,从账号划出为负)
|
|
val transferamount: Double = 0.0,//今日划转金额(母子账号资金划转,从划入账号为正,从账号划出为负)
|
|
|
|
|
+ @SerializedName("usedmargin")
|
|
|
val usedmargin: Double = 0.0,//占用保证金
|
|
val usedmargin: Double = 0.0,//占用保证金
|
|
|
|
|
+ @SerializedName("userid")
|
|
|
val userid: Long = 0,//用户ID
|
|
val userid: Long = 0,//用户ID
|
|
|
|
|
|
|
|
var close_watch_profit_and_loss: Double = 0.0, //平仓盯市盈亏 7.5
|
|
var close_watch_profit_and_loss: Double = 0.0, //平仓盯市盈亏 7.5
|