|
|
@@ -7,6 +7,8 @@ import com.alibaba.fastjson.PropertyNamingStrategy;
|
|
|
import com.alibaba.fastjson.parser.ParserConfig;
|
|
|
import com.alibaba.fastjson.serializer.SerializeConfig;
|
|
|
import com.baomidou.mybatisplus.core.toolkit.ObjectUtils;
|
|
|
+import com.fs.common.core.domain.R;
|
|
|
+import com.fs.common.exception.ServiceException;
|
|
|
import com.fs.erp.converter.ErpWdtToErpOrderMapper;
|
|
|
import com.fs.erp.domain.ErpOrder;
|
|
|
import com.fs.erp.domain.ErpOrderQuery;
|
|
|
@@ -26,7 +28,6 @@ import com.fs.his.service.IFsStoreOrderService;
|
|
|
import com.fs.his.service.IFsStoreProductService;
|
|
|
import com.fs.his.utils.ConfigUtil;
|
|
|
import com.fs.hisStore.config.FsErpConfig;
|
|
|
-import com.fs.hisStore.domain.FsStoreOrderItemScrm;
|
|
|
import com.fs.hisStore.domain.FsStoreOrderScrm;
|
|
|
import com.fs.hisStore.domain.FsStoreProductScrm;
|
|
|
import com.fs.hisStore.service.IFsStoreOrderItemScrmService;
|
|
|
@@ -39,7 +40,6 @@ import org.apache.commons.collections4.CollectionUtils;
|
|
|
import org.apache.http.client.utils.DateUtils;
|
|
|
import org.apache.http.util.Asserts;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.context.annotation.Primary;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
@@ -1373,4 +1373,26 @@ public class WdtErpOrderServiceImpl implements IErpOrderService {
|
|
|
return new ErpOrderResponse();
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public Map<String,Object> stockOutOrderQueryTrade(ErpOrderQueryRequert param){
|
|
|
+ Map<String, String> map = new HashMap<>();
|
|
|
+ map.put("src_tid", param.getCode());
|
|
|
+ try {
|
|
|
+ String response = client.execute("stockout_order_query_trade.php", map);
|
|
|
+ ParserConfig config = new ParserConfig();
|
|
|
+ config.propertyNamingStrategy = PropertyNamingStrategy.CamelCase;
|
|
|
+ Map<String, Object> result= JSON.parseObject(response, Map.class,config);
|
|
|
+ log.info("result:{}",result);
|
|
|
+ if(!"0".equals(String.valueOf(result.get("code")))){
|
|
|
+ throw new ServiceException(String.valueOf(result.get("message")));
|
|
|
+ }
|
|
|
+ return result;
|
|
|
+ } catch (IOException e) {
|
|
|
+ log.error("stockOutOrderQueryTrade error:{}",e);
|
|
|
+ throw new ServiceException(e.getMessage());
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
}
|