| | |
| | | import com.zy.asrs.service.LocDetlService; |
| | | import com.zy.asrs.service.LocMastService; |
| | | import com.zy.asrs.utils.Utils; |
| | | import com.zy.common.utils.RedisUtil; |
| | | import com.zy.common.web.BaseController; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | |
| | | private LocDetlService locDetlService; |
| | | @Autowired |
| | | private BasMapService basMapService; |
| | | @Autowired |
| | | private RedisUtil redisUtil; |
| | | |
| | | private static final List<String> DISABLE_LOC_NO = new ArrayList<String>() {{ |
| | | // add("0200101"); |
| | |
| | | return JSONObject.toJSONString(arrayLists); |
| | | } |
| | | |
| | | @GetMapping("/map/resetMap/{lev}/auth") |
| | | @ManagerAuth |
| | | public R resetMap(@PathVariable("lev") Integer lev) { |
| | | Object o = redisUtil.get("realtimeBasMap_" + lev); |
| | | if (o == null) { |
| | | return R.error(); |
| | | } |
| | | redisUtil.del("realtimeBasMap_" + lev); |
| | | basMapService.deleteByLev(lev); |
| | | return R.ok(); |
| | | } |
| | | |
| | | } |