自动化立体仓库 - WMS系统
#
zjj
2024-10-25 0c18aa04ba60dedb5f57128936aceb10464e1da2
src/main/java/com/zy/asrs/controller/LocMastController.java
@@ -71,6 +71,21 @@
        return R.ok(locMastService.selectPage(new Page<>(curr, limit), wrapper));
    }
    @RequestMapping(value = "/locMast/crn/list/auth")
    @ManagerAuth
    public R crnList(@RequestParam(defaultValue = "1")Integer curr,
                  @RequestParam(defaultValue = "10")Integer limit,
                  @RequestParam(required = false)String orderByField,
                  @RequestParam(required = false)String orderByType,
                  @RequestParam Map<String, Object> param){
        excludeTrash(param);
        EntityWrapper<LocMast> wrapper = new EntityWrapper<>();
        convert(param, wrapper);
        wrapper.in("crn_no", 1,2);
        if (!Cools.isEmpty(orderByField)){wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType));}
        return R.ok(locMastService.selectPage(new Page<>(curr, limit), wrapper));
    }
    private <T> void convert(Map<String, Object> map, EntityWrapper<T> wrapper){
        boolean sign = false;
        for (Map.Entry<String, Object> entry : map.entrySet()){