whycxzp
2025-04-02 c7f48b1084714b418f398f7eb0a7025d32e6a83f
src/main/java/com/whyc/service/WmsService.java
@@ -13,7 +13,9 @@
import org.springframework.stereotype.Service;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@Service
public class WmsService {
@@ -97,8 +99,12 @@
    }
    public Response getPalletList(int MaterialType, int PalletStatus) {
        String httpUrl = "http://192.168.10.133:8051"+"/api/Wms_pallet/get_all?MaterialType="+MaterialType+"&PalletStatus="+PalletStatus;
        Response response = HttpUtil.doGet(httpUrl, (String) null);
        String httpUrl = "http://192.168.10.133:8051"+"/api/Wms_pallet/get_all";
        Map<String,Integer> queryMap = new HashMap<>();
        queryMap.put("MaterialType",MaterialType);
        queryMap.put("PalletStatus",PalletStatus);
        Response response = HttpUtil.doGet(httpUrl, HttpUtil.urlEncode(queryMap));
        //对结果进行处理
        if(response.getCode() == 1){ //请求成功,data有正常数据
            String dataStr = (String) response.getData();