| | |
| | | public R headPage(@RequestParam(defaultValue = "1")Integer curr, |
| | | @RequestParam(defaultValue = "10")Integer limit, |
| | | @RequestParam Map<String, Object> param){ |
| | | if (!Cools.isEmpty(param.get("modi_time"))){ |
| | | String val = String.valueOf(param.get("modi_time")); |
| | | if (!Cools.isEmpty(param.get("appe_time"))){ |
| | | String val = String.valueOf(param.get("appe_time")); |
| | | if (val.contains(RANGE_TIME_LINK)) { |
| | | String[] dates = val.split(RANGE_TIME_LINK); |
| | | param.put("startTime", DateUtils.convert(dates[0])); |
| | | param.put("endTime", DateUtils.convert(dates[1])); |
| | | param.remove("modi_time"); |
| | | param.remove("appe_time"); |
| | | } |
| | | } |
| | | return R.ok(waitMatinService.getHeadPage(toPage(curr, limit, param, WaitMatin.class))); |
| | | } |
| | | |
| | | @RequestMapping(value = "/waitMatin/detl/list/auth") |
| | | @ManagerAuth |
| | | public R detlPage(@RequestParam String billNo){ |
| | | if (Cools.isEmpty(billNo)){ |
| | | return R.parse(BaseRes.PARAM); |
| | | } |
| | | List<WaitMatin> waitMatins = waitMatinService.selectList(new EntityWrapper<WaitMatin>().eq("bill_no", billNo)); |
| | | if (Cools.isEmpty(waitMatins)) { |
| | | return R.parse(BaseRes.EMPTY); |
| | | } |
| | | return R.ok().add(waitMatins); |
| | | } |
| | | |
| | | |
| | | /*************************************** xm-select ***********************************************/ |
| | | |