我正在编写一个智能卡应用程序,并在成功选择带有AID的应用程序后,发送获取处理选项
我得到6E 00作为响应 - 无效的CLA命令.这是发送命令并接收响应的代码的一部分:
ResponseAPDU rapdu = sendCommand(new byte[]{(byte)0x80, (byte)0xA8, (byte)0x00, (byte)0x00, (byte)0x02, (byte)0x83, (byte)0x00, (byte)0x00});
private ResponseAPDU sendCommand(byte[] apdu) throws CardException{
CommandAPDU capdu = new CommandAPDU(apdu);
ResponseAPDU rpd = channel.transmit(capdu);
return rpd;
}
Run Code Online (Sandbox Code Playgroud)
我正在使用相同的命令使用Jaccal库读取卡片并且它工作正常,但由于它使用了外部dll文件,因此jaccal不适合我的应用程序.我不知道为什么它会给我这种回应.
我有数据库中的这些示例记录,这是按查询分组的结果:
[
{
"name": "Troy",
"acct": 1123,
"type": " Savings",
"total": 50
},
{
"name": "Larry",
"acct": 4233,
"type": " Savings",
"total": 200
},
{
"name": "Troy",
"acct": 1123,
"type": " Current",
"total": 120
},
{
"name": "Larry",
"acct": 4233,
"type": " Current",
"total": 220
}
]
Run Code Online (Sandbox Code Playgroud)
现在,我需要创建一个如下所示的报告:
[
{
"name": "Troy",
"acct": 1123,
"totalSavings": 50,
"totalCurrent": 120
},
{
"name": "Larry",
"acct": 4233,
"totalSavings": 200,
"totalCurrent": 220
}
]
Run Code Online (Sandbox Code Playgroud)
。
public class DbTrans {
private String name;
private String …Run Code Online (Sandbox Code Playgroud) 我$V{REPORT_COUNT}在JasperReports中使用打印序列号,效果很好.但是,当我按字段分组并在新页面上启动每个组时,序列号仍会在组中继续.
我需要$V{REPORT_COUNT}为每个组重置此变量.
谢谢.