升级到作曲家v20后,我无法进行这种处理。
这是我的CTO模型-
`transaction Saldo extends Transaction {
--> Cliente cliente
--> Recargador recargador
o Double acreditarSalso
o Double debitarSaldo
}`
这是ionic-app上的模型
`export class Saldo extends Transaction {
cliente: Cliente;
recargador: Recargador;
acreditarSaldo: number;
debitarSaldo: number;
}`
这是交易代码
`addSaldo (form: any): Promise<any> {
this.Transaction = {
$class: "org.abalazo.red.Saldo",
"cliente": this.clienteCedula,
"recargador": this.recargadorCedula,
"acreditarSaldo": this.acreditar,
"debitarSaldo": this.debitar,
};
return this.transBalanceService.transaccionSaldo(this.Transaction)
.toPromise()
.then((result) => {
this.errorMessage = null;
this.transactionId = result.transactionId;
})
.catch((error) => {
if (error == 'Server error') {
this.errorMessage = "Could not connect to REST server. Please check your configuration details";
}else{
this.errorMessage = error;
}
});
}`
它抛出此错误。请告知我我做错了什么:
transaction returned with failure: Error: Could not find any functions to execute for transaction org.abalazo.red.Saldo#5593c9c21299297d4aa8e85b800a7ca1b818807171f7f4b22aeae9d8f6803c28"