自动化立体仓库 - WMS系统
#
1
10 小时以前 8257d89c461f6553d66fad1e5e3df3d172a00924
src/main/java/com/zy/asrs/controller/ApiLogController.java
@@ -48,6 +48,23 @@
        return R.ok(apiLogService.selectPage(new Page<>(curr, limit), wrapper));
    }
    @RequestMapping(value = "/apiLog/list/auth/v2")
    @ManagerAuth
    public R listFalse(@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){
        EntityWrapper<ApiLog> wrapper = new EntityWrapper<>();
        excludeTrash(param);
        convert(param, wrapper);
        wrapper.eq("result", 0);
        if (!Cools.isEmpty(orderByField)){wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType));} else {
            wrapper.orderBy("create_time", false);
        }
        return R.ok(apiLogService.selectPage(new Page<>(curr, limit), wrapper));
    }
    private <T> void convert(Map<String, Object> map, EntityWrapper<T> wrapper){
        for (Map.Entry<String, Object> entry : map.entrySet()){
            String val = String.valueOf(entry.getValue());