|
@@ -7,6 +7,7 @@ import com.kmall.admin.service.ProductStoreRelaService;
|
|
|
import com.kmall.admin.service.StoreTransferInventoryOrderDetailService;
|
|
|
import com.kmall.admin.service.StoreTransferInventoryOrderService;
|
|
|
import com.kmall.admin.service.oms2kmall.Oms2KmallService;
|
|
|
+import com.kmall.admin.utils.jackson.JacksonUtil;
|
|
|
import com.kmall.admin.utils.oms.response.TransferResponse;
|
|
|
import com.kmall.common.constant.Dict;
|
|
|
import com.kmall.common.utils.R;
|
|
@@ -17,7 +18,9 @@ import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
+import java.util.HashMap;
|
|
|
import java.util.List;
|
|
|
+import java.util.Map;
|
|
|
|
|
|
/**
|
|
|
* @author zhangchuangbiao
|
|
@@ -63,7 +66,24 @@ public class Oms2KmallServiceImpl implements Oms2KmallService {
|
|
|
storeTransferInventoryOrder.setStatus(1);
|
|
|
storeTransferInventoryOrderService.update(storeTransferInventoryOrder);
|
|
|
|
|
|
- return R.ok("处理成功,转移单编号:"+merchTransDocSn);
|
|
|
+
|
|
|
+ Map<String,String> resultData = new HashMap<>();
|
|
|
+ resultData.put("merchTransDocSn",wayBillResponse.getMerchTransDocSn()+"");
|
|
|
+ resultData.put("rollOutShopId",wayBillResponse.getRollOutShopId());
|
|
|
+ resultData.put("rollInShopId",wayBillResponse.getRollInShopId());
|
|
|
+ resultData.put("shopNotiId",wayBillResponse.getRollInShopId());
|
|
|
+ resultData.put("merchId",wayBillResponse.getRollInShopId());
|
|
|
+
|
|
|
+ List<Map<String,String>> resultList = new ArrayList<>();
|
|
|
+ resultList.add(resultData);
|
|
|
+ Map<String,Object> data = new HashMap<>();
|
|
|
+ data.put("total",resultData.size());
|
|
|
+ data.put("rows", resultList);
|
|
|
+
|
|
|
+ Map<String,Object> map = new HashMap<>();
|
|
|
+ map.put("data",data);
|
|
|
+
|
|
|
+ return R.ok(map);
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
return R.error(e.getMessage());
|