wangchaoxu 1 year ago
commit 39876ff6a8

@ -1,5 +1,7 @@
package com.ms.api.spi.move; package com.ms.api.spi.move;
import com.doudian.open.api.freightTemplate_list.FreightTemplateListRequest;
import com.doudian.open.api.freightTemplate_list.FreightTemplateListResponse;
import com.doudian.open.api.freightTemplate_list.data.FreightTemplateListData; import com.doudian.open.api.freightTemplate_list.data.FreightTemplateListData;
import com.doudian.open.api.freightTemplate_list.param.FreightTemplateListParam; import com.doudian.open.api.freightTemplate_list.param.FreightTemplateListParam;
import com.jinritemai.cloud.base.api.BaseRequest; import com.jinritemai.cloud.base.api.BaseRequest;
@ -31,13 +33,13 @@ public class GetFreightTemplateList extends SPIBaseService implements ExtensionS
// ----逻辑校验---- // ----逻辑校验----
// ----业务处理---- // ----业务处理----
FreightTemplateListParam param = new FreightTemplateListParam(); FreightTemplateListRequest request = new FreightTemplateListRequest();
FreightTemplateListParam param = request.getParam();
param.setSize(fields.getSize()); param.setSize(fields.getSize());
FreightTemplateListData data = DdRequestUtil.freightTemplateListDataRequest(param); FreightTemplateListResponse response = request.execute(shopInfo.getShopAccessToken());
Map<String, Object> result = new HashMap<>(); Map<String, Object> result = new HashMap<>();
result.put("data", data.getList()); result.put("data", response.getData().getList());
result.put("total", data.getCount()); result.put("total", response.getData().getList());
// ----结果返回---- // ----结果返回----
return R.ok(Ret.success(result)); return R.ok(Ret.success(result));
} }

Loading…
Cancel
Save