|  |  | 
 |  |  |         EntityWrapper<BasCrnp> wrapper = new EntityWrapper<>(); | 
 |  |  |         convert(param, wrapper); | 
 |  |  |         if (!Cools.isEmpty(orderByField)){wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType));} | 
 |  |  |         return R.ok(basCrnpService.selectPage(new Page<>(curr, limit), wrapper)); | 
 |  |  | //        return R.ok(basCrnpService.selectPage(new Page<>(curr, limit), wrapper)); | 
 |  |  |         List<BasCrnp> basCrnpList = basCrnpService.selectList(wrapper); | 
 |  |  |         Page<BasCrnp> page = new Page<BasCrnp>(0, 100).setRecords(basCrnpList); | 
 |  |  |         page.setTotal(basCrnpList.size()); | 
 |  |  |         return R.ok(page); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     private <T> void convert(Map<String, Object> map, EntityWrapper<T> wrapper){ | 
 |  |  | 
 |  |  |    @ManagerAuth(memo = "堆垛机修改") | 
 |  |  |     public R update(BasCrnp basCrnp){ | 
 |  |  |         if (Cools.isEmpty(basCrnp) || null==basCrnp.getCrnNo()){ | 
 |  |  |             return R.error(); | 
 |  |  |             return R.error("请选择堆垛机再操作").add("请选择堆垛机再操作"); | 
 |  |  |         } | 
 |  |  |         basCrnp.setModiUser(getUserId()); | 
 |  |  |         basCrnp.setModiTime(new Date()); | 
 |  |  | 
 |  |  |     public R query(String condition) { | 
 |  |  |         EntityWrapper<BasCrnp> wrapper = new EntityWrapper<>(); | 
 |  |  |         wrapper.like("crn_no", condition); | 
 |  |  |         Page<BasCrnp> page = basCrnpService.selectPage(new Page<>(0, 10), wrapper); | 
 |  |  | //        Page<BasCrnp> page = basCrnpService.selectPage(new Page<>(0, 10), wrapper); | 
 |  |  |         List<BasCrnp> basCrnpList = basCrnpService.selectList(wrapper); | 
 |  |  |         List<Map<String, Object>> result = new ArrayList<>(); | 
 |  |  |         for (BasCrnp basCrnp : page.getRecords()){ | 
 |  |  |         for (BasCrnp basCrnp : basCrnpList){ | 
 |  |  |             Map<String, Object> map = new HashMap<>(); | 
 |  |  |             map.put("id", basCrnp.getCrnNo()); | 
 |  |  |             map.put("value", basCrnp.getCrnNo()); |