| | |
| | | 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 { |
| | |
| | | } |
| | | |
| | | 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(); |