| | |
| | | } |
| | | |
| | | @GetMapping("getPalletList") |
| | | public Response getPalletList(){ |
| | | public Response getPalletList(@RequestParam int MaterialType,@RequestParam int PalletStatus){ |
| | | |
| | | return service.getPalletList(); |
| | | return service.getPalletList(MaterialType,PalletStatus); |
| | | } |
| | | |
| | | /** |
| | |
| | | * 电池机房温度告警,八个电池机房 |
| | | */ |
| | | @ApiModel(value="电池机房温度告警") |
| | | @TableName(schema = "db_alarm",value = "tb_alarm_temp_alarm") |
| | | @TableName(schema = "db_alarm",value = "tb_batt_station_temp_alarm") |
| | | @Data |
| | | @ToString |
| | | public class BattStationTempAlarm { |
| | |
| | | return response; |
| | | } |
| | | |
| | | public Response getPalletList() { |
| | | String httpUrl = "http://192.168.10.133:8051"+"/api/Wms_pallet/get_all"; |
| | | 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); |
| | | //对结果进行处理 |
| | | if(response.getCode() == 1){ //请求成功,data有正常数据 |