| | |
| | | import com.example.springboot.common.Result; |
| | | import com.example.springboot.component.S7control; |
| | | import com.example.springboot.entity.CarPosition; |
| | | import com.example.springboot.entity.Glass; |
| | | import com.example.springboot.entity.StorageCage; |
| | | import com.example.springboot.entity.alarmmg; |
| | | |
| | |
| | | @GetMapping("/Addglassid") |
| | | public Result Addglassid(short glassid) { |
| | | Map<String, Object> map = new HashMap<>(); |
| | | short taskno = homeMapper.SelectOutTask(); |
| | | short taskno = homeMapper.SelectInTask(); |
| | | if (taskno > 0) { |
| | | map.put("message2", "500"); |
| | | } else { |
| | |
| | | homeMapper.UpdateTask(types); |
| | | StorageCage glass=homeMapper.SelectGlassInfo(glassid); |
| | | if (types == 0) { |
| | | spianMapper.UpdataAddCage1(glass.getGlassWidth(),glass.getCage(),glass.getCell()); |
| | | // spianMapper.UpdataAddCage1(glass.getGlassWidth(),glass.getCage(),glass.getCell()); |
| | | homeMapper.UpdateCageTask1(glassid); |
| | | S7control.getinstance().WriteWord("DB105.14",(short)0); |
| | | } else { |
| | |
| | | return Result.success(map); |
| | | } |
| | | |
| | | |
| | | @GetMapping("/SelectGlassByGlassID") |
| | | public Result SelectGlassByGlassID(String glassid) { |
| | | Glass Glass = homeMapper.SelectGlassByGlassID(glassid); |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("form", Glass); |
| | | return Result.success(map); |
| | | } |
| | | } |