#
luxiaotao1123
2020-06-19 61593c7f55cf24d81746aa041e60d0ccccd8b80a
src/main/java/com/zy/asrs/controller/WrkDetlController.java
@@ -43,7 +43,11 @@
        excludeTrash(param);
        EntityWrapper<WrkDetl> wrapper = new EntityWrapper<>();
        convert(param, wrapper);
        if (!Cools.isEmpty(orderByField)){wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType));}
        if (!Cools.isEmpty(orderByField)){
            wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType));
        } else {
            wrapper.orderBy("appe_time", false);
        }
        return R.ok(wrkDetlService.selectPage(new Page<>(curr, limit), wrapper));
    }
@@ -60,14 +64,14 @@
    }
    @RequestMapping(value = "/wrkDetl/add/auth")
    @ManagerAuth
    @ManagerAuth(memo = "工作档明细添加")
    public R add(WrkDetl wrkDetl) {
        wrkDetlService.insert(wrkDetl);
        return R.ok();
    }
    @RequestMapping(value = "/wrkDetl/delete/auth")
    @ManagerAuth
    @ManagerAuth(memo = "工作档明细删除")
    public R delete(@RequestParam String param){
        List<WrkDetl> list = JSONArray.parseArray(param, WrkDetl.class);
        if (Cools.isEmpty(list)){
@@ -80,7 +84,7 @@
    }
    @RequestMapping(value = "/wrkDetl/export/auth")
    @ManagerAuth
    @ManagerAuth(memo = "工作档明细导出")
    public R export(@RequestBody JSONObject param){
        List<String> fields = JSONObject.parseArray(param.getJSONArray("fields").toJSONString(), String.class);
        EntityWrapper<WrkDetl> wrapper = new EntityWrapper<>();