| | |
| | | } |
| | | } |
| | | |
| | | @ApiOperation("查询单小时产量") |
| | | @PostMapping("/findHourlyOutput") |
| | | @ResponseBody |
| | | public Result findHourlyOutput(@RequestBody Map<String, String> map) { |
| | | try { |
| | | int dayCount = Integer.valueOf(map.get("dayCount").toString()); |
| | | Map<String, Object> result = taskingLogService.findHourlyOutput(dayCount); |
| | | return Result.build(200, "查询成功", result); |
| | | } catch (Exception e) { |
| | | return Result.build(199, "查询失败: " + e.getMessage(), null); |
| | | } |
| | | } |
| | | |
| | | @ApiOperation("查询库位数据") |
| | | @PostMapping("/selectWareHouse") |
| | | @ResponseBody |
| | | public Result selectWareHouse(@RequestBody Map<String, String> map) { |
| | | try { |
| | | int dayCount = Integer.valueOf(map.get("dayCount").toString()); |
| | | List<Map<String, Object>> result = taskingLogService.selectWareHouse(dayCount); |
| | | return Result.build(200, "查询成功", result); |
| | | } catch (Exception e) { |
| | | return Result.build(199, "查询失败: " + e.getMessage(), null); |
| | | } |
| | | } |
| | | |
| | | @ApiOperation("提交日志以及报工数据到九牧数据库") |
| | | @PostMapping("/reportTaskingLog") |
| | | @ResponseBody |