REQ-3502: 过滤流程按钮

This commit is contained in:
yanglin 2025-01-15 10:43:23 +08:00
parent fa38a6b514
commit 4397d62cd9
3 changed files with 5 additions and 5 deletions

View File

@ -25,7 +25,7 @@ public class CardExtInfo {
}
@NotNull
public JSONObject getExtInfo() {
public JSONObject getJsonObject() {
return extInfo;
}

View File

@ -185,7 +185,7 @@ class CardParser {
}
});
JSONObject extInfo = new CardExtInfo(card.getBizParam()).getExtInfo();
JSONObject extInfo = new CardExtInfo(card.getBizParam()).getJsonObject();
if (!extInfo.isEmpty())
bizBody.setExtInfo(extInfo);
return bizBody;

View File

@ -175,7 +175,7 @@ public class TodoSyncCardService {
return;
}
String identityCode = new CardExtInfo(message.getCardInfo().determineBizParam())
.getExtInfo().getString(TODO_IDENTITY_CODE_BIZ_PARAM_KEY);
.getJsonObject().getString(TODO_IDENTITY_CODE_BIZ_PARAM_KEY);
if (StringUtils.isBlank(identityCode)) {
log.warn("onCardPresetButtonPressed: identityCode is blank, message={}", message);
return;
@ -227,7 +227,7 @@ public class TodoSyncCardService {
if (bizParam == null)
return Optional.empty();
String category = new CardExtInfo(bizParam)
.getExtInfo().getString(TODO_CATEGORY_BIZ_PARAM_KEY);
.getJsonObject().getString(TODO_CATEGORY_BIZ_PARAM_KEY);
return CodeDefinition.findByCode(BizCategoryEnum.class, category);
}
@ -235,7 +235,7 @@ public class TodoSyncCardService {
if (bizParam == null)
return Optional.empty();
String identityCode = new CardExtInfo(bizParam)
.getExtInfo().getString(TODO_IDENTITY_CODE_BIZ_PARAM_KEY);
.getJsonObject().getString(TODO_IDENTITY_CODE_BIZ_PARAM_KEY);
return Optional.ofNullable(identityCode);
}