| | |
| | | import com.zy.asrs.service.LocMastService; |
| | | import com.zy.asrs.utils.Utils; |
| | | import com.zy.common.model.NavigateNode; |
| | | import com.zy.common.utils.RedisUtil; |
| | | import com.zy.common.web.BaseController; |
| | | import com.zy.core.enums.LocStsType; |
| | | import com.zy.core.enums.MapNodeType; |
| | | |
| | | import com.zy.core.enums.RedisKeyType; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | |
| | | private LocMastService locMastService; |
| | | @Autowired |
| | | private BasMapService basMapService; |
| | | @Autowired |
| | | private RedisUtil redisUtil; |
| | | |
| | | @RequestMapping(value = "/locMast/{id}/auth") |
| | | @ManagerAuth |
| | |
| | | int mapX = (int) map.get("mapX"); |
| | | int mapY = (int) map.get("mapY"); |
| | | locMast.setLocNo(Utils.getLocNo(row, bay, finalLev)); |
| | | locMast.setLocSts(String.valueOf(LocStsType.O)); |
| | | locMast.setRow1(row); |
| | | locMast.setBay1(bay); |
| | | locMast.setLev1(finalLev); |
| | |
| | | }); |
| | | } |
| | | |
| | | redisUtil.del(RedisKeyType.LOC_MAP_BASE.key); |
| | | return R.ok(); |
| | | } |
| | | |