| | |
| | | import com.zy.common.web.BaseController; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | |
| | | @ManagerAuth(memo = "初始化库位") |
| | | public R init(LocMastInitParam param) { |
| | | //清空原有库位 |
| | | agvLockMastService.clearLoc(); |
| | | //agvLockMastService.clearLoc(); |
| | | //初始化一楼站点 |
| | | agvLockMastService.initLocFloor1(); |
| | | //初始化三楼站点 |
| | | agvLockMastService.initLocFloor3(); |
| | | //agvLockMastService.initLocFloor3(); |
| | | |
| | | return R.ok(); |
| | | } |
| | | |
| | | @RequestMapping(value = "/locMast/{id}/auth") |
| | | @ManagerAuth |
| | | public R get(@PathVariable("id") String id) { |
| | | return R.ok(agvLockMastService.selectById(String.valueOf(id))); |
| | | } |
| | | |
| | | private <T> void convert(Map<String, Object> map, EntityWrapper<T> wrapper){ |
| | | for (Map.Entry<String, Object> entry : map.entrySet()){ |
| | | String val = String.valueOf(entry.getValue()); |