| | |
| | | @Autowired |
| | | private ManLocDetlService manLocDetlService; |
| | | |
| | | @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 locNo = String.valueOf(param.get("locNo")); |
| | | String matnr = String.valueOf(param.get("matnr")); |
| | | if (!Cools.isEmpty(locNo) && !locNo.equals("null")) { |
| | | locDetlWarningDTO.setLocNo(locNo); |
| | | } |
| | | if (!Cools.isEmpty(matnr) && !matnr.equals("null")) { |
| | | locDetlWarningDTO.setMatnr(matnr); |
| | | } |
| | | 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); |
| | | } |
| | | |
| | | @RequestMapping(value = "/locDetl/update") |
| | | public R update1() { |
| | | if (!locDetlService.updateLocNo("0402805", "0402804")) { |