|  |  |  | 
|---|
|  |  |  | @Autowired | 
|---|
|  |  |  | private LocInPrintMatService locInPrintMatService; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @RequestMapping(value = "/locInPrintMat/{id}/auth") | 
|---|
|  |  |  | @RequestMapping(value = "/locInPrintMat/{id}/auth/v1") | 
|---|
|  |  |  | @ManagerAuth | 
|---|
|  |  |  | public R get(@PathVariable("id") String id) { | 
|---|
|  |  |  | return R.ok(locInPrintMatService.getById(String.valueOf(id))); | 
|---|
|  |  |  | 
|---|
|  |  |  | wrapper.ge(LocInPrintMat::getCreateTime, DateUtils.convert(range[0])); | 
|---|
|  |  |  | wrapper.le(LocInPrintMat::getCreateTime, DateUtils.convert(range[1])); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | wrapper.orderBy("status".isEmpty(),true); | 
|---|
|  |  |  | wrapper.orderBy("create_time".isEmpty(),false); | 
|---|
|  |  |  | return R.ok(locInPrintMatService.page(new Page<>(curr, limit), wrapper)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | @RequestMapping(value = "/locInPrintMat/delete/auth") | 
|---|
|  |  |  | @ManagerAuth | 
|---|
|  |  |  | public R delete(@RequestParam(value="ids[]") Long[] ids){ | 
|---|
|  |  |  | for (Long id : ids){ | 
|---|
|  |  |  | for (Long id : ids){ | 
|---|
|  |  |  | locInPrintMatService.removeById(id); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | return R.ok(); | 
|---|