|
|
|
@ -1,11 +1,11 @@ |
|
|
|
package com.srq.modules.productionWarehousing.service.impl; |
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSON; |
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
|
import com.alibaba.fastjson.JSONArray; |
|
|
|
import com.alibaba.fastjson.JSONObject; |
|
|
|
import com.srq.common.utils.PageUtils; |
|
|
|
import com.srq.modules.base.utils.HttpClientUtil; |
|
|
|
import com.srq.modules.base.utils.ResponseData; |
|
|
|
import com.srq.modules.orderIssure.entity.IssureNotifyEntity; |
|
|
|
import com.srq.modules.productionWarehousing.entity.ProductionWarehousingEntity; |
|
|
|
import com.srq.modules.productionWarehousing.mapper.ProductionWarehousingMapper; |
|
|
|
import com.srq.modules.productionWarehousing.service.ProductionWarehousingService; |
|
|
|
@ -13,7 +13,6 @@ import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.beans.factory.annotation.Value; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
|
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
|
|
|
|
@ -66,4 +65,17 @@ public class ProductionWarehousingServiceImpl implements ProductionWarehousingSe |
|
|
|
throw new RuntimeException("IFS接收生产入库失败"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public JSONArray getProductionInspection(ProductionWarehousingEntity inData) { |
|
|
|
JSONObject jsonObject = new JSONObject(); |
|
|
|
jsonObject.put("contract", "S01"); |
|
|
|
jsonObject.put("wdr", "3H24-5092"); |
|
|
|
jsonObject.put("lotNo", "*"); |
|
|
|
ResponseData responseData = HttpClientUtil.doPostByRawWithSRQ(apiUrl+"/order/getPrintProductionSheet", jsonObject); |
|
|
|
if (!"200".equals(responseData.getCode())) { |
|
|
|
throw new RuntimeException("获取IFS数据失败"); |
|
|
|
} |
|
|
|
return JSON.parseArray(String.valueOf(responseData.getObj())); |
|
|
|
} |
|
|
|
} |