REQ-3502: 过滤流程按钮
This commit is contained in:
parent
fa38a6b514
commit
4397d62cd9
@ -25,7 +25,7 @@ public class CardExtInfo {
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public JSONObject getExtInfo() {
|
||||
public JSONObject getJsonObject() {
|
||||
return extInfo;
|
||||
}
|
||||
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user