| | |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.core.common.R; |
| | | import com.zy.core.thread.SiemensDevpThread3; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.HashMap; |
| | | import java.util.Map; |
| | | |
| | |
| | | @PostMapping("/container/release") |
| | | public R containerRelease(@RequestBody JSONObject jsonObject){ |
| | | |
| | | System.out.println(jsonObject.toString()); |
| | | HashMap<String, String> map = new HashMap<>(); |
| | | map.put("allow","true"); |
| | | HashMap<String, Boolean> currentStationInfoMap = SiemensDevpThread3.currentStationInfoMap; |
| | | String slotCode = jsonObject.get("slotCode").toString(); |
| | | |
| | | Map<String,String> map = new HashMap<>(); |
| | | if(!currentStationInfoMap.get(slotCode)){ |
| | | map.put("allow","true"); |
| | | }else { |
| | | map.put("allow","false"); |
| | | } |
| | | |
| | | R r = new R(0, ""); |
| | | |
| | | return r.add(map); |