1
This commit is contained in:
@@ -322,6 +322,13 @@ public class CreditJudgmentDebtorController extends BaseController {
|
||||
return headerText.equals(value.trim());
|
||||
}
|
||||
|
||||
private static boolean hasMeaningfulPartyValue(String value) {
|
||||
if (ImportHelper.isBlank(value)) {
|
||||
return false;
|
||||
}
|
||||
return !"-".equals(value.trim());
|
||||
}
|
||||
|
||||
private CreditJudgmentDebtor convertImportParamToEntity(CreditJudgmentDebtorImportParam param) {
|
||||
CreditJudgmentDebtor entity = new CreditJudgmentDebtor();
|
||||
|
||||
@@ -333,13 +340,11 @@ public class CreditJudgmentDebtorController extends BaseController {
|
||||
}
|
||||
// Some upstream XLS templates store party/company name in "原告/上诉人/被告/第三人" columns.
|
||||
// When present, use them to populate the debtor "name" for compatibility.
|
||||
if (!ImportHelper.isBlank(param.getPlaintiffAppellant())) {
|
||||
if (hasMeaningfulPartyValue(param.getPlaintiffAppellant())) {
|
||||
debtorName = param.getPlaintiffAppellant().trim();
|
||||
}
|
||||
if (!ImportHelper.isBlank(param.getAppellee())) {
|
||||
} else if (hasMeaningfulPartyValue(param.getAppellee())) {
|
||||
debtorName = param.getAppellee().trim();
|
||||
}
|
||||
if (!ImportHelper.isBlank(param.getOtherPartiesThirdParty())) {
|
||||
} else if (hasMeaningfulPartyValue(param.getOtherPartiesThirdParty())) {
|
||||
debtorName = param.getOtherPartiesThirdParty().trim();
|
||||
}
|
||||
entity.setName(debtorName);
|
||||
|
||||
Reference in New Issue
Block a user