自动化立体仓库 - WMS系统
zhangc
2025-01-18 8ca385d65454fb8e993970a768ed3ad5c3a095ab
src/main/java/com/zy/asrs/controller/ApiLogController.java
@@ -38,10 +38,12 @@
                  @RequestParam(defaultValue = "10")Integer limit,
                  @RequestParam(required = false)String orderByField,
                  @RequestParam(required = false)String orderByType,
                  @RequestParam(required = false)String condition,
                  @RequestParam Map<String, Object> param){
        EntityWrapper<ApiLog> wrapper = new EntityWrapper<>();
        excludeTrash(param);
        convert(param, wrapper);
        allLike(ApiLog.class, param.keySet(), wrapper, condition);
        if (!Cools.isEmpty(orderByField)){wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType));} else {
            wrapper.orderBy("create_time", false);
        }
@@ -72,7 +74,7 @@
   @ManagerAuth
    public R update(ApiLog apiLog){
        if (Cools.isEmpty(apiLog) || null==apiLog.getId()){
            return R.error();
            return R.error("请求参数为空");
        }
        apiLogService.updateById(apiLog);
        return R.ok();