|
|
|
@ -1,5 +1,7 @@
|
|
|
|
|
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.param.FreightTemplateListParam;
|
|
|
|
|
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());
|
|
|
|
|
FreightTemplateListData data = DdRequestUtil.freightTemplateListDataRequest(param);
|
|
|
|
|
FreightTemplateListResponse response = request.execute(shopInfo.getShopAccessToken());
|
|
|
|
|
Map<String, Object> result = new HashMap<>();
|
|
|
|
|
result.put("data", data.getList());
|
|
|
|
|
result.put("total", data.getCount());
|
|
|
|
|
|
|
|
|
|
result.put("data", response.getData().getList());
|
|
|
|
|
result.put("total", response.getData().getList());
|
|
|
|
|
// ----结果返回----
|
|
|
|
|
return R.ok(Ret.success(result));
|
|
|
|
|
}
|
|
|
|
|