| | |
| | | * @return |
| | | */ |
| | | public Response getMaterialList() { |
| | | String httpUrl = "http://192.168.1.100:8080"+"/api/Wms_material/get_all"; |
| | | String httpUrl = "http://192.168.10.133:8051"+"/api/Wms_material/get_all"; |
| | | Response response = HttpUtil.doGet(httpUrl, (String) null); |
| | | //对结果进行处理 |
| | | if(response.getCode() == 1){ //请求成功,data有正常数据 |
| | |
| | | */ |
| | | |
| | | public Response sendTask(WmsPalletDto palletDto) { |
| | | String httpUrl = "http://192.168.1.100:8080"+"/api/Wms_pallet/WmsOutTask"; |
| | | String httpUrl = "http://192.168.10.133:8051"+"/api/Wms_pallet/WmsOutTask"; |
| | | Response response = HttpUtil.doPost(httpUrl, JsonUtil.getGson().toJson(palletDto)); |
| | | //对结果进行处理 |
| | | if(response.getCode() == 1){ //请求成功,data有正常数据 |
| | |
| | | } |
| | | |
| | | public Response getLocationList() { |
| | | String httpUrl = "http://192.168.1.100:8080"+"/api/wms_location/get_all"; |
| | | String httpUrl = "http://192.168.10.133:8051"+"/api/wms_location/get_all"; |
| | | Response response = HttpUtil.doGet(httpUrl, (String) null); |
| | | //对结果进行处理 |
| | | if(response.getCode() == 1){ //请求成功,data有正常数据 |