自动化立体仓库 - WMS系统
zyx
2024-02-01 57ae0c8f7a909327ed6058c0e78e8f808f91be4a
src/main/java/com/zy/asrs/controller/LocInPrintMatController.java
@@ -44,6 +44,8 @@
        excludeTrash(param);
        convert(param, wrapper);
        if (!Cools.isEmpty(orderByField)){wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType));}
        wrapper.orderBy("status",true);
        wrapper.orderBy("create_time",false);
        return R.ok(locInPrintMatService.selectPage(new Page<>(curr, limit), wrapper));
    }
@@ -63,6 +65,12 @@
    @RequestMapping(value = "/locInPrintMat/add/auth")
    @ManagerAuth
    public R add(LocInPrintMat locInPrintMat) {
        Date now = new Date();
        locInPrintMat.setUuid(String.valueOf(now.getTime()));
        locInPrintMat.setUpdateTime(now);
        locInPrintMat.setCreateBy(getUserId());
        locInPrintMat.setUpdateTime(now);
        locInPrintMat.setUpdateBy(getUserId());
        locInPrintMatService.insert(locInPrintMat);
        return R.ok();
    }