| | |
| | | import com.core.common.Cools; |
| | | import com.core.common.R; |
| | | import com.zy.asrs.entity.*; |
| | | import com.zy.asrs.entity.result.CheckReport; |
| | | import com.zy.asrs.mapper.ReportQueryMapper; |
| | | import com.zy.asrs.service.LocDetlService; |
| | | import com.zy.common.web.BaseController; |
| | |
| | | return R.ok(exportSupport(list, fields)); |
| | | } |
| | | |
| | | /***************************盘点日志***************************/ |
| | | @RequestMapping("/checkReport") |
| | | public Map<String,Object> checkReport(@RequestParam(defaultValue = "1")Integer curr, |
| | | @RequestParam(defaultValue = "10")Integer limit, |
| | | @RequestParam(required = false)String orderByField, |
| | | @RequestParam(required = false)String orderByType, |
| | | @RequestParam(required = false)String condition, |
| | | @RequestParam Map<String, Object> param){ |
| | | Integer pageNumber = Integer.valueOf((String) param.get("pageNumber")); |
| | | Integer pageSize = Integer.valueOf((String)param.get("pageSize")); |
| | | param.put("curr",(pageNumber - 1) * pageSize + 1); |
| | | param.put("limit",pageNumber * pageSize); |
| | | List<CheckReport> checkReports = reportQueryMapper.selectCheckReport(param); |
| | | Integer checkReportCount = reportQueryMapper.selectCheckReportCount(param); |
| | | Page<CheckReport> checkReportPage = new Page<>(); |
| | | checkReportPage.setRecords(checkReports); |
| | | checkReportPage.setCurrent(curr); |
| | | checkReportPage.setSize(limit); |
| | | checkReportPage.setTotal(checkReportCount); |
| | | return R.ok(checkReportPage); |
| | | } |
| | | |
| | | } |