自动化立体仓库 - WCS系统
*
lsh
7 天以前 109e00f8a2b5ec34855816beca6dd59a83eb4f2b
src/main/java/com/zy/asrs/controller/StaDescController.java
@@ -40,8 +40,15 @@
        excludeTrash(param);
        EntityWrapper<StaDesc> wrapper = new EntityWrapper<>();
        convert(param, wrapper);
        if (!Cools.isEmpty(orderByField)){wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType));}
        return R.ok(staDescService.selectPage(new Page<>(curr, limit), wrapper));
        if (!Cools.isEmpty(orderByField)){
            wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType));
        }
        wrapper.orderAsc(Collections.singleton("crn_no"));
//        return R.ok(staDescService.selectPage(new Page<>(curr, limit), wrapper));
        List<StaDesc> staDescList = staDescService.selectList(wrapper);
        Page<StaDesc> page = new Page<StaDesc>(0, 10).setRecords(staDescList);
        page.setTotal(staDescList.size());
        return R.ok(page);
    }
    private <T> void convert(Map<String, Object> map, EntityWrapper<T> wrapper){