| | |
| | | excludeTrash(param); |
| | | convert(param, wrapper); |
| | | allLike(WrkCharge.class, param.keySet(), wrapper, condition); |
| | | 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(wrkChargeService.selectPage(new Page<>(curr, limit), wrapper)); |
| | | } |
| | | |
| | |
| | | |
| | | @RequestMapping(value = "/wrkCharge/delete/auth") |
| | | @ManagerAuth |
| | | public R delete(@RequestParam(value="ids[]") Long[] ids){ |
| | | for (Long id : ids){ |
| | | public R delete(@RequestParam(value="ids[]") Integer[] ids){ |
| | | for (Integer id : ids){ |
| | | wrkChargeService.deleteById(id); |
| | | } |
| | | return R.ok(); |
| | |
| | | return R.ok(); |
| | | } |
| | | |
| | | @RequestMapping(value = "/wrkCharge/truncate/reset/auth") |
| | | @ManagerAuth |
| | | public R truncateReset() { |
| | | wrkChargeService.delete(new EntityWrapper<WrkCharge>().eq("memo", "reset")); |
| | | return R.ok(); |
| | | } |
| | | |
| | | } |