我正在尝试创建一个 json 有效负载以在JD Edwards AIS REST 9.2 端点上进行过滤,但无法确定查询请求的日期格式。我遇到了这个,它将实际日期转换为 JDE 6 或 8 位日期,但日期和这些日期都没有在我的过滤器中工作,这是我请求的 Curl。
curl --location --request POST 'http://aisserver:port/jderest/v2/dataservice' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic replaceThisWithBasicAuthToken' \
--data-raw '{
"token": "replaceThisWithGetTokenValue",
"ssoEnabled" : false,
"aliasNaming" : true,
"showActionControls" : false,
"includeTimings" : false,
"allowCache" : true,
"forceUpdate" : false,
"setDirtyOnly" : false,
"nextPageTimeInterval" : 0,
"findOnEntry" : "TRUE",
"maxPageSize" : "1",
"returnControlIDs" : "F0101.AN8|F0101.ALPH|F0101.AT1|F0101.UPMJ",
"targetName" : "F0101",
"targetType" : "table",
"dataServiceType" : "BROWSE",
"enableNextPageProcessing" : true,
"nextPageTimeInterval1" : "10000",
"query" : {
"autoFind" : true,
"condition" : [ {
"value" : [ {
"content" : "0",
"specialValueId" : "LITERAL"
} ],
"controlId" : "F0101.UPMJ",
"operator" : "GREATER"
} ]
}
}'
以上为最后更新日期
如果我尝试使用返回数据中返回的这个字符串运行
"value" : [ {
"content" : "20190102",
"specialValueId" : "LITERAL"
} ],
"controlId" : "F0101.UPMJ",
"operator" : "GREATER"
或 E1 6 位日期
"value" : [ {
"content" : "25773480",
"specialValueId" : "LITERAL"
} ],
"controlId" : "F0101.UPMJ",
"operator" : "GREATER"
或 E1 8 位日期
"value" : [ {
"content" : "119002",
"specialValueId" : "LITERAL"
} ],
"controlId" : "F0101.UPMJ",
"operator" : "GREATER"
它返回以下错误
{
"sysErrors": [
{
"TITLE": "System could not execute the query due to invalid condition in the current selected query.",
"DESC": "ADVANCED QUERY ERROR."
}
]
}
我应该在 JD Edwards AIS 的 json 请求正文的条件区域中输入什么格式的日期才能对其进行格式化?