|
@@ -381,7 +381,7 @@ public class TransDetailApiPlugin implements Serializable {
|
|
if(StringUtils.isEmpty(casBillID)){
|
|
if(StringUtils.isEmpty(casBillID)){
|
|
errMsg.append("付款单ID为空;");
|
|
errMsg.append("付款单ID为空;");
|
|
}else {
|
|
}else {
|
|
- String billid = extractBillID(casBillID);
|
|
|
|
|
|
+ String billid = casBillID;
|
|
//获取 付款单号
|
|
//获取 付款单号
|
|
QFilter qFilter = new QFilter("id", QCP.equals, billid);
|
|
QFilter qFilter = new QFilter("id", QCP.equals, billid);
|
|
paybillDyn = BusinessDataServiceHelper.loadSingle("cas_paybill", new QFilter[]{qFilter});
|
|
paybillDyn = BusinessDataServiceHelper.loadSingle("cas_paybill", new QFilter[]{qFilter});
|
|
@@ -524,14 +524,14 @@ public class TransDetailApiPlugin implements Serializable {
|
|
// Extract the substring after the last slash
|
|
// Extract the substring after the last slash
|
|
return address.substring(lastSlashIndex + 1);
|
|
return address.substring(lastSlashIndex + 1);
|
|
}
|
|
}
|
|
- public static String extractBillID(String address) {
|
|
|
|
|
|
+ public static String extractBillID(String billid) {
|
|
// Find the last slash in the URL
|
|
// Find the last slash in the URL
|
|
- int lastSlashIndex = address.lastIndexOf('-');
|
|
|
|
|
|
+ int lastSlashIndex = billid.lastIndexOf('-');
|
|
if (lastSlashIndex == -1) {
|
|
if (lastSlashIndex == -1) {
|
|
- return null; // No slash found, invalid URL
|
|
|
|
|
|
+ return billid; // No slash found, invalid URL
|
|
}
|
|
}
|
|
// Extract the substring after the last slash
|
|
// Extract the substring after the last slash
|
|
- return address.substring(lastSlashIndex + 1);
|
|
|
|
|
|
+ return billid.substring(lastSlashIndex + 1);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|