zouyu
6 天以前 dc7300e21fe53f74e08eb2fa494a83430e2e54ca
ruoyi-common/src/main/java/com/ruoyi/common/utils/api/IfsApiUtils.java
@@ -17,6 +17,7 @@
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Objects;
/**
 * @Author zhuo
@@ -47,9 +48,10 @@
            ObjectMapper objectMapper = new ObjectMapper();
            try {
                Map map = objectMapper.readValue(body, Map.class);
                maps.addAll(objectMapper.readValue(JSONUtil.toJsonStr(map.get("LIST_INFO")), new TypeReference<List<Map<String, Object>>>() {
                }));
                log.info("获取采购订单-->>" + maps);
                if(Objects.nonNull(map.get("SuccessFlag")) && map.get("SuccessFlag").equals("1")){
                    maps.addAll(objectMapper.readValue(JSONUtil.toJsonStr(map.get("LIST_INFO")), new TypeReference<List<Map<String, Object>>>() {}));
                    log.info("同步的采购订单数量-->>,{}" , maps.size());
                }
            } catch (JsonProcessingException e) {
                e.printStackTrace();
                throw new RuntimeException(e);
@@ -108,7 +110,7 @@
     * @return
     */
    public Result importPartLotAttr(String contract,String inAttr) {
        return getResult(contract,"IMPORT_PART_LOT_ATTR_STD", inAttr, "POST", "库存物料批次属性新增修改接口-->");
        return getResult(contract,"IMPORT_PART_LOT_ATTR_STD", inAttr, "GET", "库存物料批次属性新增修改接口-->");
    }
    /**