|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
跪求大神解答
源码:
function TOnlineOrderRecordServiceImpl.GetList(OrderNo, OrderStatus,
OrderTimeBegin, OrderTimeEnd, UserMobile, GoodsCodeOrName, DeliveryType,
ReceiverName: String; out Data: IJSONObject): IOkMsg;
var
APrefix,ATempStr,URL:String;
AOKMsg:IOkMsg;
AJson,rsp:IJSONObject;
begin
Data:=nil;
APrefix:='查询订单分页列表(POS)';
ATempStr:='GetList';
Result:=TOkMsg.Create(False,APrefix+'请求异常');
URL:='StoreCode=' + xt_URLEncode.ParamEncode(AppOption.Get(SYS_STORECODE).AsString) ;
if not OrderNo.IsEmpty then
URL:=URL + '&OrderNo='+xt_URLEncode.ParamEncode(OrderNo);
if not OrderStatus.IsEmpty then
URL:=URL + '&OrderStatus='+xt_URLEncode.ParamEncode(OrderStatus);
if not OrderTimeBegin.IsEmpty then
URL:=URL + '&OrderTimeBegin='+xt_URLEncode.ParamEncode(OrderTimeBegin);
if not OrderTimeEnd.IsEmpty then
URL:=URL + '&OrderTimeEnd='+xt_URLEncode.ParamEncode(OrderTimeEnd);
if not UserMobile.IsEmpty then
URL:=URL + '&UserMobile='+xt_URLEncode.ParamEncode(UserMobile);
if not GoodsCodeOrName.IsEmpty then
URL:=URL + '&GoodsCodeOrName='+xt_URLEncode.ParamEncode(GoodsCodeOrName);
if not DeliveryType.IsEmpty then
URL:=URL + '&DeliveryType='+xt_URLEncode.ParamEncode(DeliveryType);
if not ReceiverName.IsEmpty then
URL:=URL + '&ReceiveUserName='+xt_URLEncode.ParamEncode(ReceiverName);
URL:=URL+'&SkipCount=0'+
'&MaxResultCount=50';
AJson:=TCMJSONObject.Create;
Messager.Debug('%s::%s请求URL...[%s]',[ATempStr,APrefix,URL]);
AOKMsg:=self.doRequest(APrefix,'GET' ,'/str/api/StoreSaleOrder/GetPageListForPos?' + URL,AJson.ToJSONData,rsp);
if not AOKMsg.IsOK then
begin
Result:=TOkMsg.Create(False,AOKMsg.GetMsg);
exit;
end;
Result:=TOkMsg.Create(True,AOKMsg.GetMsg);
Data:=rsp.OfferJSONObject('data');
end;
日志
[2024-08-04 09:27:16.463 Debug][25020] TOnlineOrderRecordServiceImpl:GetList::查询订单分页列表(POS)请求URL...[StoreCode=101001&OrderStatus=99&OrderTimeBegin=2024%2D07%2D04%2000%3A00%3A00&OrderTimeEnd=2024%2D08%2D04%2023%3A59%3A59&SkipCount=0&MaxResultCount=50]
[2024-08-04 09:27:16.463 Debug][25020] TOnlineOrderRecordServiceImpl:--doRequest:/mall/api/Order/Pages/Pos?StoreCode=101001&OrderStatus=99&OrderTimeBegin=2024%2D07%2D04%2000%3A00%3A00&OrderTimeEnd=2024%2D08%2D04%2023%3A59%3A59&SkipCount=0&MaxResultCount=50 req:{} |
|