| | |
| | | import com.core.common.DateUtils; |
| | | import com.core.common.R; |
| | | import com.zy.asrs.entity.LocDetl; |
| | | import com.zy.asrs.entity.LocDetlWarningDTO; |
| | | import com.zy.asrs.entity.LocMast; |
| | | import com.zy.asrs.service.LocDetlService; |
| | | import com.zy.asrs.service.LocMastService; |
| | |
| | | return R.ok(); |
| | | } |
| | | |
| | | |
| | | @RequestMapping(value = "/locDetl/selectAllWarning/auth") |
| | | @ManagerAuth(memo = "库存预警") |
| | | public Map<String,Object> queryViewStayTimeListByPages(@RequestParam(defaultValue = "1")Integer curr, |
| | | @RequestParam(defaultValue = "10")Integer limit, |
| | | @RequestParam Map<String, Object> param){ |
| | | LocDetlWarningDTO locDetlWarningDTO = new LocDetlWarningDTO(); |
| | | locDetlWarningDTO.setPageSize(limit); |
| | | locDetlWarningDTO.setPageNumber(curr); |
| | | String mat_no = String.valueOf(param.get("mat_no")); |
| | | if (!Cools.isEmpty(mat_no) && !mat_no.equals("null")) { |
| | | locDetlWarningDTO.setMat_no(mat_no); |
| | | } |
| | | List<LocDetlWarningDTO> list = locDetlService.selectAllWarning(locDetlWarningDTO); |
| | | int count = locDetlService.getAllWarningCount(locDetlWarningDTO); |
| | | Page<LocDetlWarningDTO> page = new Page<>(); |
| | | page.setRecords(list); |
| | | page.setTotal(count); |
| | | return R.ok(page); |
| | | } |
| | | |
| | | } |