| | |
| | | String locNo = String.valueOf(param.get("locNo")); |
| | | String owner = String.valueOf(param.get("owner")); |
| | | String matnr = String.valueOf(param.get("matnr")); |
| | | String payment = String.valueOf(param.get("payment")); |
| | | if (!Cools.isEmpty(locNo) && !locNo.equals("null")) { |
| | | locDetlDTO.setLocNo(locNo); |
| | | } |
| | |
| | | } |
| | | if (!Cools.isEmpty(owner) && !owner.equals("null")) { |
| | | locDetlDTO.setOwner(owner); |
| | | } |
| | | if (!Cools.isEmpty(payment) && !payment.equals("null")) { |
| | | locDetlDTO.setPayment(payment); |
| | | } |
| | | List<LocDetlAll> list = locDetlService.selectAllPyment(locDetlDTO); |
| | | int count = locDetlService.selectAllPymentcount(locDetlDTO); |
| | |
| | | Page<LocDetlAll> page = new Page<>(); |
| | | page.setRecords(list); |
| | | page.setTotal(count); |
| | | if (list.size()==0){ |
| | | locDetlDTO.setPageNumber(1); |
| | | list = locDetlService.selectAllOwner(locDetlDTO); |
| | | count = locDetlService.selectAllCount(locDetlDTO); |
| | | page = new Page<>(); |
| | | page.setRecords(list); |
| | | page.setTotal(count); |
| | | } |
| | | return R.ok(page); |
| | | } |
| | | |