| | |
| | | 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)); |
| | | } |
| | | |
| | |
| | | @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(); |
| | | } |