| | |
| | | map.put("message", "300"); |
| | | } else { |
| | | homeMapper.Inglassid(glass, cage, cell, tier); |
| | | spianMapper.UpdataAddCage1(glass.getWidth(), cage, cell); |
| | | spianMapper.UpdataAddCage1(glass.getGlassWidth(), cage, cell); |
| | | } |
| | | return Result.success(map); |
| | | } |
| | |
| | | map.put("glass", glass); |
| | | return Result.success(map); |
| | | } |
| | | |
| | | //手动添加扫码位玻璃 |
| | | @PostMapping("/InsertQueueGlassId") |
| | | public Result InsertQueueGlassId(String glassid,Short id) { |
| | | Map<String, Object> map = new HashMap<>(); |
| | | short result = homeMapper.SelectStorageByGlassId(glassid); |
| | | if (result > 0) { |
| | | map.put("message", "300"); |
| | | }else{ |
| | | homeMapper.InsertQueueGlassId(glassid,id); |
| | | map.put("message", "200"); |
| | | } |
| | | return Result.success(map); |
| | | } |
| | | |
| | | //确认扫码位玻璃信息 |
| | | @PostMapping("/UpdateQueueState") |
| | | public Result UpdateQueueState() { |
| | | homeMapper.UpdateQueueState(); |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("message", "200"); |
| | | return Result.success(map); |
| | | } |
| | | |
| | | //清除上片队列玻璃 |
| | | @PostMapping("/DeleteQueueGlass") |
| | | public Result DeleteQueueGlass(String id) { |
| | | homeMapper.DeleteQueueGlass(id); |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("message", "200"); |
| | | return Result.success(map); |
| | | } |
| | | |
| | | |
| | | } |